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).
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:
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
53 # unmap every default key bindings
109 bind M-question unmap
115 #The default mouse bindings are:
118 # Move current window.
120 # Toggle group membership of current window.
122 # Resize current window
124 # Lower current window.
126 # Hide current window.
128 #The following key bindings may be used to navigate search and exec dialogs:
141 # List all available items.
146 # Set the window border width to pixels.
149 #color activeborder color
150 # Set the color of the active border.
151 color activeborder "#36454f"
154 # Set menu font 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"
169 # Set menu background color.
170 color menubg "#323537"
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.
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.
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"
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.
206 # Ignore, and do not warp to, windows with the name windowname when drawing
207 # borders and cycling through windows.
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:
222 # Mod4 (windows) key.
224 # The "-" should be followed by number:
229 # Middle mouse button.
231 # Right mouse button.
233 # Scroll up mouse button.
235 # Scroll down mouse button.
237 # The command may be taken from the MOUSEBIND COMMAND LIST (see below).
240 # Set a default size for the keyboard movement bindings, in pixels. The
244 # Minimum distance to snap-to adjacent edge, in pixels. The default is 0.
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.
254 # Restart the running cwm(1).
262 # Spawn a new terminal.
270 # Launch window search menu.
274 # Launch application search menu.
275 bind 4-Menu menusearch
278 # Launch group search menu.
281 # Launch "exec program" menu.
285 # Launch "exec WindowManager" menu.
291 # Select group n, where n is 1-9.
295 # Like group[n] but also hides the other groups.
301 # Toggle group membership of current window.
304 # Hide current window from display and move to group n, where n is 1-9.
307 # Forward cycle through groups.
311 # Reverse cycle through groups.
312 bind 4S-g rcyclegroup
315 # Forward cycle through windows.
319 # Reverse cycle through windows.
322 # Forward cycle through windows in current group.
325 # Reverse cycle through windows in current group.
328 # Delete current window.
332 # Hide current window.
336 # Lower current window.
339 # Raise current window.
342 # Label current window.
345 # Freeze current window geometry.
348 # Stick current window to all groups (same as assigning to nogroup).
351 # Full-screen current window (gap + border removed).
355 # Maximize current window (gap + border honored).
359 # Vertically maximize current window (gap + border honored).
360 bind 4-backslash vmaximize
363 # Horizontally maximize current window (gap + border honored).
364 bind 4-minus hmaximize
367 # Move window moveamount pixels up.
371 # Move window moveamount pixels down.
375 # Move window moveamount pixels right.
379 # Move window moveamount pixels left.
383 # Move window 10 times moveamount pixels up.
387 # Move window 10 times moveamount pixels down.
388 bind 4S-k bigmovedown
391 # Move window 10 times moveamount pixels right.
392 bind 4S-l bigmoveright
395 # Move window 10 times moveamount pixels left.
396 bind 4S-h bigmoveleft
399 # Resize window moveamount pixels up.
403 # Resize window moveamount pixels down.
404 bind 4-Down resizedown
407 # Resize window moveamount pixels right.
408 bind 4-Right resizeright
411 # Resize window moveamount pixels left.
412 bind 4-Left resizeleft
415 # Resize window 10 times moveamount pixels up.
416 bind 4S-Up bigresizeup
419 # Resize window 10 times moveamount pixels down.
420 bind 4S-Down bigresizedown
423 # Resize window 10 times moveamount pixels right.
424 bind 4S-Right bigresizeright
427 # Resize window 10 times moveamount pixels left.
428 bind 4S-Left bigresizeleft
431 # Move pointer moveamount pixels up.
435 # Move pointer moveamount pixels down.
436 #bind 4C-j ptrmovedown
439 # Move pointer moveamount pixels right.
440 #bind 4C-l ptrmoveright
443 # Move pointer moveamount pixels left.
444 #bind 4C-h ptrmoveleft
447 # Move pointer 10 times moveamount pixels up.
448 #bind CS-k bigptrmoveup
451 # Move pointer 10 times moveamount pixels down.
452 #bind CS-j bigptrmovedown
455 # Move pointer 10 times moveamount pixels right.
456 #bind CS-l bigptrmoveright
459 # Move pointer 10 times moveamount pixels left.
460 #bind CS-h bigptrmoveleft
463 # Current window is placed at the top of the screen and maximized
464 # horizontally, other windows in its group share remaining screen space.
468 # Current window is placed on the left of the screen and maximized
469 # vertically, other windows in its group share remaining screen space.
472 #MOUSEBIND COMMAND LIST
475 # Move current window.
477 # Resize current window.
479 # Lower current window.
481 # Raise current window.
483 # Hide current window.
485 # Toggle group membership of current window.
487 # Forward cycle through groups.
489 # Reverse cycle through groups.
493 # Launch hidden window list.
495 # Launch command list.