~tommoa/dots

ref: 62405dfb63f737619f7322578f7f94e3d58505f0 dots/.config/skhd/skhdrc -rw-r--r-- 3.5 KiB
62405dfbTom Almeida feat(nvim-treesitter): Install all treesitter plugins 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Window focusing
lcmd - h : yabai -m window --focus west
lcmd - n : yabai -m window --focus south
lcmd - e : yabai -m window --focus north
lcmd - i : yabai -m window --focus east

# Window movement
lcmd + shift - h : yabai -m window --warp west
lcmd + shift - n : yabai -m window --warp south
lcmd + shift - e : yabai -m window --warp north
lcmd + shift - i : yabai -m window --warp east

# Space focusing
lcmd - l : yabai -m space --focus prev
lcmd - u : yabai -m space --focus next
lcmd - y : yabai -m space --focus recent

lcmd - 1 : yabai -m space --focus 1
lcmd - 2 : yabai -m space --focus 2
lcmd - 3 : yabai -m space --focus 3
lcmd - 4 : yabai -m space --focus 4
lcmd - 5 : yabai -m space --focus 5
lcmd - 6 : yabai -m space --focus 6
lcmd - 7 : yabai -m space --focus 7
lcmd - 8 : yabai -m space --focus 8
lcmd - 9 : yabai -m space --focus 9
lcmd - 0 : yabai -m space --focus 10

# Window space movement
lcmd + shift - l : yabai -m window --space prev
lcmd + shift - u : yabai -m window --space next
lcmd + shift - y : yabai -m window --space recent

lcmd + shift - 1 : yabai -m window --space 1
lcmd + shift - 2 : yabai -m window --space 2
lcmd + shift - 3 : yabai -m window --space 3
lcmd + shift - 4 : yabai -m window --space 4
lcmd + shift - 5 : yabai -m window --space 5
lcmd + shift - 6 : yabai -m window --space 6
lcmd + shift - 7 : yabai -m window --space 7
lcmd + shift - 8 : yabai -m window --space 8
lcmd + shift - 9 : yabai -m window --space 9
lcmd + shift - 0 : yabai -m window --space 10

# Moving focus between monitors
lcmd + lalt - h : yabai -m display --focus west
lcmd + lalt - n : yabai -m display --focus south
lcmd + lalt - e : yabai -m display --focus north
lcmd + lalt - i : yabai -m display --focus east

lcmd + lalt - y : yabai -m display --focus recent

# Moving windows between monitors
lcmd + lalt + shift - h : yabai -m window --display west; yabai -m display --focus west
lcmd + lalt + shift - n : yabai -m window --display south; yabai -m display --focus south
lcmd + lalt + shift - e : yabai -m window --display north; yabai -m display --focus north
lcmd + lalt + shift - i : yabai -m window --display east; yabai -m display --focus east

lcmd + lalt + shift - y : yabai -m window --display recent

# Creating new spaces
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')" && \
                          yabai -m window --space "${index}"
lcmd - m : yabai -m space --destroy

# set insertion point in focused container
lctrl + lalt - h : yabai -m window --insert west
lctrl + lalt - n : yabai -m window --insert south
lctrl + lalt - e : yabai -m window --insert north
lctrl + lalt - i : yabai -m window --insert east

# toggle window zoom
lctrl + lalt - d : yabai -m window --toggle zoom-parent
lctrl + lalt - f : yabai -m window --toggle zoom-fullscreen

# toggle window split type
lctrl + lalt - b : yabai -m window --toggle split

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

# toggle sticky
lctrl + lalt - s : yabai -m window --toggle sticky

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

# balance size of windows
# lcmd + lalt - '='
lcmd + lalt - 0x18 : yabai -m space --balance

lcmd - return : open -n -a ~/Applications/Alacritty.app