added some corrections to bin/statusbar; the xterm font size is
[home.git] / .cwmrc
blob8d7a1ae5a779c9da71434046b7ebfbc417e5bce6
1 # $Id: .cwmrc,v 1.3 2016/11/30 17:39:29 fste Exp $
3 #cwmrc calm window manager configuration file
5 # ------------------------------------------------------------------------------
6 # Copywhat (?) 2016 stefano ferro <fstef@cryptolab.net>
8 # This work is protected by the Berne Convention but nobody can tell us
9 # what we can do and what we can't, so we don't care.
10 # Anybody caught use, copy, hacking, and distribute this work for any 
11 # purpose, or otherwise experience it, without our permission. 
12 # Credit the creator of this work is a matter of ethics, not a matter 
13 # of law, so is up to you.
15 # THE WORK IS PROVIDED "AS IS" AND YOU USE IT AT YOUR OWN RISK.
16 # ------------------------------------------------------------------------------
18 #The following options are accepted:
20 #autogroup group windowclass
21 autogroup 1 "xterm,XTerm"
23 #autogroup group windowname,windowclass
24 #    Automatically add new windows to group if their class property matches
25 #    windowclass, or if their name and class properties match windowname and
26 #    windowclass, respectively. The more specific last match wins. group is a
27 #    number between 0 and 9. If group is 0, matching windows will not be added
28 #    to any group; this may be used to override "sticky group mode".
29 #    The name and class values, respectively, for existing windows are both set
30 #    in the WM_CLASS property and may be obtained using xprop(1).
31 #bind keys command
32 #    Cause the creation of a key binding, or replacement of a default key
33 #    binding. The modifier keys come first, followed by a "-".
34 #    The following modifiers are recognised:
36 #    C
37 #        Control key.
38 #    M
39 #        Meta key.
40 #    S
41 #        Shift key.
42 #    4
43 #        Mod4 (windows) key.
45 #    The "-" should be followed by a keysym name, taken from 
46 #        /usr/X11R6/include/X11/keysymdef.h. The command may either 
47 #        be one from the BIND COMMAND LIST (see below) or the command 
48 #        line that is to be executed.
49 #    A special command keyword "unmap" can be used to remove the named key
50 #    binding. This can be used to remove a binding which conflicts with an
51 #    application.
53 # unmap every default key bindings 
55 bind CM-Return unmap
56 bind CM-Delete unmap
57 bind M-Return unmap
58 bind M-Down unmap
59 bind M-Up unmap
60 bind M-slash unmap
61 bind C-slash unmap
62 bind CM-n unmap
63 bind M-Tab unmap
64 bind MS-Tab unmap
65 bind CM-x unmap
66 bind CM-1 unmap
67 bind CM-2 unmap
68 bind CM-3 unmap
69 bind CM-4 unmap
70 bind CM-5 unmap
71 bind CM-6 unmap
72 bind CM-7 unmap
73 bind CM-8 unmap
74 bind CM-9 unmap
75 bind CM-0 unmap
76 bind CM-g unmap
77 bind M-Right unmap
78 bind M-Left unmap
79 bind CMS-f unmap
80 bind CM-s unmap
81 bind CM-f unmap
82 bind CM-m unmap
83 bind CM-equal unmap
84 bind CMS-equal unmap
85 bind C-Up unmap
86 bind C-Down unmap
87 bind C-Left unmap
88 bind C-Right unmap
89 bind CS-Up unmap
90 bind CS-Down unmap
91 bind CS-Left unmap
92 bind CS-Right unmap
93 bind M-h unmap
94 bind M-j unmap
95 bind M-k unmap
96 bind M-l unmap
97 bind MS-h unmap
98 bind MS-j unmap
99 bind MS-k unmap
100 bind MS-l unmap
101 bind CM-h unmap
102 bind CM-j unmap
103 bind CM-k unmap
104 bind CM-l unmap
105 bind CMS-h unmap
106 bind CMS-j unmap
107 bind CMS-k unmap
108 bind CMS-l unmap
109 bind M-question unmap
110 bind M-period unmap
111 bind CM-w unmap
112 bind CMS-r unmap
113 bind CMS-q unmap
115 #The default mouse bindings are:
117 #M-M1
118 #    Move current window.
119 #CM-M1
120 #    Toggle group membership of current window.
121 #M-M2
122 #    Resize current window
123 #M-M3
124 #    Lower current window.
125 #CMS-M3
126 #    Hide current window.
128 #The following key bindings may be used to navigate search and exec dialogs:
130 #[Return]
131 #    Select item.
132 #[Down], C-s or M-j
133 #    Next item.
134 #[Up], C-r or M-k
135 #    Previous item.
136 #[Backspace] or C-h
137 #    Backspace.
138 #C-u
139 #    Clear input.
140 #C-a
141 #    List all available items.
142 #[Esc]
143 #    Cancel.
145 #borderwidth pixels
146 #    Set the window border width to pixels.
147 borderwidth 1
149 #color activeborder color
150 #    Set the color of the active border.
151 color activeborder "#36454f"
153 #color font color
154 #    Set menu font color.
155 color font "#ffffff"
157 #color selfont color
158 #    Set font color for selected menu item.
159 color selfont "#d79921"
161 #color groupborder color
162 #    Set the color of the border while grouping a window.
164 #color inactiveborder color
165 #    Set the color of the inactive border.
166 color inactiveborder "#282828"
168 #color menubg color
169 #    Set menu background color.
170 color menubg "#323537"
172 #color menufg color
173 #    Set menu foreground color.
174 color menufg "#323537"
176 #color urgencyborder color
177 #    Set the color of the border of a window indicating urgency.
178 color urgencyborder "#80203d"
180 #color ungroupborder color
181 #    Set the color of the border while ungrouping a window.
183 #command name path
184 #    Every name entry is shown in the application menu. When selected, the
185 #    defined path is executed with execve(2).
186 #    The name entries term and lock have a special meaning. They point to the
187 #    terminal and screen locking programs specified by key bindings. The
188 #    defaults are xterm(1) and xlock(1), respectively.
189 #command term
190 command editor "xterm -e nvi"
191 command moc "xterm -e mocp"
192 command snownews "xterm -e snownews"
193 command browser "xterm -e w3m https://www.ixquick.eu"
195 #fontname font
196 #    Change the default font for Xft(3).
197 fontname "Terminus:style=Regular:pixelsize=14"
199 #gap top bottom left right
200 #    Define a "gap" in pixels at the edge of the screen, so that when a window
201 #    is maximized it will not overlap this area. This "gap" can be used for
202 #    applications such as xclock(1), where the user may wish to remain visible.
203 gap 14 0 0 0
205 #ignore windowname
206 #    Ignore, and do not warp to, windows with the name windowname when drawing
207 #    borders and cycling through windows.
208 #ignore xconsole
210 #mousebind buttons command
211 #    Cause the creation of a mouse binding, or replacement of a default mouse
212 #    binding. The modifier keys come first, followed by a "-".
213 #    The following modifiers are recognised:
215 #    C
216 #        Control key.
217 #    M
218 #        Meta key.
219 #    S
220 #        Shift key.
221 #    4
222 #        Mod4 (windows) key.
224 #    The "-" should be followed by number:
226 #    1
227 #        Left mouse button.
228 #    2
229 #        Middle mouse button.
230 #    3
231 #        Right mouse button.
232 #    4
233 #        Scroll up mouse button.
234 #    5
235 #        Scroll down mouse button.
237 #    The command may be taken from the MOUSEBIND COMMAND LIST (see below).
239 #moveamount pixels
240 #    Set a default size for the keyboard movement bindings, in pixels. The
241 #    default is 1.
243 #snapdist pixels
244 #    Minimum distance to snap-to adjacent edge, in pixels. The default is 0.
246 #sticky yes|no
247 #    Toggle sticky group mode. The default behavior for new windows is to not
248 #    assign any group. By enabling sticky group mode, cwm(1) will assign new
249 #    windows to the currently selected group.
251 #BIND COMMAND LIST
253 #restart
254 #    Restart the running cwm(1).
255 bind 4-r restart
257 #quit
258 #    Quit cwm(1).
259 bind C4-q quit
261 #terminal
262 #    Spawn a new terminal.
263 bind 4-t terminal
265 #lock
266 #    Lock the screen.
267 bind 4-Delete lock
269 #search
270 #    Launch window search menu.
271 bind 4-slash search
273 #menusearch
274 #    Launch application search menu.
275 bind 4-Menu menusearch
277 #groupsearch
278 #    Launch group search menu.
280 #exec
281 #    Launch "exec program" menu.
282 bind 4-colon exec
284 #exec_wm
285 #    Launch "exec WindowManager" menu.
287 #ssh
288 #    Launch "ssh" menu.
290 #group[n]
291 #    Select group n, where n is 1-9.
293 #grouponly[n]
295 #    Like group[n] but also hides the other groups.
297 #nogroup
298 #    Select all groups.
300 #grouptoggle
301 #    Toggle group membership of current window.
303 #movetogroup[n]
304 #    Hide current window from display and move to group n, where n is 1-9.
306 #cyclegroup
307 #    Forward cycle through groups.
308 bind 4-g cyclegroup
310 #rcyclegroup
311 #    Reverse cycle through groups.
312 bind 4S-g rcyclegroup
314 #cycle
315 #    Forward cycle through windows.
316 bind 4-w cycle
318 #rcycle
319 #    Reverse cycle through windows.
321 #cycleingroup
322 #    Forward cycle through windows in current group.
324 #rcycleingroup
325 #    Reverse cycle through windows in current group.
327 #delete
328 #    Delete current window.
329 bind 4-c delete
331 #hide
332 #    Hide current window.
333 bind 4-x hide
335 #lower
336 #    Lower current window.
338 #raise
339 #    Raise current window.
341 #label
342 #    Label current window.
344 #freeze
345 #    Freeze current window geometry.
347 #sticky
348 #    Stick current window to all groups (same as assigning to nogroup).
350 #fullscreen
351 #    Full-screen current window (gap + border removed).
352 bind 4-f fullscreen
354 #maximize
355 #    Maximize current window (gap + border honored).
356 bind 4-m maximize
358 #vmaximize
359 #    Vertically maximize current window (gap + border honored).
360 bind 4-backslash vmaximize
362 #hmaximize
363 #    Horizontally maximize current window (gap + border honored).
364 bind 4-minus hmaximize
366 #moveup
367 #    Move window moveamount pixels up.
368 bind 4-j moveup
370 #movedown
371 #    Move window moveamount pixels down.
372 bind 4-k movedown
374 #moveright
375 #    Move window moveamount pixels right.
376 bind 4-l moveright
378 #moveleft
379 #    Move window moveamount pixels left.
380 bind 4-h moveleft
382 #bigmoveup
383 #    Move window 10 times moveamount pixels up.
384 bind 4S-j bigmoveup
386 #bigmovedown
387 #    Move window 10 times moveamount pixels down.
388 bind 4S-k bigmovedown
390 #bigmoveright
391 #    Move window 10 times moveamount pixels right.
392 bind 4S-l bigmoveright
394 #bigmoveleft
395 #    Move window 10 times moveamount pixels left.
396 bind 4S-h bigmoveleft
398 #resizeup
399 #    Resize window moveamount pixels up.
400 bind 4-Up resizeup
402 #resizedown
403 #    Resize window moveamount pixels down.
404 bind 4-Down resizedown
406 #resizeright
407 #    Resize window moveamount pixels right.
408 bind 4-Right resizeright
410 #resizeleft
411 #    Resize window moveamount pixels left.
412 bind 4-Left resizeleft
414 #bigresizeup
415 #    Resize window 10 times moveamount pixels up.
416 bind 4S-Up bigresizeup
418 #bigresizedown
419 #    Resize window 10 times moveamount pixels down.
420 bind 4S-Down bigresizedown
422 #bigresizeright
423 #    Resize window 10 times moveamount pixels right.
424 bind 4S-Right bigresizeright
426 #bigresizeleft
427 #    Resize window 10 times moveamount pixels left.
428 bind 4S-Left bigresizeleft
430 #ptrmoveup
431 #    Move pointer moveamount pixels up.
432 #bind 4C-k ptrmoveup
434 #ptrmovedown
435 #    Move pointer moveamount pixels down.
436 #bind 4C-j ptrmovedown
438 #ptrmoveright
439 #    Move pointer moveamount pixels right.
440 #bind 4C-l ptrmoveright
442 #ptrmoveleft
443 #    Move pointer moveamount pixels left.
444 #bind 4C-h ptrmoveleft
446 #bigptrmoveup
447 #    Move pointer 10 times moveamount pixels up.
448 #bind CS-k bigptrmoveup
450 #bigptrmovedown
451 #    Move pointer 10 times moveamount pixels down.
452 #bind CS-j bigptrmovedown
454 #bigptrmoveright
455 #    Move pointer 10 times moveamount pixels right.
456 #bind CS-l bigptrmoveright
458 #bigptrmoveleft
459 #    Move pointer 10 times moveamount pixels left.
460 #bind CS-h bigptrmoveleft
462 #htile
463 #    Current window is placed at the top of the screen and maximized
464 #    horizontally, other windows in its group share remaining screen space.
465 bind 4-o htile
467 #vtile
468 #    Current window is placed on the left of the screen and maximized
469 #    vertically, other windows in its group share remaining screen space.
470 bind 4-v vtile
472 #MOUSEBIND COMMAND LIST
474 #window_move
475 #    Move current window.
476 #window_resize
477 #    Resize current window.
478 #window_lower
479 #    Lower current window.
480 #window_raise
481 #    Raise current window.
482 #window_hide
483 #    Hide current window.
484 #window_grouptoggle
485 #    Toggle group membership of current window.
486 #cyclegroup
487 #    Forward cycle through groups.
488 #rcyclegroup
489 #    Reverse cycle through groups.
490 #menu_group
491 #    Launch group list.
492 #menu_unhide
493 #    Launch hidden window list.
494 #menu_cmd
495 #    Launch command list.