From f3a00893416170b675d0db8647ff3954304666cf Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 19 Feb 2024 20:43:09 -0500 Subject: [PATCH] Add ~/.profile Tweak sofi to use FiraCode, and ignore missing snap. --- fake_home/.profile | 10 ++++++++++ fake_home/.sofi.sh | 8 +++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 fake_home/.profile diff --git a/fake_home/.profile b/fake_home/.profile new file mode 100644 index 0000000..a1b2507 --- /dev/null +++ b/fake_home/.profile @@ -0,0 +1,10 @@ +. "$HOME/.cargo/env" + + +# Added by Toolbox App +export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts" + +export PATH="$HOME:$PATH" + +export QT_STYLE_OVERRIDE=kvantum +export MOZ_ENABLE_WAYLAND=1 diff --git a/fake_home/.sofi.sh b/fake_home/.sofi.sh index 28420c4..2070d70 100755 --- a/fake_home/.sofi.sh +++ b/fake_home/.sofi.sh @@ -30,7 +30,7 @@ if [[ "$1" == "--launch" ]]; 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 else - xterm -geometry 120x40 -fa 'Monospaced' -fs 10 -T "SOFI" -e "bash -c '$HOME/.sofi.sh'" + xterm -geometry 120x40 -fa 'FiraCode Nerd Font' -fs 11 -T "SOFI" -e "bash -c '$HOME/.sofi.sh'" fi # st -e bash -c '$HOME/.sofi.sh'" fi @@ -63,7 +63,9 @@ read_apps() { } read_snap_apps() { - snap list | tail -n +2 | awk '{print "snp " $1}' + if command -v snap &> /dev/null; then + snap list | tail -n +2 | awk '{print "snp " $1}' + fi } open_app() { @@ -107,7 +109,7 @@ fi choice="$(cat \ <(system_info) \ <(windows) \ - <("$HOME/.rofi-list-git-repos.py") \ + <($HOME/.rofi-list-git-repos.py --no-icon) \ <(read_apps) \ <(read_snap_apps) \ <(list_files) \