-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_skhdrc
83 lines (68 loc) · 3.44 KB
/
dot_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
# Navigation
alt - h : chunkc tiling::window --focus west
alt - j : chunkc tiling::window --focus south
alt - k : chunkc tiling::window --focus north
alt - l : chunkc tiling::window --focus east
# Moving windows
shift + alt - h : chunkc tiling::window --warp west
shift + alt - j : chunkc tiling::window --warp south
shift + alt - k : chunkc tiling::window --warp north
shift + alt - l : chunkc tiling::window --warp east
# Move focus container to workspace
shift + alt - m : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop) || \
chunkc tiling::window --send-to-desktop (chunkc get _last_active_desktop)
shift + alt - p : chunkc tiling::window --send-to-desktop prev
shift + alt - n : chunkc tiling::window --send-to-desktop next
shift + alt - 1 : chunkc tiling::window --send-to-desktop 1
shift + alt - 2 : chunkc tiling::window --send-to-desktop 2
shift + alt - 3 : chunkc tiling::window --send-to-desktop 3
shift + alt - 4 : chunkc tiling::window --send-to-desktop 4
shift + alt - 5 : chunkc tiling::window --send-to-desktop 5
shift + alt - 6 : chunkc tiling::window --send-to-desktop 6
# Resize windows
lctrl + alt - h : \
chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge west; \
chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge east
lctrl + alt - j : \
chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge south; \
chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge north
lctrl + alt - k : \
chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge north; \
chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge south
lctrl + alt - l : \
chunkc tiling::window --use-temporary-ratio 0.05 --adjust-window-edge east; \
chunkc tiling::window --use-temporary-ratio -0.05 --adjust-window-edge west
# Float and center window
shift + alt - c : \
if (("$(chunkc tiling::query --window float)" == 0)); then \
chunkc tiling::window --toggle float; \
chunkc tiling::window --grid-layout 6:6:1:1:4:4; \
else \
chunkc tiling::window --toggle float; \
fi
# Equalize size of windows
lctrl + alt - 0 : chunkc tiling::desktop --equalize
# Enable / Disable gaps in current workspace
lctrl + alt - g : chunkc tiling::desktop --toggle offset
# Rotate windows clockwise and anticlockwise
alt - r : chunkc tiling::desktop --rotate 90
shift + alt - r : chunkc tiling::desktop --rotate 270
# Rotate on X and Y Axis
shift + alt - x : chunkc tiling::desktop --mirror horizontal
shift + alt - y : chunkc tiling::desktop --mirror vertical
# Set insertion point for focused container
shift + lctrl + alt - x : chunkc tiling::window --use-insertion-point cancel
shift + lctrl + alt - h : chunkc tiling::window --use-insertion-point west
shift + lctrl + alt - j : chunkc tiling::window --use-insertion-point south
shift + lctrl + alt - k : chunkc tiling::window --use-insertion-point north
shift + lctrl + alt - l : chunkc tiling::window --use-insertion-point east
# Float / Unfloat window
shift + alt - space : chunkc tiling::window --toggle float
# Restart Chunkwm
shift + lctrl + alt - r : \
/usr/bin/env osascript <<< \
"display notification \"Restarting Chunkwm\" with title \"Chunkwm\""; \
brew services restart chunkwm
# Make window native fullscreen
alt - f : chunkc tiling::window --toggle fullscreen
shift + alt - f : chunkc tiling::window --toggle native-fullscreen