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

master
Miles Alan 4 years ago
parent 6b9233b965
commit 4f118bb767
  1. 13
      scripts/core/sxmo_appmenu.sh

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

Loading…
Cancel
Save