File: evilwm.html

package info (click to toggle)
evilwm 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 516 kB
  • sloc: ansic: 3,893; perl: 551; sh: 100; makefile: 99
file content (550 lines) | stat: -rw-r--r-- 15,833 bytes parent folder | download | duplicates (2)
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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

<style type='text/css' media='screen'>

body { max-width: 48rem; }

</style>

<style type='text/css' media='print'>

body { font-size: 12pt; }
pre { font-size: 12pt; letter-spacing: 0.1em; }
code { font-size: 11pt; letter-spacing: 0.1em; }
a { color: inherit; text-decoration: none; }

</style>

<style type='text/css' media='screen,print'>

body { font-family: "Liberation Serif", serif; }
code,pre { font-family: "Inconsolata", monospace; }
code { font-weight: bold; }
var { font-style: italic; }

h1 { font-size: 1.5rem; }
h2 { font-size: 1.1875rem; }
h3 { font-size: 1rem; }
code,pre { font-size: small; }

body { margin-left: 3rem; padding-left: 0.75rem; padding-right: 0.75rem; }
h1 { margin-left: -3rem; }
h2 { margin-left: -3rem; }
h3 { margin-left: -1.5rem; }
pre { margin-left: 1.5rem; }
table { margin-left: 1.5rem; }

h1 { margin-top: 1.3125rem; margin-bottom: 1.3125rem; }
h2 { margin-top: 1.1875rem; margin-bottom: 0.1875rem; }
h3 { margin-top: 1.125rem; margin-bottom: 0.125rem; }
p { margin-top: 1rem; margin-bottom: 1rem; }
pre { margin-top: 1rem; margin-bottom: 1rem; }

h1+* { margin-top: 0.3125rem; }
h2+* { margin-top: 0.1875rem; }
h3+* { margin-top: 0.125rem; }

dd { margin-top: none; margin-bottom: 1rem; }
dl.compact dd,p { margin-bottom: 0.0625rem; }

h1,h2,h3 { page-break-after: avoid; }
h1+*,h2+*,h3+* { page-break-before: avoid; }
dt+dd { page-break-before: avoid; }

p { text-align: justify; }
dd { text-align: justify; }

table { border-collapse: collapse; border-style: hidden hidden none hidden; }
table thead { border-bottom: solid; }
table thead th { text-align: left; }
table tbody { border-bottom: solid thin; }
table tbody th { text-align: left; }
table td, table th { border-left: solid thin; border-right: solid thin; border-bottom: none; vertical-align: top; padding: 0 0.1875rem 0.0625rem; }

</style>

</head>

<body>

<h1 man:date='October 2022' man:section='1' man:dist='evilwm-1.4' pdf:title="evilwm 1.4" pdf:author="Ciaran Anscomb">evilwm</h1>


<h2 id='name'>NAME</h2>

<p>evilwm—minimalist window manager for X11


<h2 id='synopsis'>SYNOPSIS</h2>

<p><strong>evilwm</strong> [<var>OPTION</var>]…


<h2 id='description'>DESCRIPTION</h2>

<p><strong>evilwm</strong> is a minimalist window manager for the X Window
System.  It features plenty of reconfigurable mouse and keyboard controls while
providing a clean display, uncluttered by less useful window furniture (like
title bars).


<h2 id='options'>OPTIONS</h2>

<dl class='compact'>

<dt><code>--display</code> <var>display</var>

<dd>specifies the X display to run on.  Usually this can be inferred from the
<code>DISPLAY</code> environment variable.

<dt><code>--term</code> <var>termprog</var>

<dd>specifies an alternative program to run when spawning a new terminal
(defaults to xterm, or x-terminal-emulator in Debian).  Separate arguments with
whitespace, and escape needed whitespace with a backslash.  Remember that
special characters will also need to be protected from the shell.

<dt><code>--fn</code> <var>fontname</var>

<dd>specify a font to use when resizing or displaying window titles.

<dt><code>--fg</code> <var>colour</var>
<dt><code>--fc</code> <var>colour</var>
<dt><code>--bg</code> <var>colour</var>

<dd>frame colour of currently active, fixed active, and inactive windows
respectively.  Either specify an X11 colour name like <code>goldenrod</code>,
or a hex triplet like <code>#DAA520</code>.

<dt><code>--bw</code> <var>borderwidth</var>

<dd>width of window borders in pixels.

