-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cwmrc
189 lines (164 loc) · 6.14 KB
/
.cwmrc
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# distance windows snap to the edge from
snapdist 0
fontname "Terminus:size:10"
unbind-key all
# pixels to move when moving
moveamount 3
# gap at the edge of the screen to be respected when maximizing windows
gap 30 30 30 30
# gap 20 20 20 20
# gap 15 15 15 15
borderwidth 1
# color activeborder "#d8d8d8"
color activeborder "#ffffff"
# color inactiveborder "#181818"
color inactiveborder "#252525"
# color menubg "#d8d8d8"
# color selfont "#d8d8d8"
# color menufg "#181818"
# color font "#181818"
# assign windows to currently selected group
sticky yes
bind-key 4-d "dmenu_run -fn 'Terminus-12'"
bind-key 4-r pcmanfm
bind-key 4-w firefox
bind-key 4-e thunderbird
bind-key 4-Return alacritty
bind-key 4-t telegram-desktop
# bind-key 4S-x quit
bind-key 4S-x /home/mo/scripts/systemmenu.fish
bind-key 4-x restart
bind-key 4-q window-close
bind-key 4-Tab window-cycle
bind-key 4S-Tab window-rcycle
bind-key M-Tab group-cycle
bind-key 4-a group-cycle
bind-key 4S-a group-rcycle
bind-key 4-u window-hide
bind-key 4-f window-maximize
bind-key 4-z menu-window
bind-key 4-m /home/mo/scripts/xdo-center.sh
bind-key 4-i /home/mo/scripts/systeminfo_corsair.fish
bind-key 4S-m /home/mo/scripts/xdo-uncenter.sh
bind-key 4-n /home/mo/scripts/xdo-tile.sh
bind-key 4-o /home/mo/scripts/dmenuscript.fish
bind-key 4C-1 group-toggle-1
bind-key 4C-2 group-toggle-2
bind-key 4C-3 group-toggle-3
bind-key 4C-4 group-toggle-4
bind-key 4C-5 group-toggle-5
bind-key 4C-6 group-toggle-6
bind-key 4S-1 window-movetogroup-1
bind-key 4S-2 window-movetogroup-2
bind-key 4S-3 window-movetogroup-3
bind-key 4S-4 window-movetogroup-4
bind-key 4S-5 window-movetogroup-5
bind-key 4S-6 window-movetogroup-6
bind-key 4-1 group-only-1
bind-key 4-2 group-only-2
bind-key 4-3 group-only-3
bind-key 4-4 group-only-4
bind-key 4-5 group-only-5
bind-key 4-6 group-only-6
bind-key 4C-h window-move-left-big
bind-key 4C-j window-move-down-big
bind-key 4C-k window-move-up-big
bind-key 4C-l window-move-right-big
bind-key 4-l group-cycle
bind-key 4-j window-cycle
bind-key 4-k window-rcycle
bind-key 4-h group-rcycle
bind-key M-h window-move-left-big
bind-key M-j window-move-down-big
bind-key M-k window-move-up-big
bind-key M-l window-move-right-big
bind-key 4CS-h window-resize-left-big
bind-key 4CS-j window-resize-down-big
bind-key 4CS-k window-resize-up-big
bind-key 4CS-l window-resize-right-big
bind-key 4S-h window-snap-left
bind-key 4S-j window-snap-down
bind-key 4S-k window-snap-up
bind-key 4S-l window-snap-right
bind-key 4-Left pointer-move-left
bind-key 4-Right pointer-move-right
# bind-key 4-m window-vtile
# bind-key 4-comma window-htile
bind-key 4-comma window-vmaximize
bind-key 4-period window-hmaximize
bind-mouse 4-1 window-move
bind-mouse 4-2 window-lower
bind-mouse 4-3 window-resize
bind-mouse 4-4 group-cycle
bind-mouse 4-5 group-rcycle
# root menu
command alacritty alacritty
command firefox firefox
command pcmanfm pcmanfm
command telegram telegram-desktop
command slock slock
# cwm actions are initiated either via key or mouse bindings. The following nota‐
# tions are used throughout this page:
#
# C Control key.
# M Meta key.
# S Shift key.
# 4 Mod4 (windows) key.
# M1 Left mouse button.
# M2 Middle mouse button.
# M3 Right mouse button.
#
# The default key bindings are:
#
# CM-Return Spawn a new terminal.
# CM-Delete Lock the screen.
# M-Return Hide current window.
# M-Down Lower current window.
# M-Up Raise current window.
# M-slash Search for windows.
# C-slash Search for applications.
# CM-n Label current window.
# M-Tab Cycle through currently visible windows.
# MS-Tab Reverse cycle through currently visible windows.
# CM-x Close current window.
# CM-[n] Toggle visibility of group n, where n is 1-9.
# CM-a Toggle visibility of all groups.
# CM-g Toggle group membership of current window.
# M-Right Cycle through active groups.
# M-Left Reverse cycle through active groups.
# CMS-f Toggle freezing geometry of current window.
# CM-s Toggle stickiness of current window.
# CM-f Toggle full-screen mode of current window.
# CM-m Toggle maximization of current window.
# CM-equal Toggle vertical maximization of current window.
# CMS-equal Toggle horizontal maximization of current window.
# M-[hjkl] Move window by a small amount.
# MS-[hjkl] Move window by a large amount; see cwmrc(5).
# CM-[hjkl] Resize window by a small amount.
# CMS-[hjkl] Resize window by a large amount; see cwmrc(5).
# M-question Spawn “exec program” dialog.
# M-period Spawn “ssh to” dialog. This parses $HOME/.ssh/known_hosts
# to provide host auto-completion. ssh(1) will be executed
# via the configured terminal emulator.
# CM-w Spawn “exec WindowManager” menu, allowing a switch to an‐
# other window manager.
# CMS-r Restart.
# CMS-q Quit.
#
# The default mouse bindings are:
#
# M-M1 Move current window.
# CM-M1 Toggle group membership of current window.
# M-M2 Resize current window
# M-M3 Lower current window.
# CMS-M3 Hide current window.
#
# The following key bindings may be used to navigate search and exec dialogs:
#
# [Return] Select item.
# [Down], C-s or M-j Next item.
# [Up], C-r or M-k Previous item.
# [Backspace] or C-h Backspace.
# C-u Clear input.
# C-a List all available items.
# [Esc] Cancel.