skhd: add bind to temporarily show menubar if sketchybar is present

This commit is contained in:
Nico 2025-11-28 13:15:13 +11:00
parent 997f7f48b2
commit a7940bd33f
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0

View file

@ -36,6 +36,9 @@ alt - home : yabai -m space --focus next || yabai -m space --focus first
# Focus previous space by mission-control index if one exists, otherwise focus the last space
alt - end : yabai -m space --focus prev || yabai -m space --focus last
# Temporarily show menu bar
alt - m : sh -c 'if [ -f /opt/homebrew/bin/sketchybar ]; then yabai -m config menubar_opacity 1.0 && sleep 5 && yabai -m config menubar_opacity 0.0; fi'
# Layout/Focus
alt - c : yabai -m space --rotate 90
alt - f : yabai -m window --toggle zoom-fullscreen