<dt><code>--snap</code> <var>distance</var>

<dd>enable snap-to-border support.  <var>distance</var> is the proximity in
pixels to snap to.

<dt><code>--wholescreen</code>

<dd>ignore monitor geometry and use the whole screen dimensions.  This is the
old behaviour from before multi-monitor support was implemented, and may still
be useful, eg when one large monitor is driven from multiple outputs.

<dt><code>--numvdesks</code> <var>value</var>

<dd>number of virtual desktops to provide.  Defaults to 8.  Any extras will
only be accessible by pagers or using
<kbd>Control</kbd>+<kbd>Alt</kbd>+(<kbd>Left</kbd>/<kbd>Right</kbd>).

<dt><code>--nosoliddrag</code>

<dd>draw a window outline while moving or resizing.

</dl>

<dl class='compact'>

<dt><code>--mask1</code> <var>modifier</var>[+<var>modifier</var>]…
<dt><code>--mask2</code> <var>modifier</var>[+<var>modifier</var>]…
<dt><code>--altmask</code> <var>modifier</var>[+<var>modifier</var>]…

<dd>override the default keyboard modifiers used to grab keys for window
manager functionality.

<p><code>mask1</code> is used for most keyboard controls (default:
control+alt), and <code>mask2</code> is used for mouse button controls and
cycling windows (default: alt).  <code>altmask</code> is used to modify the
behaviour of certain controls (default: shift).  Modifiers may be separated
with + signs.  Valid modifiers are 'shift', 'control', 'alt', 'mod1'…'mod5'.

<dt><code>--bind</code> <var>key</var>[+<var>modifier</var>]…=[<var>function</var>[,<var>flag</var>]…]

<dd>bind a key pressed with specified modifiers to a window manager function.
<var>key</var> is an X11 keysym name, <var>modifiers</var> are as above, but
may also include 'mask1', 'mask2' and 'altmask' to refer to the
globally-configured combinations.  See <a href='#functions'>FUNCTIONS</a> for a
list of available functions and the flags they recognise.  If
<var>function</var> is empty, a bind is removed.

<dt><code>--bind</code> <var>button</var>=[<var>function</var>[,<var>flag</var>]…]

<dd>bind a mouse button to a window manager function.  While modifiers can be
specified, they will be ignored; the button on its own will trigger if pressed
within a window's frame, or with 'mask2' held anywhere within a window.
Function and flags is as with key binds above.  Valid buttons are
'button1'…'button5'.

</dl>

<dl class='compact'>

<dt><code>--app</code> <var>name/class</var>

<dd>match an application by instance name and class (for help in finding these,
use the <em>xprop</em> tool to extract the <em>WM_CLASS</em> property).

<p>Subsequent <code>--geometry</code>, <code>--dock</code>,
<code>--vdesk</code> and <code>--fixed</code> options will apply to this match.

<dt><code>-g</code>, <code>--geometry</code> <var>geometry</var>

<dd>apply a geometry (using a standard X geometry string) to applications
matching the last <code>--app</code>.

<dt><code>--dock</code>

<dd>specify that application should be considered to be a dock, even if it
lacks the appropriate property.

<dt><code>-v</code>, <code>--vdesk</code> <var>vdesk</var>

<dd>specify a default virtual desktop for applications matching the last
<code>--app</code>.  Note that virtual desktops are numbered from zero.

<dt><code>-f</code>, <code>--fixed</code>

<dd>specify that application is to start with a fixed client window.

</dl>

<dl class='compact'>

<dt><code>-h</code>, <code>--help</code>

<dd>show help

<dt><code>-V</code>, <code>--version</code>

<dd>show program version

</dl>

<p><strong>evilwm</strong> will also read options, one per line, from a file
called <em>.evilwmrc</em> in the user's home directory.  Options listed in a
configuration file should omit the leading dash(es).  Options specified on the
command line override those found in the configuration file.


<h2 id='usage'>USAGE</h2>

<p>In <strong>evilwm</strong>, the focus follows the mouse pointer, and focus
is not lost if you stray onto the root window.  The current window border is
shaded gold (unless it is fixed, in which case blue), with other windows left
as a dark grey.

<p>You can use the mouse to manipulate windows either by click/dragging the
single-pixel border (easier when they align with a screen edge), or by holding
down Alt and doing so anywhere in the window. The controls are:

<dl>

