diff --git a/.config/skhd/skhdrc b/.config/skhd/skhdrc index 356a809b..658dffad 100644 --- a/.config/skhd/skhdrc +++ b/.config/skhd/skhdrc @@ -48,7 +48,7 @@ lctrl + cmd - l : \ yabai -m window --resize right:20:0 # Float window -cmd - f : yabai -m window --toggle float +lctrl - f : yabai -m window --toggle float # Fullscreen window alt + shift - f : yabai -m window --toggle zoom-fullscreen diff --git a/.config/yabai/open-iterm2.sh b/.config/yabai/open-iterm2.sh index fcba0de3..0ea1e260 100755 --- a/.config/yabai/open-iterm2.sh +++ b/.config/yabai/open-iterm2.sh @@ -6,9 +6,11 @@ # Distributed under terms of the MIT license. # -if pgrep -f "iTerm" > /dev/null 2>&1; then +if ! pgrep -f "iTerm" > /dev/null 2>&1; then + echo "Opening iTerm" exec open -a "/Applications/iTerm.app" elif ! osascript -e 'tell application "iTerm2" to create window with default profile' > /dev/null 2>&1; then + echo "Killing iTerm and restarting" killall "iTerm" exec open -a "/Applications/iTerm.app" fi