Add menu entry to edit scripts / open files script in Userscripts menu

This commit is contained in:
Miles Alan 2020-08-20 19:40:14 -05:00
parent 6b9233b965
commit 4f118bb767

View file

@ -14,11 +14,14 @@ programchoicesinit() {
if echo "$WMCLASS" | grep -i "userscripts"; then
# Userscripts menu
CHOICES="$(
find "$XDG_CONFIG_HOME/sxmo/userscripts" \( -type f -o -type l \) -print0 |
xargs -IF basename F |
awk '{printf "%s\t^ 0 ^ $XDG_CONFIG_HOME/sxmo/userscripts/%s \n", $0, $0}'
)"
CHOICES="
$(
find "$XDG_CONFIG_HOME/sxmo/userscripts" \( -type f -o -type l \) -print0 |
xargs -IF basename F |
awk '{printf "%s\t^ 0 ^ $XDG_CONFIG_HOME/sxmo/userscripts/%s \n", $0, $0}'
)
Edit Scripts ^ 0 ^ sxmo_files.sh $XDG_CONFIG_HOME/sxmo/userscripts
"
WINNAME=Userscripts
elif echo "$WMCLASS" | grep -i "scripts"; then
# Scripts menu