Skip to content

Commit

Permalink
update skhd
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhizhen committed Jul 23, 2024
1 parent 77fcb99 commit 45c2bc0
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .skhdrc → .config/skhd/skhdrc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@
# ############################################################### #

# focus window
# alt - h : yabai -m window --focus west
alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east

# swap managed window
# shift + alt - h : yabai -m window --swap north
Expand All @@ -96,7 +99,7 @@

# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
# shift + cmd - n : 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" == false))[-1].index')" && \
# yabai -m window --space "${index}" && \
# yabai -m space --focus "${index}"

Expand All @@ -123,6 +126,10 @@
# increase window size
# shift + alt - a : yabai -m window --resize left:-20:0
# shift + alt - w : yabai -m window --resize top:0:-20
ctrl + lalt - h : yabai -m window --resize right:-10:0 || yabai -m window --resize left:-10:0
ctrl + lalt - j : yabai -m window --resize bottom:0:10 || yabai -m window --resize top:0:10
ctrl + lalt - k : yabai -m window --resize bottom:0:-10 || yabai -m window --resize top:0:-10
ctrl + lalt - l : yabai -m window --resize right:10:0 || yabai -m window --resize left:10:0

# decrease window size
# shift + cmd - s : yabai -m window --resize bottom:0:-20
Expand All @@ -133,19 +140,13 @@

# toggle window zoom
# alt - d : yabai -m window --toggle zoom-parent
# alt - f : yabai -m window --toggle zoom-fullscreen
ctrl + alt - f : yabai -m window --toggle zoom-fullscreen

# toggle window split type
# alt - e : yabai -m window --toggle split

# float / unfloat window and center on screen
# alt - t : yabai -m window --toggle float;\
# yabai -m window --grid 4:4:1:1:2:2
# alt - t : yabai -m window --toggle float --grid 4:4:1:1:2:2

# toggle sticky(+float), topmost, picture-in-picture
# alt - p : yabai -m window --toggle sticky;\
# yabai -m window --toggle topmost;\
# yabai -m window --toggle pip

# open alacritty
ctrl + cmd - i : /Applications/Alacritty.app/Contents/MacOS/alacritty
# alt - p : yabai -m window --toggle sticky --toggle topmost --toggle pip

0 comments on commit 45c2bc0

Please sign in to comment.