Add Close Menu entry to sxmo_urlhandler.sh menu

master
Miles Alan 4 years ago
parent bc10d502bd
commit b7b2fa495a
  1. 5
      scripts/core/sxmo_urlhandler.sh

@ -24,6 +24,7 @@ fi
COMMAND=$(
echo "
Close Menu
$(command -v w3m >/dev/null && echo 'w3m URL')
$(command -v mpv >/dev/null && echo 'mpv -ao=alsa -v URL')
$(command -v mpv >/dev/null && echo 'mpv -ao=alsa -v --ytdl-format='[height<420]' URL')
@ -42,10 +43,10 @@ COMMAND=$(
sed -e 's/^\s*//' |
dmenu -fn Terminus-15 -p "Pipe URL" -c -l 20
)
[ -z "$COMMAND" ] && exit 1
[ "$COMMAND" = "Close Menu" ] && exit 1
[ -z "$COMMAND" ] && exit 1
RUN=$(echo "$URL" | xargs -IURL echo "$COMMAND")
if [ "$FORK" = fork ]; then
st -e sh -c "$RUN" &
else

Loading…
Cancel
Save