-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cwmrc
192 lines (157 loc) · 5.06 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
190
191
# $Id: .cwmrc,v 1.37 2020/12/04 10:30:10 cvs Exp $
#
# Some parts copied from https://hub.darcs.net/raichoo/rcfiles/browse/cwm/
# Thanks!
#############################################################################
# KEY BINDINGS
#############################################################################
# disable default mappings
unbind-key all
# configuration
bind-key 4-Return terminal
bind-key 4S-Return "xterm -geometry 100x35 -e tmux"
bind-key 4S-q window-delete
bind-key 4-i window-menu-label
bind-key 4-m window-maximize
bind-key 4S-e quit
bind-key 4-d "rofi -show combi"
bind-key 4S-d menu-exec
bind-key 4-f window-fullscreen
bind-key 4S-f window-freeze
bind-key 4-p window-hide
bind-key 4-0 group-toggle-all
bind-key 4-backslash "sync"
# Show only group n, hiding other groups
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 4-7 group-only-7
bind-key 4-8 group-only-8
bind-key 4-9 group-only-9
# Hide current window from display and move to n
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 4S-7 window-movetogroup-7
bind-key 4S-8 window-movetogroup-8
bind-key 4S-9 window-movetogroup-9
# Toggle visibility of group n
bind-key 4M-1 group-toggle-1
bind-key 4M-2 group-toggle-2
bind-key 4M-3 group-toggle-3
bind-key 4M-4 group-toggle-4
bind-key 4M-5 group-toggle-5
bind-key 4M-6 group-toggle-6
bind-key 4M-7 group-toggle-7
bind-key 4M-8 group-toggle-8
bind-key 4M-9 group-toggle-9
# Close all windows in the group
bind-key MS-1 group-close-1
bind-key MS-2 group-close-2
bind-key MS-3 group-close-3
bind-key MS-4 group-close-4
bind-key MS-5 group-close-5
bind-key MS-6 group-close-6
bind-key MS-7 group-close-7
bind-key MS-8 group-close-8
bind-key MS-9 group-close-9
# Toggle group membership of current window.
bind-key 4-g window-group
# Raise, lower current window
bind-key 4-Up window-raise
bind-key 4-Down window-lower
# Forward and reverse cycle through windows
bind-key M-Tab window-cycle
bind-key MS-Tab window-rcycle
# Forward and reverse cycle through groups
bind-key 4-Tab group-cycle
bind-key 4S-Tab group-rcycle
# Forward and reverse cycle through windows in current group
bind-key 4-bracketright window-cycle-ingroup
bind-key 4-bracketleft window-rcycle-ingroup
# Launch window search menu.
bind-key 4-s menu-window
# Current window is placed at the top/left of the screen,
# maximized horizontally/vertically and resized to
# half of the vertical/horizontal screen space.
#bind-key 4S-bracketright window-htile
bind-key 4S-bracketleft window-vtile
# Tile master at 65%
vtile 55
# Resize window in the respective direction
bind-key 4-k window-resize-up-big
bind-key 4-j window-resize-down-big
bind-key 4-h window-resize-left-big
bind-key 4-l window-resize-right-big
# Move window in the respective direction
bind-key 4S-k window-move-up-big
bind-key 4S-j window-move-down-big
bind-key 4S-h window-move-left-big
bind-key 4S-l window-move-right-big
# Snap window to screen edge
bind-key 4M-k window-snap-up
bind-key 4M-j window-snap-down
bind-key 4M-h window-snap-left
bind-key 4M-l window-snap-right
# Restart CWM
bind-key 4S-r restart
# Lock screen with xlock
bind-key CM-l "xlock -mode blank"
# Vertically/Horizontally maximize current window
bind-key 4-semicolon window-vmaximize
bind-key 4-dead_acute window-hmaximize
# Move or resize window with mouse
bind-mouse 4-1 window-move
bind-mouse 4-3 window-resize
# sndio volume
bind-key 4C-9 "sndioctl output.level=-0.1"
bind-key 4C-0 "sndioctl output.level=+0.1"
#############################################################################
# SETTINGS
#############################################################################
# Minimum distance to snap-to adjacent edge, in pixels.
snapdist 5
# Toggle sticky group mode. The default behavior for new windows
# is to not assign any group. By enabling sticky group mode,
# cwm(1) will assign new windows to the currently selected group.
sticky yes
# Move windows by the following amount
moveamount 5
# Set the window border width
borderwidth 1
# Default font
fontname "fixed-10"
# Ignore, and do not warp to, windows with these names
ignore bar
ignore lemonbar
ignore log
ignore xclock
ignore top
# Define a gap for status bar at bottom
gap 20 20 20 20
#############################################################################
# COLORS
#############################################################################
color activeborder "#101218"
color inactiveborder "#000000"
color menubg "#282C34"
color menufg "#e32929"
color font "#FFFFFF"
color selfont "#000000"
color urgencyborder "#e32929"
color groupborder "#FF00FB"
color ungroupborder "#FFFF00"
#############################################################################
# COMMANDS
#############################################################################
autogroup 1 "log"
autogroup 1 "neomutt"
autogroup 2 "dev"
autogroup 3 "Firefox"
autogroup 9 "monitor"