From db391d8b724dca8600c2cb1bdb4b193e29524de8 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 19 Feb 2024 21:36:41 -0500 Subject: [PATCH] Overridable SOFI_FONT --- fake_home/.sofi.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fake_home/.sofi.sh b/fake_home/.sofi.sh index 2070d70..6db585f 100755 --- a/fake_home/.sofi.sh +++ b/fake_home/.sofi.sh @@ -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