aboutsummaryrefslogtreecommitdiff
path: root/home/john/.jwmrc
blob: 5872d91eb0446176ae7348719c2fea5002a6b10b (plain)
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
<?xml version="1.0"?>
<JWM>

<!-- See https://newton.ex.ac.uk/schooldocs/web/colours/by_bg.html -->

<!-- The root menu, if this is undefined you will not get a menu. -->
<!-- Additional RootMenu attributes: onroot, labeled, label -->
<RootMenu height="12">
	<Program label="Terminal">tterm</Program>
	<Program label="Filer">LC_ALL=en_US.ISO8859-1 rox</Program>
	<Program label="Info">minfo</Program>

	<!-- Addititional Menu attributes: height, labeled -->
	<Menu label="Applications">
		<Program label="Dillo">
			LC_ALL=en_US.ISO8859-1 dillo; ~/.dillo/bm
		</Program>
		<Program label="W3M">
			xterm +sb -e w3m -title google.com
		</Program>
		<Program label="Netsurf">netsurf-gtk3</Program>
		<Program label="Opera">opera</Program>
		<Program label="Midori">midori</Program>
		<Program label="Firefox">firefox78</Program>
		<Program label="Reddit">xterm +sb -e rtv</Program>
	</Menu>
	<Menu label="Utilities">
		<Program>xcalc</Program>
		<Program>xfontsel</Program>
		<Program>xmag</Program>
		<Program label="xprop">
			xprop | xmessage -file -
		</Program>
		<Program label="top">
			xterm +sb -e top
		</Program>
	</Menu>
	<!-- <Desktops label="Desktops"/> -->
	<Separator/>
	<Restart label="Restart"/>
	<Exit label="Reexec" confirm="false">
		/home/john/prj/jwm/src/jwm
	</Exit>
	<Exit label="Test">
		cd /home/john/prj/jwm/src; xterm
	</Exit>
	<Exit label="Exit"/>
</RootMenu>

<Group>
	<Class>Gaim</Class>
	<Option>sticky</Option>
</Group>

<Group>
	<Class>xmms</Class>
	<Option>icon:xmms.xpm</Option>
</Group>

<!-- Additional tray attributes: autohide, width, border, layer, layout -->
<Tray x="0" y="-1" height="28">

	<!-- Additional TrayButton attribute: label -->
	<TrayButton label="Root"/>

	<!-- Additional Pager attributes; width, height -->
	<Pager/>

	<!-- Additional TaskList attribute: maxwidth -->
	<TaskList/>

	<Swallow name="xbatt">xbatt</Swallow>

	<Swallow name="xbattext">xbattext -bg lemonchiffon2</Swallow>

	<Swallow name="xclock">
		xclock -digital -brief -face lucida-7 \
		-bg lemonchiffon2 -padding 6
	</Swallow>
</Tray>

<!-- Visual Styles -->

<BorderStyle>
	<Font>lucida-9:bold</Font>
	<Width>5</Width>
	<Height>20</Height>
	<Foreground>navajowhite4</Foreground>
	<Background>lemonchiffon2</Background>
	<ActiveForeground>white</ActiveForeground>
	<ActiveBackground>olivedrab3</ActiveBackground>
</BorderStyle>

<TaskListStyle>
	<Font>lucida-7</Font>
	<ActiveForeground>black</ActiveForeground>
	<ActiveBackground>darkolivegreen1</ActiveBackground>
</TaskListStyle>

<!-- Additional TrayStyle attribute: insert -->
<TrayStyle>
	<Font>lucida-7</Font>
	<Background>lemonchiffon2</Background>
	<Foreground>black</Foreground>
</TrayStyle>

<PagerStyle>
	<Outline>black</Outline>
	<Foreground>lemonchiffon2</Foreground>
	<Background>lemonchiffon4</Background>
	<ActiveForeground>darkolivegreen3</ActiveForeground>
	<ActiveBackground>darkolivegreen</ActiveBackground>
</PagerStyle>

<MenuStyle>
	<Font>lucida-7</Font>
	<Foreground>black</Foreground>
	<Background>lemonchiffon2</Background>
	<ActiveForeground>white</ActiveForeground>
	<ActiveBackground>darkolivegreen</ActiveBackground>
</MenuStyle>

<PopupStyle>
	<Font>lucida-7</Font>
	<Outline>black</Outline>
	<Foreground>black</Foreground>
	<Background>yellow</Background>
</PopupStyle>

<IconPath>$HOME/.icons</IconPath>

<!-- Virtual Desktops -->
<!-- Name tags can be contained within Desktops for desktop names. -->
<Desktops count="4"/>

<!-- 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>

<!-- see X11/keysymdef.h -->

<!-- Internal bindings -->
<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>

<!-- Window manager bindings -->
<Key mask="A" key="Tab">nextstacked</Key>
<Key mask="AS" key="Tab">prevstacked</Key>
<Key mask="A" key="space">raise</Key>
<Key mask="A" key="F4">close</Key>
<Key mask="A" key="z">minimize</Key>
<Key mask="AS" key="v">maximize</Key>
<Key mask="A" key="s">shade</Key>
<Key mask="A" key="#">desktop#</Key>
<Key mask="AS" key="#">sendto#</Key>
<Key mask="AS" key="#">sendto#</Key>
<Key mask="CA" key="#">put#</Key>
<Key mask="A" key="F1">root:1</Key>
<Key mask="A" key="F2">window</Key>
<Key mask="CA" key="r">restart</Key>
<Key mask="CA" key="e">
	exec:xterm -T 'jwm -p' -e 'jwm -p; read x'
</Key>

<!-- External bindings -->
<Key mask="A" key="t">exec:tterm</Key>
<Key mask="A" key="r">exec:LC_ALL=en_US.ISO8859-1 rox</Key>
<Key mask="A" key="n">exec:xterm -e noice</Key>
<Key mask="A" key="m">exec:xterm -e top</Key>
<Key mask="AS" key="m">exec:xosview</Key>
<Key mask="AS" key="w">exec:xterm +sb -e w3m -title google.com</Key>
<Key mask="CA" key="w">exec:xterm +sb -e w3m -title `xsel`</Key>
<Key mask="AS" key="d">exec:LC_ALL=en_US.ISO8859-1 dillo; ~/.dillo/bm</Key>
<Key mask="CA" key="d">exec:dr</Key>

<Key key="Print">exec:xwd -root -out ~/print.xwd</Key>
<Key mask="A" key="Print">
	exec:sleep 2 && xwd -root -out ~/print.xwd
</Key>

<Key mask="AS" key="t">exec:
	cd `xtitle |
	sed 's,.*(\([^(]*\))$,\1,' |
	sed 's,^~,/home/john,'`; tterm
</Key>
<Key mask="AS" key="g">exec:
	cd `xtitle |
	sed 's,.*(\([^(]*\))$,\1,' |
	sed 's,^~,/home/john,'`; xtopen git repl
</Key>

<Key mask="A" key="x">exec:xsel -o | xsel -is</Key>
<Key mask="A" key="c">exec:{ echo -n ' '; xsel -o; } | xsel -as</Key>
<Key mask="A" key="v">exec:
	xsel -os | xsel -i; sleep 0.1; xdotool key --clearmodifiers Shift+Insert
</Key>

</JWM>