-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.skhdrc
106 lines (83 loc) · 5.18 KB
/
.skhdrc
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
99
100
101
102
103
104
105
106
##### reload with: brew services restart skhd
# focus window
shift + cmd - left : yabai -m window --focus west
shift + cmd - right : yabai -m window --focus east
shift + cmd - up : yabai -m window --focus north
shift + cmd - down : yabai -m window --focus south
# swap managed window
shift + cmd + lctrl - up : yabai -m window --swap north || $(yabai -m window --display north; yabai -m display --focus north)
shift + cmd + lctrl - left : yabai -m window --swap west || $(yabai -m window --display west; yabai -m display --focus west)
shift + cmd + lctrl - down : yabai -m window --swap south || $(yabai -m window --display south; yabai -m display --focus south)
shift + cmd + lctrl - right : yabai -m window --swap east || $(yabai -m window --display east; yabai -m display --focus east)
# warp managed window - will rearrange layout
# shift + cmd + lctrl - up : yabai -m window --warp north || $(yabai -m window --display north; yabai -m display --focus north)
# shift + cmd + lctrl - left : yabai -m window --warp west || $(yabai -m window --display west; yabai -m display --focus west)
# shift + cmd + lctrl - down : yabai -m window --warp south || $(yabai -m window --display south; yabai -m display --focus south)
# shift + cmd + lctrl - right : yabai -m window --warp east || $(yabai -m window --display east; yabai -m display --focus east)
# increase window size
shift + cmd + alt - left: yabai -m window --resize right:-20:0 || yabai -m window --resize left:-40:0
shift + cmd + alt - right : yabai -m window --resize right:20:0 || yabai -m window --resize left:40:0
# decrease window size
shift + cmd + alt - up: yabai -m window --resize bottom:0:-20 || yabai -m window --resize top:0:-40
shift + cmd + alt - down : yabai -m window --resize bottom:0:20 || yabai -m window --resize top:0:40
# toggle window zoom
shift + cmd + lctrl - return : yabai -m window --toggle zoom-parent
shift + cmd + lctrl + alt - return : yabai -m window --toggle zoom-fullscreen || yabai -m window --grid 1:1:0:0:1:1
# float / unfloat window and center on screen
shift + cmd + lctrl - space : yabai -m window --toggle float;\
yabai -m window --grid 4:4:1:1:2:2
# make floating window fill screen
shift + cmd + lctrl + alt - space : yabai -m window --grid 1:1:0:0:1:1
# move floating window
shift + cmd + lctrl + alt - left : yabai -m window --move rel:-40:0
shift + cmd + lctrl + alt - right : yabai -m window --move rel:40:0
shift + cmd + lctrl + alt - up : yabai -m window --move rel:0:-40
shift + cmd + lctrl + alt - down : yabai -m window --move rel:0:40
# make floating window fill left/right half of screen
shift + lctrl + alt - left : yabai -m window --grid 1:2:0:0:1:1
shift + lctrl + alt - right : yabai -m window --grid 1:2:0:0:1:2
shift + lctrl + alt - up : yabai -m window --grid 2:1:0:0:1:1
shift + lctrl + alt - down : yabai -m window --grid 2:1:0:0:1:2
# toggle window split type
shift + cmd + lctrl - 1 : yabai -m space --layout bsp
shift + cmd + lctrl - 2 : yabai -m space --layout float
shift + cmd + lctrl - 3 : yabai -m space --layout topmost
shift + cmd + lctrl - 4 : yabai -m window --toggle pip
# stack movement
#shift + cmd + lctrl + alt - down: yabai -m window --focus stack.next || yabai -m window --focus stack.first
#shift + cmd + lctrl + alt - up: yabai -m window --focus stack.prev || yabai -m window --focus stack.last
#shift + cmd + lctrl + alt - return: yabai -m window --insert stack; skhd -k "escape"
# stacks
#shift + cmd - lctrl - fn - left : yabai -m window --stack west
#shift + cmd - lctrl - fn - right : yabai -m window --stack east
#shift + cmd - lctrl - fn - up : yabai -m window --stack north
#shift + cmd - lctrl - fn - down : yabai -m window --stack south
# balance size of windows
#shift + alt - 0 : yabai -m space --balance
# 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')" && \
# yabai -m window --space "${index}" && \
# yabai -m space --focus "${index}"
# fast focus desktop
# cmd + alt - x : yabai -m space --focus recent
# cmd + alt - 1 : yabai -m space --focus 1
# send window to desktop and follow focus
# shift + cmd - z : yabai -m window --space next; yabai -m space --focus next
# shift + cmd - 2 : yabai -m window --space 2; yabai -m space --focus 2
# focus monitor
# ctrl + alt - z : yabai -m display --focus prev
# ctrl + alt - 3 : yabai -m display --focus 3
# send window to monitor and follow focus
# ctrl + cmd - c : yabai -m window --display next; yabai -m display --focus next
# ctrl + cmd - 1 : yabai -m window --display 1; yabai -m display --focus 1
# rotate windows 90deg
shift + ctrl + cmd - r: yabai -m space --rotate 90 #window --insert stack; skhd -k "escape"
# set insertion point in focused container
# ctrl + alt - h : yabai -m window --insert west
# toggle sticky(+float), topmost, picture-in-picture
#shift + ctrl + alt - space : yabai -m window --toggle sticky;\
# yabai -m window --toggle topmost;\
# yabai -m window --toggle pip;\
# yabai -m window --toggle float
#shift + ctrl + alt - p; yabai - m window --toggle pip;\