~tommoa/dots

0376002f3716cf7171e5ab9f9b3850647a06d0c1 — Tom Almeida 3 months ago 62405df
fix(skhd): Make sure "Create new space and move selected to it" works

This previously wouldn't work as the json output of yabai had changed.
1 files changed, 1 insertions(+), 1 deletions(-)

M .config/skhd/skhdrc
M .config/skhd/skhdrc => .config/skhd/skhdrc +1 -1
@@ 62,7 62,7 @@ lcmd + lalt + shift - y : yabai -m window --display recent
lcmd - k : yabai -m space --create
# Create and move
lcmd + shift - k : yabai -m space --create && \
                          index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
                          index="$(yabai -m query --spaces --display | jq 'map(select(."is-native-fullscreen" | not))[-1].index')" && \
                          yabai -m window --space "${index}"
lcmd - m : yabai -m space --destroy