From 07d294425a98ee5d1e22d03e2b24ae2c76e487c0 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 23 Aug 2025 12:42:37 +0900 Subject: updates --- mac/.config/sketchybar/plugins/dnd.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 mac/.config/sketchybar/plugins/dnd.sh (limited to 'mac/.config/sketchybar/plugins/dnd.sh') diff --git a/mac/.config/sketchybar/plugins/dnd.sh b/mac/.config/sketchybar/plugins/dnd.sh deleted file mode 100644 index 42c7ba6..0000000 --- a/mac/.config/sketchybar/plugins/dnd.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -# Load global styles, colors and icons -source "$CONFIG_DIR/globalstyles.sh" - -update() { - dnd_enabled=$(cat ~/Library/DoNotDisturb/DB/Assertions.json | jq .data[0].storeAssertionRecords) - # alternate method: defaults read com.apple.controlcenter "NSStatusItem Visible FocusModes" - ICON=􀆺 - - if [ "$dnd_enabled" = "null" ]; then - COLOR=$WHITE_25 - # echo $NAME: "Disabled" - else - COLOR=$WHITE - # echo $NAME: "Enabled" - fi - - sketchybar --set $NAME icon=$ICON icon.color=$COLOR -} - -toggle() { - osascript -e 'tell application "System Events" to keystroke "\\" using {control down, shift down, command down, option down}' -} - -case "$SENDER" in -"routine" | "forced" | "focus_on" | "focus_off") - update - ;; -"mouse.clicked") - toggle - ;; -esac -- cgit v1.2.3