<dt><kbd>Button 1</kbd>

<dd>Move window.

<dt><kbd>Button 2</kbd>

<dd>Resize window.

<dt><kbd>Button 3</kbd>

<dd>Lower window.

</dl>

<p>Most keyboard controls are used by holding down <kbd>Control</kbd> and
<kbd>Alt</kbd>, then pressing a key. Available functions are:

<dl>

<dt><kbd>Return</kbd>

<dd>Spawn new terminal.

<dt><kbd>Escape</kbd>

<dd>Delete current window.  Hold <kbd>Shift</kbd> as well to force kill a
client.

<dt><kbd>Insert</kbd>

<dd>Lower current window.

<dt><kbd>H</kbd>, <kbd>J</kbd>, <kbd>K</kbd>, <kbd>L</kbd>

<dd>Move window left, down, up or right (16 pixels).  Holding <kbd>Shift</kbd>
resizes the window instead.

<dt><kbd>Y</kbd>, <kbd>U</kbd>, <kbd>B</kbd>, <kbd>N</kbd>

<dd>Move window to the top-left, top-right, bottom-left or bottom-right of the
current monitor.

<dt><kbd>I</kbd>

<dd>Show information about current window.

<dt><kbd>Equals</kbd>

<dd>Maximise current window vertically on current monitor (toggle).  Holding
<kbd>Shift</kbd> toggles horizontal maximization.

<dt><kbd>X</kbd>

<dd>Maximise current window to current monitor (toggle).

<dt><kbd>D</kbd>

<dd>Toggle visible state of docks, eg pagers and launch bars.

</dl>

<p>If compiled with virtual desktop support, these functions are also
available:

<dl>

<dt><kbd>F</kbd>

<dd>Fix or unfix current window.  Fixed windows remain visible when you switch
virtual desktop.

<dt><kbd>1</kbd>—<kbd>8</kbd>

<dd>Switch to specific virtual desktop (internally, desktops are numbered from
zero, so this actually switches to desktops 0—7; this only becomes important if
you use application matching).

<dt><kbd>Left</kbd>

<dd>Switch to next lower numbered virtual desktop.

<dt><kbd>Right</kbd>

<dd>Switch to next higher numbered virtual desktop.

<dt><kbd>A</kbd>

<dd>Switch to the previously selected virtual desktop.

</dl>

<p>In addition to the above, <kbd>Alt</kbd>+<kbd>Tab</kbd> can be used to cycle
through windows.

<p>To make <strong>evilwm</strong> reread its config, send a HUP signal to the
process.  To make it quit, kill it, ie send a TERM signal.


<h2 id='functions'>FUNCTIONS</h2>

<p>The keyboard and mouse button controls can be configured with the
<code>--bind</code> option to a number of built-in functions.  Typically, these
functions respond to an additional set of flags that modify their behaviour.

<dl class='compact'>

<dt><code>delete</code>

<dd>Delete a window.  This is the co-operative way of closing applications, as
it sends the client a signal indicating that they should shut down.

<dt><code>dock</code>

<dd>When called with the <code>toggle</code> flag, toggles visibility of any
window claiming to be a dock.

<dt><code>fix</code>

<dd>With the <code>toggle</code> flag, toggle whether a window is fixed
(visible on all virtual desktops) or not.

<dt><code>info</code>

<dd>Shows extra information about the current window for as long as the key is
held.

<dt><code>kill</code>

<dd>Kill a window.  A more forceful way of closing an application if it is not
responding to delete requests.

<dt><code>lower</code>

<dd>Lower the current window.

<dt><code>move</code>

<dd>When bound to a button, moves a window with the mouse.

<p>When bound to a key, if the <code>relative</code> flag is specified, moves a
window in the direction indicated by other flags: <code>up</code>,
<code>down</code>, <code>left</code> or <code>right</code>.  Without the
<code>relative</code> flag, moves a window in the direction specified by other
flag to the edge of the monitor.

<dt><code>next</code>

<dd>Cycle to the next window.

<dt><code>raise</code>

<p>Raises the current window.

<dt><code>resize</code>

<dd>When bound to a button, resizes a window with the mouse.

<p>When bound to a key, if the <code>relative</code> flag is specified,
modifies the width or height of the window as indicated by other flags:
<code>up</code> (reduce height), <code>down</code> (increase height),
<code>left</code> (reduce width) or <code>right</code> (increase width).  If
instead the <code>toggle</code> flag is specified, maximises along axes
specified by other flags:  <code>horizontal</code>, <code>vertical</code> or
both.

