personal dotfiles: my Hyprland config
-rwxr-xr-x.config/sxmo/userscripts/appstore.sh23
1 files changed, 12 insertions, 11 deletions
diff --git a/.config/sxmo/userscripts/appstore.sh b/.config/sxmo/userscripts/appstore.sh
index 1f28116..6e6005a 100755
--- a/.config/sxmo/userscripts/appstore.sh
+++ b/.config/sxmo/userscripts/appstore.sh
@@ -1,6 +1,7 @@
#!/bin/sh
# Author: Zach DeCook <zachdecook@librem.one>
# License: MIT
+. sxmo_hook_icons.sh
## Data
@@ -13,16 +14,16 @@ listApps(){
}
# Categories should have 4-12 apps.
# These are the menu categories, with the icons which go with them.
-Menus='Messaging \(msg\|tgm\)
-Browsing \(ffx\|glb\)
-Email eml
-Editing \(edt\|vim\)
-Multimedia \(cam\|mic\|mus\|mvi\)
-Files dir
-Terminal trm
-Maps \(gps\|map\)
-Misc \(and\|bok\|cfg\|chs\|clc\|clk\|img\|inf\|itm\|red\|rld\|rss\)
-exit'
+Menus="$icon_msg Messaging \(msg\|tgm\)
+$icon_glb Browsing \(ffx\|glb\)
+$icon_eml Email eml
+$icon_edt Editing \(edt\|vim\)
+$icon_mus Multimedia \(cam\|mic\|mus\|mvi\)
+$icon_dir Files dir
+$icon_trm Terminal trm
+$icon_map Maps \(gps\|map\)
+$icon_itm Misc \(and\|bok\|cfg\|chs\|clc\|clk\|img\|inf\|itm\|red\|rld\|rss\)
+exit"
## Functions
@@ -122,7 +123,7 @@ pkgInstalled(){
## Menus
topMenu(){
- sel="$(printf '%s' "$Menus" | cut -f1 | sxmo_dmenu.sh -i -p "App Store")"
+ sel="$(printf '%s' "$Menus" | cut -f1 | sxmo_dmenu.sh -i -p "App Store" |cut -d' ' -f2)"
if ! test "$sel" || test "$sel" = "exit"; then
exit 0
fi