Add menu entry to edit scripts / open files script in Userscripts menu
This commit is contained in:
parent
6b9233b965
commit
4f118bb767
1 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue