aboutsummaryrefslogtreecommitdiff
path: root/toggle-monocle
diff options
context:
space:
mode:
Diffstat (limited to 'toggle-monocle')
-rwxr-xr-xtoggle-monocle13
1 files changed, 13 insertions, 0 deletions
diff --git a/toggle-monocle b/toggle-monocle
new file mode 100755
index 0000000..bad444a
--- /dev/null
+++ b/toggle-monocle
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+# toggle monocle mode for bspwm
+
+MONOCLE=$(eww get monocleMode)
+if [ $MONOCLE = true ]; then
+ eww update monocleMode=false
+ # notify "Zoom Out"
+else
+ eww update monocleMode=true
+ # notify "Zoom In"
+fi
+bspc desktop -l next