summaryrefslogtreecommitdiff
path: root/mac/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.local/bin')
-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