aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtoggleBar.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/toggleBar.sh b/toggleBar.sh
new file mode 100755
index 0000000..7625944
--- /dev/null
+++ b/toggleBar.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+configFile="$HOME/.config/barStatus"
+[ ! -f "$configFile" ] && echo "1" >"$configFile"
+if [ "$(cat "$configFile")" = "0" ]; then
+ i3-msg bar mode dock
+ echo "1" >"$configFile"
+else
+ i3-msg bar mode invisible
+ echo "0" >"$configFile"
+fi