From 4f118bb767245be194996c3615e392bbf3a76a8e Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Thu, 20 Aug 2020 19:40:14 -0500 Subject: [PATCH] Add menu entry to edit scripts / open files script in Userscripts menu --- scripts/core/sxmo_appmenu.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh index fd40ba8..bd75512 100755 --- a/scripts/core/sxmo_appmenu.sh +++ b/scripts/core/sxmo_appmenu.sh @@ -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