aboutsummaryrefslogtreecommitdiff
path: root/toggle-monocle
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-12-14 11:48:47 +0200
committersrdusr <trevorgray@srdusr.com>2023-12-14 11:48:47 +0200
commit60a6caee5fb3cd27de1f102636b8769ce35ddda1 (patch)
tree5f8872515132cfbfabe8b3d5bdc9a3173d48a43e /toggle-monocle
parentb3c6961ec830d9cea78bd54354f0e67024f68fcc (diff)
downloaddotfiles-60a6caee5fb3cd27de1f102636b8769ce35ddda1.tar.gz
dotfiles-60a6caee5fb3cd27de1f102636b8769ce35ddda1.zip
Add toggle-monocle
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