From b3dca76aa56e0952d1fa4ebe64ecd0ad8276aa7f Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 28 Nov 2025 10:45:02 -0800 Subject: [PATCH] New backup 2025-11-28 10:45:02 --- de/home/.config/eww/scripts/bar/scratchpad | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/de/home/.config/eww/scripts/bar/scratchpad b/de/home/.config/eww/scripts/bar/scratchpad index 6ce03f1..1017926 100755 --- a/de/home/.config/eww/scripts/bar/scratchpad +++ b/de/home/.config/eww/scripts/bar/scratchpad @@ -111,15 +111,22 @@ get_icon() { } [[ "$icon_name" ]] && { icon_locations=( - icons/hicolor/scalable/apps - icons/hicolor/48x48/apps - icons/gnome/48x48/apps - icons/gnome/48x48/devices - pixmaps + /usr/share/icons/hicolor/scalable/apps + /usr/share/icons/hicolor/48x48/apps + /usr/share/icons/gnome/48x48/apps + /usr/share/icons/gnome/48x48/devices + /usr/share/pixmaps + /var/lib/flatpak/exports/share/icons/hicolor/scalable/apps/ + /var/lib/flatpak/exports/share/icons/hicolor/48x48/apps/ +# icons/hicolor/scalable/apps +# icons/hicolor/48x48/apps +# icons/gnome/48x48/apps +# icons/gnome/48x48/devices +# pixmaps ) for d in "${icon_locations[@]}"; do for s in .svg .png .xpm ""; do - icon=/usr/share/$d/$icon_name$s + icon=$d/$icon_name$s [[ -r $icon ]] && { echo "$icon" [[ "$verbose" ]] && echo "using .desktop icon '$icon'" >&2 @@ -135,6 +142,7 @@ get_icon() { } } } + [[ "$verbose" ]] && echo "searching for '$app' icon" >&2 icon=$( find /usr/share/icons /usr/share/pixmaps | grep -E -i "/$app.(png|svg)" | head -n 1 ) [[ "$icon" && -r "$icon" ]] && { echo "$icon"