Fix close menu checks for sxmo_{websearch,timermenu}.sh

master
Miles Alan 5 years ago
parent 0a47a6e9b2
commit 04ef042596
  1. 7
      scripts/appscripts/sxmo_timermenu.sh
  2. 2
      scripts/appscripts/sxmo_websearch.sh

@ -1,6 +1,6 @@
#!/usr/bin/env sh
pidof svkbd-sxmo || svkbd-sxmo &
TIMEINPUT=$(
TIMEINPUT="$(
echo "1h
10m
9m
@ -14,9 +14,8 @@ echo "1h
1m
30s
Close Menu" | dmenu -p Timer -c -fn "Terminus-30" -l 20
)
)"
pkill svkbd-sxmo
[ "Close Menu" = $TIMEINPUT ] && exit 0
[[ "Close Menu" == "$TIMEINPUT" ]] && exit 0
st -f Monospace-50 -e sxmo_timer.sh $TIMEINPUT

@ -4,6 +4,6 @@ SEARCHQUERY="$(
echo "Close Menu" | dmenu -p "Search Query:" -c -fn "Terminus-20" -l 20
)"
pkill svkbd-sxmo
[ "Close Menu" = $SEARCHQUERY ] && exit 0
[[ "Close Menu" == "$SEARCHQUERY" ]] && exit 0
surf "https://duckduckgo.com/?q=${SEARCHQUERY}"

Loading…
Cancel
Save