This repository has been archived by the owner on May 25, 2022. It is now read-only.
forked from holman/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathkhdrc
127 lines (102 loc) · 4.71 KB
/
khdrc
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Enable kwm compatibility mode
khd kwm on
# set color of default mode
khd mode default color 0xFFD5C4A1
# Enable the prefix mode
# khd mode prefix prefix on
# khd mode prefix timeout 0.75
# khd mode prefix restore default
# khd mode prefix color 0xFF458588
# Activate prefix mode
# ctrl - s : khd -e "mode activate prefix"
# Quit Kwm
# cmd + alt + ctrl - q : kwmc quit
# Launch iTerm2
# cmd - return : open -na /Applications/iTerm.app
# Set Space Tiling Mode To BSP
cmd + ctrl - a : kwmc space -t bsp
# Set Space Tiling Mode To Monocle
cmd + ctrl - s : kwmc space -t monocle
# Set Space Tiling Mode To Floating
cmd + ctrl - d : kwmc space -t float
# Rotate Window-Tree By 90degrees (Clockwise)
cmd + ctrl - r : kwmc tree rotate 90
# Modify Container
# prefix - s : kwmc window -c split-mode toggle
# prefix - 0x32 : kwmc window -c type toggle
#
# prefix - h : kwmc window -c expand 0.05 west
# prefix - j : kwmc window -c expand 0.05 south
# prefix - k : kwmc window -c expand 0.05 north
# prefix - l : kwmc window -c expand 0.05 east
#
# prefix + shift - h : kwmc window -c reduce 0.05 west
# prefix + shift - j : kwmc window -c reduce 0.05 south
# prefix + shift - k : kwmc window -c reduce 0.05 north
# prefix + shift - l : kwmc window -c reduce 0.05 east
# Set Temporary Window Container
# prefix - f : kwmc window -z fullscreen
# prefix - d : kwmc window -z parent
# prefix - w : kwmc window -t focused
# Mark Window
# cmd + alt + ctrl - m : kwmc window -mk focused
# cmd + alt + ctrl - h : kwmc window -mk west wrap
# cmd + alt + ctrl - l : kwmc window -mk east wrap
# cmd + alt + ctrl - j : kwmc window -mk south wrap
# cmd + alt + ctrl - k : kwmc window -mk north wrap
# Give Focus To Window
cmd + ctrl - h : kwmc window -f west
cmd + ctrl - l : kwmc window -f east
cmd + ctrl - j : kwmc window -f south
cmd + ctrl - k : kwmc window -f north
# cmd + ctrl - n : kwmc window -fm prev
# cmd + ctrl - m : kwmc window -fm next
# Give Focus To Screen
cmd + ctrl - 1 : kwmc display -f 0
cmd + ctrl - 2 : kwmc display -f 1
cmd + ctrl - 3 : kwmc display -f 2
cmd + ctrl - p : kwmc display -f prev
cmd + ctrl - n : kwmc display -f next
# Swap Focused Window
ctrl + alt - h : kwmc window -s west
ctrl + alt - j : kwmc window -s south
ctrl + alt - k : kwmc window -s north
ctrl + alt - l : kwmc window -s east
ctrl + alt - p : kwmc window -s prev
ctrl + alt - n : kwmc window -s next
# ctrl + alt - m : kwmc window -s mark
# Pseudo containers
# cmd + ctrl + alt - p : kwmc tree -pseudo create
# cmd + ctrl + alt - o : kwmc tree -pseudo destroy
# Detach Focused Window And Reinsert In Direction
# ctrl + shift - k : kwmc window -m north
# ctrl + shift - l : kwmc window -m east
# ctrl + shift - j : kwmc window -m south
# ctrl + shift - h : kwmc window -m west
# Detach Marked Window And Reinsert At Focused Window
# ctrl + shift - x : kwmc window -m mark
# Move Focused Window To Space
cmd + ctrl + shift - h : kwmc window -m space left
cmd + ctrl + shift - l : kwmc window -m space right
# Move Focused Window To Screen
ctrl + alt - 1 : kwmc window -m display 0
ctrl + alt - 2 : kwmc window -m display 1
ctrl + alt - 3 : kwmc window -m display 2
# Increase Container Gaps
# prefix - x : kwmc space -g increase horizontal
# prefix - y : kwmc space -g increase vertical
# Decrease Container Gaps
# prefix + shift - x : kwmc space -g decrease horizontal
# prefix + shift - y : kwmc space -g decrease vertical
# Increase Screen Padding
# prefix - left : kwmc space -p increase left
# prefix - right : kwmc space -p increase right
# prefix - up : kwmc space -p increase top
# prefix - down : kwmc space -p increase bottom
# prefix - p : kwmc space -p increase all
# Decrease Screen Padding
# prefix + shift - left : kwmc space -p decrease left
# prefix + shift - right : kwmc space -p decrease right
# prefix + shift - up : kwmc space -p decrease top
# prefix + shift - down : kwmc space -p decrease bottom
# prefix + shift - p : kwmc space -p decrease all