diff --git a/.config/skhd/scripts/menubar.sh b/.config/skhd/scripts/menubar.sh new file mode 100755 index 0000000..17010c7 --- /dev/null +++ b/.config/skhd/scripts/menubar.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +#test if output of command is 0.0000 + +current_value=$(yabai -m config menubar_opacity) +if [ "$current_value" == "0.0000" ]; then + yabai -m config menubar_opacity 1.0 +else + yabai -m config menubar_opacity 0.0 +fi diff --git a/.config/skhd/skhdrc b/.config/skhd/skhdrc index e9acaca..6ab3604 100644 --- a/.config/skhd/skhdrc +++ b/.config/skhd/skhdrc @@ -1,6 +1,7 @@ # Terminal and Applications -cmd - t : open -na alacritty -cmd - b : open -a Firefox +cmd + alt - t : open -na alacritty +cmd + alt - b : open -a Firefox +cmd + shift - v : ~/.config/skhd/scripts/menubar.sh # System Controls cmd - return : yabai -m window --swap west