summaryrefslogtreecommitdiff
path: root/mac/.config/sketchybar.mon/plugins/zen.sh
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-23 12:42:37 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-23 12:42:37 +0900
commit07d294425a98ee5d1e22d03e2b24ae2c76e487c0 (patch)
treea6818f0d64438c5fdb88b00a35d944f80c056213 /mac/.config/sketchybar.mon/plugins/zen.sh
parent6fc28cdb3529ca8ee864cb5c41674cb0a4af72a1 (diff)
updates
Diffstat (limited to 'mac/.config/sketchybar.mon/plugins/zen.sh')
-rwxr-xr-xmac/.config/sketchybar.mon/plugins/zen.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/mac/.config/sketchybar.mon/plugins/zen.sh b/mac/.config/sketchybar.mon/plugins/zen.sh
new file mode 100755
index 0000000..38f2291
--- /dev/null
+++ b/mac/.config/sketchybar.mon/plugins/zen.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+zen_on() {
+ sketchybar --set wifi drawing=off \
+ --set apple.logo drawing=off \
+ --set '/cpu.*/' drawing=off \
+ --set calendar icon.drawing=off \
+ --set separator drawing=off \
+ --set front_app drawing=off \
+ --set volume_icon drawing=off \
+ --set spotify.anchor drawing=off \
+ --set spotify.play updates=off \
+ --set brew drawing=off \
+ --set volume drawing=off \
+ --set github.bell drawing=off
+}
+
+zen_off() {
+ sketchybar --set wifi drawing=on \
+ --set apple.logo drawing=on \
+ --set '/cpu.*/' drawing=on \
+ --set calendar icon.drawing=on \
+ --set separator drawing=on \
+ --set front_app drawing=on \
+ --set volume_icon drawing=on \
+ --set spotify.play updates=on \
+ --set brew drawing=on \
+ --set volume drawing=on \
+ --set github.bell drawing=on
+}
+
+if [ "$1" = "on" ]; then
+ zen_on
+elif [ "$1" = "off" ]; then
+ zen_off
+else
+ if [ "$(sketchybar --query apple.logo | jq -r ".geometry.drawing")" = "on" ]; then
+ zen_on
+ else
+ zen_off
+ fi
+fi
+