From ca8e95ce0057ebdf1bf8bb044fab3eb3c767c402 Mon Sep 17 00:00:00 2001 From: Sendhil Panchadsaram Date: Sat, 1 May 2021 19:55:11 -0700 Subject: [PATCH] yabai: Adjusting shortcuts to go left/right. Found https://github.com/koekeishiya/yabai/issues/203#issuecomment-682086176 which will cycle through the current windows instead of just stopping. --- skhd/.config/skhd/skhdrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skhd/.config/skhd/skhdrc b/skhd/.config/skhd/skhdrc index 5657d1d..9005b28 100755 --- a/skhd/.config/skhd/skhdrc +++ b/skhd/.config/skhd/skhdrc @@ -153,8 +153,9 @@ alt + shift - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai" # Stack Related alt - s : yabai -m space --layout "$(yabai -m query --spaces --space | jq -r 'if .type == "bsp" then "stack" else "bsp" end')" -alt - h : yabai -m window --focus "$(yabai -m query --spaces --space | jq -r 'if .type == "bsp" then "west" else "stack.prev" end')" -alt - l : yabai -m window --focus "$(yabai -m query --spaces --space | jq -r 'if .type == "bsp" then "east" else "stack.next" end')" + +alt - h : yabai -m window --focus stack.prev || yabai -m window --focus prev || yabai -m window --focus last +alt - l : yabai -m window --focus stack.next || yabai -m window --focus next || yabai -m window --focus first # Toggle Split