<dt><code>spawn</code>

<dd>Start a terminal.

<dt><code>vdesk</code>

<dd>With the <code>toggle</code> flag specified, switch to the previously
visible vdesk.  With the <code>relative</code> flag set, either increase vdesk
number (with <code>up</code> flag) or decrease it (with <code>down</code>
flag).

<p>If neither flag is specified, a numerical argument indicates which vdesk to
switch to.

</dl>


<h2>DEFAULT BINDS</h2>

<p>These are the default lists of modifiers, button and keyboard binds.  The
built-in binds use the globally-configurable modifier combinations 'mask1',
'mask2' and 'altmask', making a sweeping change to a different modifier
combination easy.

<p>Note that 'mod1' typically refers to the <kbd>Alt</kbd> key.

<h3>Modifiers</h3>

<pre>
mask1 control+mod1
mask2 mod1
altmask shift
</pre>

<h3>Button binds</h3>

<pre>
bind button1=move
bind button2=resize
bind button3=lower
</pre>

<h3>Keyboard binds</h3>

<pre>
bind mask1+Return=spawn
bind mask1+Escape=delete
bind mask1+altmask+Escape=kill
bind mask1+Insert=lower
bind mask1+KP_Insert=lower
bind mask1+i=info
bind mask2+Tab=next

bind mask1+h=move,relative+left
bind mask1+j=move,relative+down
bind mask1+k=move,relative+up
bind mask1+l=move,relative+right
bind mask1+y=move,top+left
bind mask1+u=move,top+right
bind mask1+b=move,bottom+left
bind mask1+n=move,bottom+right

bind mask1+altmask+h=resize,relative+left
bind mask1+altmask+j=resize,relative+down
bind mask1+altmask+k=resize,relative+up
bind mask1+altmask+l=resize,relative+right

bind mask1+equal=resize,toggle+v
bind mask1+altmask+equal=resize,toggle+h
bind mask1+x=resize,toggle+v+h

bind mask1+d=dock,toggle
bind mask1+f=fix,toggle
bind mask1+1=vdesk,0
bind mask1+2=vdesk,1
bind mask1+3=vdesk,2
bind mask1+4=vdesk,3
bind mask1+5=vdesk,4
bind mask1+6=vdesk,5
bind mask1+7=vdesk,6
bind mask1+8=vdesk,7
bind mask1+Left=vdesk,relative+down
bind mask1+Right=vdesk,relative+up
bind mask1+a=vdesk,toggle
</pre>


<h2 id='files'>FILES</h2>

<p><em>$HOME/.evilwmrc</em>


<h2 id='licence'>LICENCE</h2>

<p>Copyright (C) 1999-2022 Ciaran Anscomb &lt;evilwm@6809.org.uk&gt;

<p>This is free software.  You can do what you want to it, but if it breaks
something, you get to pay for the counselling.  The code was originally based
on aewm, so this is distributed under the same terms, which follow.


<h2>AEWM LICENCE</h2>

<p>Copyright (c) 1998-2000 Decklin Foster.

<p>THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS", WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES OF ANY KIND. IN NO EVENT SHALL THE AUTHOR BE HELD LIABLE FOR
ANY DAMAGES CONNECTED WITH THE USE OF THIS PROGRAM.

<p>You are granted permission to copy, publish, distribute, and/or sell copies
of this program and any modified versions or derived works, provided that this
copyright and notice are not removed or altered.

<p>Portions of the code were based on 9wm, which contains this license:

<pre>
9wm is free software, and is Copyright (c) 1994 by David Hogan.
Permission is granted to all sentient beings to use this
software, to make copies of it, and to distribute those copies,
provided that:

  (1) the copyright and licence notices are left intact
  (2) the recipients are aware that it is free software
  (3) any unapproved changes in functionality are either
        (i) only distributed as patches
    or (ii) distributed as a new program which is not called 9wm
            and whose documentation gives credit where it is due
  (4) the author is not held responsible for any defects
      or shortcomings in the software, or damages caused by it.

There is no warranty for this software.  Have a nice day.
</pre>


<h2 id='seealso'>SEE ALSO</h2>

<p><strong>xterm</strong> (1), <strong>xprop</strong> (1)


</body>
</html>