-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jwmrc
272 lines (238 loc) · 9.05 KB
/
.jwmrc
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<?xml version="1.0"?>
<!--
Configuration file for Joe's Window Manager
https://joewing.net/projects/jwm/
-->
<JWM>
<!-- The root menu. -->
<RootMenu onroot="12">
<Program icon="utilities-terminal" label="Terminal">alacritty</Program>
<Menu icon="folder" label="Applications">
<Program icon="calc" label="Calculator">xcalc</Program>
<Program icon="web-browser" label="Firefox">firefox</Program>
<Program icon="web-browser" label="Tor Browser">tor-browser</Program>
<Program icon="web-browser" label="Lynx">alacritty -T Lynx -e lynx</Program>
<Program label="Emacs">emacs</Program>
</Menu>
<Menu icon="folder" label="Utilities">
<Program label="Htop">alacritty -T Htop -e htop</Program>
<Program label="Display Configuration">arandr</Program>
<Program icon="font" label="Fonts">xfontsel</Program>
<Program icon="info" label="Window Properties">xprop | xmessage -file -</Program>
<Program icon="info" label="Window Information">xwininfo | xmessage -file -</Program>
</Menu>
<Separator/>
<Program icon="lock" label="Lock">xlock -mode blank</Program>
<Separator/>
<Restart label="Restart" icon="reload"/>
<Exit label="Exit" confirm="true" icon="exit"/>
</RootMenu>
<!-- Options for program groups. -->
<Group>
<!-- Ignore increment size hint for xterm since otherwise there will be gaps
around xterm windows which are maximized or tiled. -->
<Name>xterm</Name>
<Option>iignore</Option>
</Group>
<!-- Tray at the bottom. -->
<Tray x="0" y="-1" autohide="off" delay="1000">
<TrayButton label="JWM">root:1</TrayButton>
<Spacer width="2"/>
<TrayButton label="_">showdesktop</TrayButton>
<Spacer width="2"/>
<Pager labeled="true"/>
<TaskList maxwidth="256" labeled="true"/>
<Dock/>
<Clock format="%m/%d %a %H:%M"/>
</Tray>
<!-- Visual Styles -->
<WindowStyle decorations="motif">
<Font>Sans-12:bold</Font>
<Width>4</Width>
<Corner>0</Corner>
<Foreground>#FFFFFF</Foreground>
<Background>#555555</Background>
<Opacity>0.5</Opacity>
<Active>
<Foreground>#FFFFFF</Foreground>
<Background>#0077CC</Background>
<Opacity>1.0</Opacity>
</Active>
</WindowStyle>
<TrayStyle decorations="motif">
<Font>Sans-12</Font>
<Background>#333333</Background>
<Foreground>#FFFFFF</Foreground>
<Opacity>0.75</Opacity>
</TrayStyle>
<TaskListStyle list="desktop" group="false">
<Font>Sans-12</Font>
<Active>
<Foreground>#FFFFFF</Foreground>
<Background>#555555</Background>
</Active>
<Foreground>#FFFFFF</Foreground>
<Background>#333333</Background>
</TaskListStyle>
<PagerStyle>
<Foreground>#555555</Foreground>
<Background>#333333</Background>
<Text>#FFFFFF</Text>
<Active>
<Foreground>#0077CC</Foreground>
<Background>#004488</Background>
</Active>
</PagerStyle>
<MenuStyle decorations="motif">
<Font>Sans-12</Font>
<Foreground>#FFFFFF</Foreground>
<Background>#333333</Background>
<Active>
<Foreground>#FFFFFF</Foreground>
<Background>#0077CC</Background>
</Active>
<Opacity>0.85</Opacity>
</MenuStyle>
<PopupStyle>
<Font>Sans-12</Font>
<Foreground>#000000</Foreground>
<Background>#999999</Background>
</PopupStyle>
<!-- Path where icons can be found. IconPath can be listed multiple times to
allow searching for icons in multiple paths. -->
<!-- Commenting these out since none of them exist.
<IconPath>/usr/local/share/icons/Tango/scalable/actions</IconPath>
<IconPath>/usr/local/share/icons/Tango/scalable/apps</IconPath>
<IconPath>/usr/local/share/icons/Tango/scalable/places</IconPath>
<IconPath>/usr/local/share/icons/Tango/scalable/status</IconPath>
<IconPath>/usr/local/share/icons/Tango/scalable/mimetypes</IconPath>
<IconPath>/usr/local/share/jwm</IconPath>
-->
<!-- Virtual Desktops -->
<!-- Desktop tags can be contained within Desktops for desktop names. -->
<Desktops width="4" height="1">
<!-- Default background. Note that a Background tag can be contained
within a Desktop tag to give a specific background for that desktop. -->
<Background type="solid">#111111</Background>
</Desktops>
<!-- Double click speed (in milliseconds) -->
<DoubleClickSpeed>400</DoubleClickSpeed>
<!-- Double click delta (in pixels) -->
<DoubleClickDelta>2</DoubleClickDelta>
<!-- The focus model (sloppy or click) -->
<FocusModel>sloppy</FocusModel>
<!-- The snap mode (none, screen, or border) -->
<SnapMode distance="10">border</SnapMode>
<!-- The move mode (outline or opaque) -->
<MoveMode>opaque</MoveMode>
<!-- The resize mode (outline or opaque) -->
<ResizeMode>opaque</ResizeMode>
<!-- ************ -->
<!-- Key Bindings -->
<!-- ************ -->
<!-- Menu navigation -->
<Key key="Up">up</Key>
<Key key="Down">down</Key>
<Key key="Right">right</Key>
<Key key="Left">left</Key>
<Key key="h">left</Key>
<Key key="j">down</Key>
<Key key="k">up</Key>
<Key key="l">right</Key>
<Key key="Return">select</Key>
<Key key="Escape">escape</Key>
<!-- JWM commands -->
<Key mask="4" key="slash">root:1</Key>
<Key mask="CA4" key="r">restart</Key>
<Key mask="CA4" key="q">exit</Key>
<!-- Screen locking -->
<Key mask="4A" key="q">exec:xlock -mode blank</Key>
<Key mask="CA" key="Delete">exec:xlock -mode blank</Key>
<!-- Open terminal -->
<Key mask="4" key="Return">exec:alacritty</Key>
<!-- Application launcher -->
<Key mask="4" key="space">
exec:bemenu-run -p 'Run:' --tf '#FFFFFF' --hf '#0077CC'
</Key>
<!-- Window closing -->
<Key mask="4" key="q">close</Key>
<!-- Window cycling -->
<Key mask="4" key="Tab">nextstacked</Key>
<Key mask="A" key="Tab">nextstacked</Key>
<Key mask="4A" key="h">prev</Key>
<Key mask="4A" key="l">next</Key>
<Key mask="4A" key="Left">prev</Key>
<Key mask="4A" key="Right">next</Key>
<!-- For my laptop with the broken Tab key... -->
<Key mask="4" key="grave">nextstacked</Key>
<Key mask="A" key="grave">nextstacked</Key>
<!-- Window size and position -->
<Key mask="4" key="f">fullscreen</Key>
<Key mask="4" key="m">maximize</Key>
<Key mask="4" key="n">minimize</Key>
<Key mask="4" key="v">maxv</Key>
<Key mask="4" key="b">maxh</Key>
<Key mask="4" key="h">maxleft</Key>
<Key mask="4" key="l">maxright</Key>
<Key mask="4" key="j">maxtop</Key>
<Key mask="4" key="k">maxbottom</Key>
<Key mask="4" key="Left">maxleft</Key>
<Key mask="4" key="Right">maxright</Key>
<Key mask="4" key="Up">maxtop</Key>
<Key mask="4" key="Down">maxbottom</Key>
<Key mask="4" key="w">window</Key>
<Key mask="4" key="s">move</Key>
<Key mask="4" key="z">resize</Key>
<Key mask="4" key="x">shade</Key>
<Key mask="4" key="c">restore</Key>
<!-- Switch between virtual desktops -->
<Key mask="4" key="comma">ldesktop</Key>
<Key mask="4" key="period">rdesktop</Key>
<Key mask="4" key="Page_Up">ldesktop</Key>
<Key mask="4" key="Page_Down">rdesktop</Key>
<Key mask="4" key="#">desktop#</Key>
<!-- Moving windows between virtual desktops -->
<Key mask="4A" key="comma">sendl</Key>
<Key mask="4A" key="period">sendr</Key>
<Key mask="4A" key="Page_Up">sendl</Key>
<Key mask="4A" key="Page_Down">sendr</Key>
<!--
Simulate volume, microphone, and backlight keys. F[1-6] were deliberately
chosen to correspond with the function keys on ThinkPad keyboards.
vol/mic/bl are shell scripts that abstract the underlying commands, which
differ by system. See <https://github.com/ixtenu/script> for those scripts.
-->
<Key mask="4" key="F1">exec:vol mute</Key>
<Key mask="4" key="F2">exec:vol down</Key>
<Key mask="4" key="F3">exec:vol up</Key>
<Key mask="4" key="F4">exec:mic toggle</Key>
<Key mask="4" key="F5">exec:bl dec</Key>
<Key mask="4" key="F6">exec:bl inc</Key>
<!-- ************** -->
<!-- Mouse Bindings -->
<!-- ************** -->
<Mouse context="root" button="4">ldesktop</Mouse>
<Mouse context="root" button="5">rdesktop</Mouse>
<Mouse context="title" button="1">move</Mouse>
<Mouse context="title" button="2">move</Mouse>
<Mouse context="title" button="3">window</Mouse>
<Mouse context="title" button="4">shade</Mouse>
<Mouse context="title" button="5">shade</Mouse>
<Mouse context="icon" button="1">window</Mouse>
<Mouse context="icon" button="2">move</Mouse>
<Mouse context="icon" button="3">window</Mouse>
<Mouse context="icon" button="4">shade</Mouse>
<Mouse context="icon" button="5">shade</Mouse>
<Mouse context="border" button="1">resize</Mouse>
<Mouse context="border" button="2">move</Mouse>
<Mouse context="border" button="3">window</Mouse>
<Mouse context="close" button="-1">close</Mouse>
<Mouse context="close" button="2">move</Mouse>
<Mouse context="close" button="-3">close</Mouse>
<Mouse context="maximize" button="-1">maximize</Mouse>
<Mouse context="maximize" button="-2">maxv</Mouse>
<Mouse context="maximize" button="-3">maxh</Mouse>
<Mouse context="minimize" button="-1">minimize</Mouse>
<Mouse context="minimize" button="2">move</Mouse>
<Mouse context="minimize" button="-3">shade</Mouse>
</JWM>