summaryrefslogtreecommitdiff
path: root/mac/.local
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 20:35:27 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 20:35:27 +0900
commitc80a54e42b52ce297f0f2f71af23c562832025c7 (patch)
treedcce8bb977a770f473325d48f6f70b21d9818a40 /mac/.local
init
Diffstat (limited to 'mac/.local')
-rwxr-xr-xmac/.local/bin/menu15
1 files changed, 15 insertions, 0 deletions
diff --git a/mac/.local/bin/menu b/mac/.local/bin/menu
new file mode 100755
index 0000000..32fcfff
--- /dev/null
+++ b/mac/.local/bin/menu
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+query="switch"
+
+if [ "$query" == "switch" ]; then
+ osascript <<EOF
+tell application "System Events"
+ tell dock preferences
+ set autohide menu bar to not autohide menu bar
+ end tell
+end tell
+
+display notification "Menu bar autohide feature is toggled" with title "Menu Bar Autohide"
+EOF
+fi