1 f7481580 2022-02-21 op # calm window manager
3 f7481580 2022-02-21 op The calm window manager, cwm for short, is my favourite window manager.
4 f7481580 2022-02-21 op It's *the* window manager that convinced me that using a floating window
5 f7481580 2022-02-21 op manager was actually worth it.
7 f7481580 2022-02-21 op My configuration is unusually long.
9 f7481580 2022-02-21 op First I have a list of applications for the built-in menu:
11 f7481580 2022-02-21 op command emacsclient "emacsclient -c"
12 f7481580 2022-02-21 op command firefox firefox
13 f7481580 2022-02-21 op command gimp gimp
14 f7481580 2022-02-21 op command godot godot
15 f7481580 2022-02-21 op command inkscape inkscape
16 f7481580 2022-02-21 op command iridium iridium
17 f7481580 2022-02-21 op command keepassxc keepassxc
18 f7481580 2022-02-21 op command lock xlock
19 f7481580 2022-02-21 op command term xterm
20 f7481580 2022-02-21 op command xterm.jp xterm.jp
22 9742dc33 2022-03-02 op I found these color by random I guess, but they're fine
24 f7481580 2022-02-21 op color activeborder "#0abeff"
25 f7481580 2022-02-21 op color inactiveborder "#777"
27 f7481580 2022-02-21 op set a decently-sized border around every window
31 0ae8e78f 2022-11-23 op I've started to use cwm without "sticky" tags. Enabling the sticky mode
32 0ae8e78f 2022-11-23 op makes cwm behave like other windows managers with "tags" (or
33 0ae8e78f 2022-11-23 op "workspaces".) Without sticky tags, you can decide with more granularly
34 0ae8e78f 2022-11-23 op which window to show and which not.
38 f7481580 2022-02-21 op I also prefer to "snap" windows close to the edges
42 f7481580 2022-02-21 op I don't want to give focus to some applications via alt-tab
44 f7481580 2022-02-21 op ignore sshmenu
45 f7481580 2022-02-21 op ignore stalonetray
47 f7481580 2022-02-21 op ignore termbar
49 f7481580 2022-02-21 op ignore xconsole
50 f7481580 2022-02-21 op ignore Catclock
51 f7481580 2022-02-21 op ignore "Speedbar 1.0"
53 f7481580 2022-02-21 op autogroup does what it seems: it automatically moves some windows in a
54 f7481580 2022-02-21 op specific group (aka workspace.) The group 0 is sticky across all groups
56 f7481580 2022-02-21 op autogroup 0 XClock
57 f7481580 2022-02-21 op autogroup 0 Catclock
58 f7481580 2022-02-21 op autogroup 0 XConsole
59 f7481580 2022-02-21 op autogroup 0 sshmenu,Xmessage
60 f7481580 2022-02-21 op autogroup 0 stalonetray
61 f7481580 2022-02-21 op autogroup 0 stats
62 f7481580 2022-02-21 op autogroup 0 termbar
63 f7481580 2022-02-21 op autogroup 2 Firefox
64 f7481580 2022-02-21 op autogroup 3 Gajim
65 f7481580 2022-02-21 op autogroup 3 TelegramDesktop
67 f7481580 2022-02-21 op Most cwm keybindings use `alt' which conflicts with emacs. So I unbind
68 f7481580 2022-02-21 op everything and re-bind most of the keys on the mod4 (super) key
70 f7481580 2022-02-21 op unbind-key all
72 f7481580 2022-02-21 op bind-key 4-Tab group-last
73 f7481580 2022-02-21 op bind-mouse C-3 menu-exec-wm
74 f7481580 2022-02-21 op bind-key C4-slash menu-window
76 f7481580 2022-02-21 op eat up multimedia keys so they don't get seen by some programs (like
79 f7481580 2022-02-21 op bind-key XF86AudioLowerVolume true
80 f7481580 2022-02-21 op bind-key XF86AudioRaiseVolume true
82 f7481580 2022-02-21 op control the playback
84 f7481580 2022-02-21 op bind-key XF86AudioPrev "amused prev"
85 f7481580 2022-02-21 op bind-key XF86AudioNext "amused next"
86 f7481580 2022-02-21 op bind-key XF86AudioPlay "amused toggle"
87 6ae067c1 2022-03-02 op bind-key XF86AudioStop "amused stop"
89 616e27e6 2022-07-29 op "gamemode" swiches the keyboard from my custom dvp-eu to an us querty
90 616e27e6 2022-07-29 op and vice-versa, and the mouse buttons too. it's useful when playing
91 616e27e6 2022-07-29 op some games, hence the name, or when in need to share the keyboard with
94 616e27e6 2022-07-29 op bind-key 4-F5 "gamemode"
96 f7481580 2022-02-21 op I don't have a dedicated key for screenshot on this machine, but
97 f7481580 2022-02-21 op Scroll_Lock is not too awkward to press
99 468b1dd4 2022-03-02 op bind-key 4-Scroll_Lock "sshot -c"
100 468b1dd4 2022-03-02 op bind-key 4S-Scroll_Lock "sshot -cs"
102 f7481580 2022-02-21 op manage the notifications
104 f7481580 2022-02-21 op bind-key 4-space "dunstctl close"
105 f7481580 2022-02-21 op bind-key 4S-space "dunstctl history-pop"
106 f7481580 2022-02-21 op bind-key 4-n "dunstctl context"
108 f7481580 2022-02-21 op basics window movements
110 f7481580 2022-02-21 op bind-key 4-h window-move-left
111 f7481580 2022-02-21 op bind-key 4-j window-move-down
112 f7481580 2022-02-21 op bind-key 4-k window-move-up
113 f7481580 2022-02-21 op bind-key 4-l window-move-right
115 f7481580 2022-02-21 op bind-key S4-h window-move-left-big
116 f7481580 2022-02-21 op bind-key S4-j window-move-down-big
117 f7481580 2022-02-21 op bind-key S4-k window-move-up-big
118 f7481580 2022-02-21 op bind-key S4-l window-move-right-big
120 f7481580 2022-02-21 op bind-key C4-h window-resize-left
121 f7481580 2022-02-21 op bind-key C4-j window-resize-down
122 f7481580 2022-02-21 op bind-key C4-k window-resize-up
123 f7481580 2022-02-21 op bind-key C4-l window-resize-right
125 f7481580 2022-02-21 op bind-key CS4-h window-resize-left-big
126 f7481580 2022-02-21 op bind-key CS4-j window-resize-down-big
127 f7481580 2022-02-21 op bind-key CS4-k window-resize-up-big
128 f7481580 2022-02-21 op bind-key CS4-l window-resize-right-big
130 f7481580 2022-02-21 op bind-key 4-greater window-raise
131 f7481580 2022-02-21 op bind-key 4-less window-lower
133 f7481580 2022-02-21 op bind-key 4-Return window-hide
134 f7481580 2022-02-21 op bind-key C4-x window-close
135 f7481580 2022-02-21 op bind-key C4-c window-close
137 f7481580 2022-02-21 op bind-key 4-slash menu
139 f7481580 2022-02-21 op bind-key CM-Return xterm # kitty
140 f7481580 2022-02-21 op bind-key C4-Return "emacsclient -c"
141 f7481580 2022-02-21 op bind-key CS4-Return "env SHELL=rc 9term"
143 f7481580 2022-02-21 op bind-key M-Tab window-cycle
144 f7481580 2022-02-21 op bind-key MS-Tab window-rcycle
146 f7481580 2022-02-21 op bind-key 4-f window-maximize
147 f7481580 2022-02-21 op bind-key C4S-v window-vmaximize
148 f7481580 2022-02-21 op bind-key C4S-w window-hmaximize
152 f7481580 2022-02-21 op bind-key 4-w window-htile
153 f7481580 2022-02-21 op bind-key 4-v window-vtile
155 f7481580 2022-02-21 op bind-key C4S-q quit
157 f7481580 2022-02-21 op I'm using a custom keyboard layout based on the dvorak-programmer.
158 f7481580 2022-02-21 op Thus, the upper row is not numbers, but symbols!
160 f7481580 2022-02-21 op # & { [ ( = + ) ] }
161 0ae8e78f 2022-11-23 op bind-key 4-ampersand group-toggle-1
162 0ae8e78f 2022-11-23 op bind-key 4-braceleft group-toggle-2
163 0ae8e78f 2022-11-23 op bind-key 4-bracketleft group-toggle-3
164 0ae8e78f 2022-11-23 op bind-key 4-parenleft group-toggle-4
165 0ae8e78f 2022-11-23 op bind-key 4-equal group-toggle-5
166 0ae8e78f 2022-11-23 op bind-key 4-plus group-toggle-6
167 0ae8e78f 2022-11-23 op bind-key 4-parenright group-toggle-7
168 0ae8e78f 2022-11-23 op bind-key 4-bracketright group-toggle-8
169 0ae8e78f 2022-11-23 op bind-key 4-braceright group-toggle-9
171 f7481580 2022-02-21 op move with shift
173 f7481580 2022-02-21 op bind-key S4-ampersand window-movetogroup-1
174 f7481580 2022-02-21 op bind-key S4-braceleft window-movetogroup-2
175 f7481580 2022-02-21 op bind-key S4-bracketleft window-movetogroup-3
176 f7481580 2022-02-21 op bind-key S4-parenleft window-movetogroup-4
177 f7481580 2022-02-21 op bind-key S4-equal window-movetogroup-5
178 f7481580 2022-02-21 op bind-key S4-plus window-movetogroup-6
179 f7481580 2022-02-21 op bind-key S4-parenright window-movetogroup-7
180 f7481580 2022-02-21 op bind-key S4-bracketright window-movetogroup-8
181 f7481580 2022-02-21 op bind-key S4-braceright window-movetogroup-9
182 f7481580 2022-02-21 op bind-key S4-exclam window-movetogroup-0
184 f7481580 2022-02-21 op mouse bindings
186 f7481580 2022-02-21 op bind-mouse 4-1 window-move
187 f7481580 2022-02-21 op bind-mouse 4-3 window-resize