Overridable SOFI_FONT
This commit is contained in:
parent
d6859dc8b8
commit
db391d8b72
|
@ -7,6 +7,8 @@ IGNORED_APPS="Firetools|cmatrix"
|
||||||
APP_LOCATIONS="/usr/share/applications $HOME/.local/share/applications "
|
APP_LOCATIONS="/usr/share/applications $HOME/.local/share/applications "
|
||||||
FILE_LOCATIONS="$HOME/Documents $HOME/Downloads"
|
FILE_LOCATIONS="$HOME/Documents $HOME/Downloads"
|
||||||
|
|
||||||
|
[[ "$SOFI_FONT" == "" ]] && SOFI_FONT="FiraCode Nerd Font"
|
||||||
|
|
||||||
! [[ "$XDG_SESSION_TYPE" = "x11" ]]
|
! [[ "$XDG_SESSION_TYPE" = "x11" ]]
|
||||||
IS_X11="$?"
|
IS_X11="$?"
|
||||||
|
|
||||||
|
@ -25,14 +27,12 @@ if [[ "$1" == "--launch" ]]; then
|
||||||
else
|
else
|
||||||
# xfce4-terminal --role="$WINDOW_NAME" --title="$WINDOW_NAME" --startup-id="$WINDOW_NAME" -e "bash -c '$HOME/.sofi.sh'"
|
# xfce4-terminal --role="$WINDOW_NAME" --title="$WINDOW_NAME" --startup-id="$WINDOW_NAME" -e "bash -c '$HOME/.sofi.sh'"
|
||||||
|
|
||||||
|
|
||||||
id="$(sofi_id)"
|
id="$(sofi_id)"
|
||||||
if [[ "$id" != "" ]]; then
|
if [[ "$id" != "" ]]; then
|
||||||
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell/Extensions/Windows --method org.gnome.Shell.Extensions.Windows.Activate $id
|
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell/Extensions/Windows --method org.gnome.Shell.Extensions.Windows.Activate $id
|
||||||
else
|
else
|
||||||
xterm -geometry 120x40 -fa 'FiraCode Nerd Font' -fs 11 -T "SOFI" -e "bash -c '$HOME/.sofi.sh'"
|
xterm -geometry 120x40 -fa "$SOFI_FONT" -fs 11 -T "SOFI" -e "bash -c '$HOME/.sofi.sh'"
|
||||||
fi
|
fi
|
||||||
# st -e bash -c '$HOME/.sofi.sh'"
|
|
||||||
fi
|
fi
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue