From e05139fd0f812794fad9a8a0a15c88b7be694cb5 Mon Sep 17 00:00:00 2001 From: afonso Date: Thu, 22 Feb 2024 11:32:43 +0000 Subject: [PATCH] [SKHD] updated yabai keybinds --- .config/skhd/scripts/menubar.sh | 10 ++++++++++ .config/skhd/skhdrc | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 .config/skhd/scripts/menubar.sh 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