From 04ef042596d9b980aaef8263dcc68c5621bec2fa Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Fri, 22 May 2020 23:09:13 -0500 Subject: [PATCH] Fix close menu checks for sxmo_{websearch,timermenu}.sh --- scripts/appscripts/sxmo_timermenu.sh | 7 +++---- scripts/appscripts/sxmo_websearch.sh | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/appscripts/sxmo_timermenu.sh b/scripts/appscripts/sxmo_timermenu.sh index 2d6fff8..8aae763 100755 --- a/scripts/appscripts/sxmo_timermenu.sh +++ b/scripts/appscripts/sxmo_timermenu.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 - diff --git a/scripts/appscripts/sxmo_websearch.sh b/scripts/appscripts/sxmo_websearch.sh index 8be5283..48403f2 100755 --- a/scripts/appscripts/sxmo_websearch.sh +++ b/scripts/appscripts/sxmo_websearch.sh @@ -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}"