[SKHD] updated yabai keybinds

This commit is contained in:
Afonso Franco 2024-02-22 11:32:43 +00:00
parent d9fe451ad4
commit e05139fd0f
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys
2 changed files with 13 additions and 2 deletions

10
.config/skhd/scripts/menubar.sh Executable file
View file

@ -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

View file

@ -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