implemented toggle option (to be invoked from dwm)

This commit is contained in:
Maarten van Gompel 2021-03-15 15:24:16 +01:00
parent 414f84070f
commit 53f31f060b

View file

@ -16,7 +16,9 @@ close() {
pkill "$KEYBOARD"
}
if [ "$1" = "close" ]; then
if [ "$1" = "toggle" ]; then
close || open
elif [ "$1" = "close" ]; then
close
else
open