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 "
|
||||
FILE_LOCATIONS="$HOME/Documents $HOME/Downloads"
|
||||
|
||||
[[ "$SOFI_FONT" == "" ]] && SOFI_FONT="FiraCode Nerd Font"
|
||||
|
||||
! [[ "$XDG_SESSION_TYPE" = "x11" ]]
|
||||
IS_X11="$?"
|
||||
|
||||
|
@ -24,15 +26,13 @@ if [[ "$1" == "--launch" ]]; then
|
|||
xdotool windowraise "$existing"
|
||||
else
|
||||
# xfce4-terminal --role="$WINDOW_NAME" --title="$WINDOW_NAME" --startup-id="$WINDOW_NAME" -e "bash -c '$HOME/.sofi.sh'"
|
||||
|
||||
|
||||
id="$(sofi_id)"
|
||||
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
|
||||
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
|
||||
# st -e bash -c '$HOME/.sofi.sh'"
|
||||
fi
|
||||
exit $?
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue