From 53f31f060b4d38bd63c47a23dfaa416a48eaf6da Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Mon, 15 Mar 2021 15:24:16 +0100 Subject: [PATCH] implemented toggle option (to be invoked from dwm) --- scripts/core/sxmo_keyboard.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/core/sxmo_keyboard.sh b/scripts/core/sxmo_keyboard.sh index 55637a3..4237edf 100755 --- a/scripts/core/sxmo_keyboard.sh +++ b/scripts/core/sxmo_keyboard.sh @@ -16,7 +16,9 @@ close() { pkill "$KEYBOARD" } -if [ "$1" = "close" ]; then +if [ "$1" = "toggle" ]; then + close || open +elif [ "$1" = "close" ]; then close else open