Debian Codegraph @

upstream/opensuse-leap-16-1/man1/icesh.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "ICESH 1"
61 .TH ICESH 1 2024-06-16 "icewm 3.6.0" "User Commands"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SS NAME
67 .IX Subsection "NAME"
68 .Vb 1
69 \& icesh \- control window properties and the IceWM window manager
70 .Ve
71 .SS SYNOPSIS
72 .IX Subsection "SYNOPSIS"
73 .IP "\fBicesh\fR \fIOPTIONS|ACTIONS\fR+" 4
74 .IX Item "icesh OPTIONS|ACTIONS+"
75 .SS DESCRIPTION
76 .IX Subsection "DESCRIPTION"
77 \&\fBicesh\fR provides two types of commands:
78 .IP "1. Commands to directly interact with icewm:" 4
79 .IX Item "1. Commands to directly interact with icewm:"
80 These are listed in the section "MANAGER ACTIONS" below.
81 They are easy to use, because they don\*(Aqt require to select one
82 or more windows. For example, \f(CW\*(C`icesh restart\*(C'\fR will restart
83 icewm and \f(CW\*(C`icesh clients\*(C'\fR lists the applications that
84 are managed by icewm.
85 .IP "2. Commands that operate on a selection of windows:" 4
86 .IX Item "2. Commands that operate on a selection of windows:"
87 See the section \f(CW\*(C`WINDOW ACTIONS\*(C'\fR below. For example, \f(CW\*(C`icesh close\*(C'\fR
88 is a request to close a window, but which window? Now icesh
89 will turn the mouse pointer into a crosshair. Click on a window
90 and a close request will be sent to that application.
91 .Sp
92 The power of icesh lies in its ability to programmatically
93 select one or more windows and operate on that selection.
94 This can be used in scripts and in \fBicewm\-keys\fR\|(5)
95 to define your own window management hotkeys. For example, to
96 immediately close all xterm windows do \f(CW\*(C`icesh \-c xterm close\*(C'\fR.
97 .Sp
98 There are a dozen \f(CW\*(C`SELECT OPTIONS\*(C'\fR to select windows. They start
99 with a \*(Aq\-\*(Aq or a \*(Aq+\*(Aq. The \*(Aq\-\*(Aq starts a new selection, while the \*(Aq+\*(Aq
100 adds more windows to an existing selection.
101 .Sp
102 This selection of windows can be reduced by \f(CW\*(C`FILTER OPTIONS\*(C'\fR.
103 These remove unwanted windows from the current selection.
104 Multiple filter options can be given. For example,
105 \&\f(CW\*(C`icesh \-c xterm \-W this close\*(C'\fR will close only those xterms
106 that are shown on the current workspace. The xterms on other
107 workspaces are filtered out by the \f(CW\*(C`\-W this\*(C'\fR filter option.
108 .PP
109 There is no limit to the number of commands, selections, filters
110 and actions that you can give to a single icesh command.
111 They are processed and evaluated one by one from left to right.
112 This makes icesh a small declarative programming language.
113 Have a look at some examples near the end of this document.
114 .SS OPTIONS
115 .IX Subsection "OPTIONS"
116 \&\fBicesh\fR recognizes the following options:
117 .SS "SELECT OPTIONS"
118 .IX Subsection "SELECT OPTIONS"
119 Select options specify the window or windows to which subsequent
120 actions apply. If none is given, but an action does require a window,
121 then a selection crosshair is shown to select the desired window
122 interactively. The manager actions do not require window options.
123 .PP
124 The following options \fIselect\fR one or more client windows.
125 If needed, they can be repeated for successive actions.
126 .IP "\fB\-a\fR, \fB\-all\fR" 4
127 .IX Item "-a, -all"
128 Selects all client windows of the window manager.
129 .IP "\fB\-f\fR, \fB\-focus\fR, \fB+f\fR, \fB+focus\fR" 4
130 .IX Item "-f, -focus, +f, +focus"
131 Selects the application window that is currently focused.
132 The option with minus sign replaces the existing selection with
133 the focused window. With a plus sign the focused window is added to
134 an existing selection.
135 .IP "\fB+g\fR, \fB+group\fR" 4
136 .IX Item "+g, +group"
137 Extend the current selection with client windows that
138 belong to the same application window group.
139 .IP "\fB\-r\fR, \fB\-root\fR, \fB+r\fR, \fB+root\fR" 4
140 .IX Item "-r, -root, +r, +root"
141 Selects the root window.
142 The option with minus sign replaces the existing selection with
143 the root window. With a plus sign the root window is added to
144 an existing selection.
145 .IP "\fB\-s\fR, \fB\-shown\fR" 4
146 .IX Item "-s, -shown"
147 Selects all client windows that are on the current workspace.
148 .IP "\fB\-t\fR, \fB\-top\fR" 4
149 .IX Item "-t, -top"
150 Selects all toplevel windows from the display unconditionally.
151 This includes windows that have never been mapped and windows
152 with the override redirect bit set to evade management.
153 .IP "\fB\-w\fR, \fB\-window\fR, \fB+w\fR, \fB+window\fR \fIWINDOW_ID\fR" 4
154 .IX Item "-w, -window, +w, +window WINDOW_ID"
155 Specifies the identifier of the window, \fIWINDOW_ID\fR, for which the
156 action applies. Special identifiers are \fBroot\fR for the root window
157 and \fBfocus\fR for the currently focused window.
158 The option with minus sign replaces the existing selection.
159 With a plus sign the window is added to an existing selection.
160 .IP "\fB\-x\fR, \fB\-xembed\fR" 4
161 .IX Item "-x, -xembed"
162 Selects all windows that are embedded using the \fIXEMBED\fR protocol.
163 .IP "\fB+c\fR, \fB+class\fR \fICLASS\fR" 4
164 .IX Item "+c, +class CLASS"
165 Extend the current selection with client windows that have a
166 \&\fIWM_CLASS\fR property equal to \fICLASS\fR. This is the resource
167 instance and class name. If \fICLASS\fR contains a period, only
168 windows with exactly the same \fIWM_CLASS\fR property are matched.
169 If there is no period, windows of the same class and windows
170 of the same instance are selected.
171 .IP "\fB+C\fR, \fB+Class\fR" 4
172 .IX Item "+C, +Class"
173 Extend the current selection with client windows that
174 have a \fIWM_CLASS\fR property \fIsimilar\fR to the already
175 selected set of windows.
176 .IP "\fB\-D\fR, \fB\-Dockapps\fR" 4
177 .IX Item "-D, -Dockapps"
178 Selects all Dockapp applications that are managed by icewm.
179 .IP "\fB+P\fR, \fB+Pid\fR" 4
180 .IX Item "+P, +Pid"
181 Extend the current selection with client windows that have
182 the same process identifier as one of the selected windows.
183 .IP \fB\-T\fR 4
184 .IX Item "-T"
185 Selects the IceWM taskbar.
186 .SS "FILTER OPTIONS"
187 .IX Subsection "FILTER OPTIONS"
188 The following options \fIfilter\fR the currently selected set of windows.
189 If no previous \fIselect\fR option was given then a \fB\-all\fR option is
190 implicitly assumed to filter all client windows.
191 .IP "\fB\-c\fR, \fB\-class\fR \fICLASS\fR" 4
192 .IX Item "-c, -class CLASS"
193 Filters the set of windows on their \fIWM_CLASS\fR property. This is
194 the resource instance and class name. If \fICLASS\fR contains a period,
195 only windows with exactly the same \fIWM_CLASS\fR property are matched.
196 If there is no period, windows of the same class and windows of the
197 same instance (aka. \fI\-name\fR) are selected.
198 .IP "\fB\-l\fR, \fB\-last\fR" 4
199 .IX Item "-l, -last"
200 Filter clients and keep only the most recent client.
201 .IP "\fB\-m\fR, \fB\-machine\fR \fIHOST\fR" 4
202 .IX Item "-m, -machine HOST"
203 Filters clients by host name. Clients with a WM_CLIENT_MACHINE property
204 equal to \fIHOST\fR are selected.
205 .IP "\fB\-n\fR, \fB\-name\fR \fINAME\fR" 4
206 .IX Item "-n, -name NAME"
207 Filters clients by _NET_WM_NAME or WM_NAME.
208 \&\fINAME\fR matches any part of the property value.
209 To match at the beginning use a \f(CW\*(C`^\*(C'\fR prefix.
210 To match at the end use a \f(CW\*(C`$\*(C'\fR suffix.
211 .IP "\fB\-p\fR, \fB\-pid\fR \fIPID\fR" 4
212 .IX Item "-p, -pid PID"
213 Filters clients by process ID. Clients with a _NET_WM_PID property equal
214 to \fIPID\fR are selected.
215 .IP "\fB\-u\fR, \fB\-unmapped\fR" 4
216 .IX Item "-u, -unmapped"
217 Filter clients and keep those that are currently not viewable.
218 These are hidden, minimized, rolled\-up, or on another workspace.
219 .IP "\fB\-v\fR, \fB\-viewable\fR" 4
220 .IX Item "-v, -viewable"
221 Filter clients and keep only those that are currently viewable.
222 These clients are mapped on the current workspace.
223 .IP "\fB\-G\fR, \fB\-Gravity\fR \fIGRAVITY\fR" 4
224 .IX Item "-G, -Gravity GRAVITY"
225 Filters clients by the window gravity field of the WM_NORMAL_HINTS
226 property. Clients with a gravity equal to \fIGRAVITY\fR are selected.
227 If \fIGRAVITY\fR starts with an exclamation mark then the filtering is
228 inverted.
229 .IP "\fB\-L\fR, \fB\-Layer\fR \fILAYER\fR" 4
230 .IX Item "-L, -Layer LAYER"
231 Filters clients by \fIGNOME window layer\fR, which can either be a layer
232 name or a layer number. See EXPRESSIONS below. If \fILAYER\fR starts with
233 an exclamation mark then the filtering is inverted.
234 .IP "\fB\-N\fR, \fB\-Netstate\fR \fISTATE\fR" 4
235 .IX Item "-N, -Netstate STATE"
236 Filters clients by \fIEWMH window state\fR. Clients that have at
237 least an EWMH window state of \fISTATE\fR are selected. This state
238 refers to details like \fBMINIZED\fR or \fBMAXIMIZED\fR. See EXPRESSIONS
239 below. If \fISTATE\fR starts with an exclamation mark then the filtering
240 is inverted. A question mark \f(CW\*(C`?\*(C'\fR filters clients with any bit set
241 in \fISTATE\fR.
242 .IP "\fB\-P\fR, \fB\-Property\fR \fIPROP[=value]\fR" 4
243 .IX Item "-P, -Property PROP[=value]"
244 Filters clients by property. Clients that have a property \fIPROP\fR
245 are selected. If the optional \fIvalue\fR is given, the match succeeds
246 only if \fIPROP\fR is a string, window, cardinal, or atom, with a value
247 equal to \fIvalue\fR. The filtering is inverted if \fIPROP\fR starts with
248 an exclamation mark.
249 .IP "\fB\-R\fR, \fB\-Role\fR \fIROLE\fR" 4
250 .IX Item "-R, -Role ROLE"
251 Filters clients by WM_WINDOW_ROLE. Clients that have a WM_WINDOW_ROLE
252 property value equal to \fIROLE\fR are selected. The filtering is inverted
253 if \fIROLE\fR starts with an exclamation mark.
254 .IP "\fB\-W\fR, \fB\-Workspace\fR \fIWORKSPACE\fR" 4
255 .IX Item "-W, -Workspace WORKSPACE"
256 Filter clients by workspace. Workspace \fIWORKSPACE\fR is either a
257 workspace name, or a workspace number counting from zero, or the word
258 \&\f(CW\*(C`this\*(C'\fR for the current workspace, or the word \f(CW\*(C`All\*(C'\fR for all workspaces.
259 If \fIWORKSPACE\fR starts with an exclamation mark then the filtering is
260 inverted.
261 .IP "\fB\-X\fR, \fB\-Xinerama\fR \fIMONITOR\fR" 4
262 .IX Item "-X, -Xinerama MONITOR"
263 Limit clients by \fIRandR\fR/\fIXinerama\fR monitor. Only operate on
264 clients that are displayed on \fIMONITOR\fR, where \fIMONITOR\fR can
265 be \f(CW\*(C`All\*(C'\fR for all monitors, \f(CW\*(C`this\*(C'\fR for the monitor where the
266 active window is displayed, or a monitor number starting from zero.
267 See the output of \f(CW\*(C`randr\*(C'\fR or \f(CW\*(C`xinerama\*(C'\fR below.
268 .SS "GENERAL OPTIONS"
269 .IX Subsection "GENERAL OPTIONS"
270 The following options are identical for every IceWM command.
271 .IP "\fB\-d\fR, \fB\-display\fR \fIDISPLAY\fR" 4
272 .IX Item "-d, -display DISPLAY"
273 Specifies the X11 DISPLAY. If unspecified, defaults to \fR\f(CB$DISPLAY\fR\fB\fR.
274 .IP "\fB\-h\fR, \fB\-\-help\fR" 4
275 .IX Item "-h, --help"
276 Print a brief usage statement to \fIstdout\fR and exit.
277 .IP "\fB\-V\fR, \fB\-\-version\fR" 4
278 .IX Item "-V, --version"
279 Print the program version to \fIstdout\fR and exit.
280 .IP "\fB\-C\fR, \fB\-\-copying\fR" 4
281 .IX Item "-C, --copying"
282 Print copying permissions to \fIstdout\fR for the program and exit.
283 .IP "\fB\-q\fR, \fB\-\-quiet\fR" 4
284 .IX Item "-q, --quiet"
285 Don\*(Aqt complain if no matching windows could be found.
286 .SS ACTIONS
287 .IX Subsection "ACTIONS"
288 \&\fBicesh\fR expects one or more action arguments. There are two kinds of
289 actions: \fIwindow actions\fR and \fImanager actions\fR. The first operates on
290 the selected windows. The second directly interacts with the \fBicewm\fR
291 window manager.
292 .SS "WINDOW ACTIONS"
293 .IX Subsection "WINDOW ACTIONS"
294 The following actions affect the selected window or windows.
295 .IP \fBactivate\fR 4
296 .IX Item "activate"
297 Activate the window, aka. \fIto focus\fR.
298 .IP \fBclose\fR 4
299 .IX Item "close"
300 Send a close request to the client that created the window.
301 .IP \fBkill\fR 4
302 .IX Item "kill"
303 Force an immediate close down of the client that created the window.
304 .IP \fBid\fR 4
305 .IX Item "id"
306 Print window identifiers for the selected windows.
307 .IP \fBpid\fR 4
308 .IX Item "pid"
309 Print process identifiers for the selected windows.
310 .IP \fBlist\fR 4
311 .IX Item "list"
312 Show window details, like geometry and names.
313 .IP \fBlower\fR 4
314 .IX Item "lower"
315 Lower the window.
316 .IP \fBraise\fR 4
317 .IX Item "raise"
318 Raise the window.
319 .IP \fBabove\fR 4
320 .IX Item "above"
321 Stack the window above others.
322 .IP \fBbelow\fR 4
323 .IX Item "below"
324 Stack the window below others.
325 .IP \fBrollup\fR 4
326 .IX Item "rollup"
327 Rollup the specified window.
328 .IP \fBfullscreen\fR 4
329 .IX Item "fullscreen"
330 Set the window to fullscreen.
331 .IP \fBmaximize\fR 4
332 .IX Item "maximize"
333 Maximize the window.
334 .IP \fBhorizontal\fR 4
335 .IX Item "horizontal"
336 Maximize the window only horizontally.
337 .IP \fBvertical\fR 4
338 .IX Item "vertical"
339 Maximize the window only vertically.
340 .IP \fBminimize\fR 4
341 .IX Item "minimize"
342 Minimize the window.
343 .IP \fBrestore\fR 4
344 .IX Item "restore"
345 Restore the window to normal and clear urgency.
346 .IP \fBhide\fR 4
347 .IX Item "hide"
348 Hide the window.
349 .IP \fBunhide\fR 4
350 .IX Item "unhide"
351 Reveal the window.
352 .IP \fBskip\fR 4
353 .IX Item "skip"
354 Don\*(Aqt show the window on the taskbar.
355 .IP \fBunskip\fR 4
356 .IX Item "unskip"
357 Do show the window on the taskbar.
358 .IP \fBsticky\fR 4
359 .IX Item "sticky"
360 Show the window on all workspaces.
361 .IP \fBunsticky\fR 4
362 .IX Item "unsticky"
363 Show the window on just one workspace.
364 .IP \fBurgent\fR 4
365 .IX Item "urgent"
366 Set the urgency flag to flash the task button.
367 .IP "\fBresize\fR \fIWIDTH\fR \fIHEIGHT\fR" 4
368 .IX Item "resize WIDTH HEIGHT"
369 Resize window to \fIWIDTH\fR by \fIHEIGHT\fR window units. For text based
370 applications like terminals, a window unit is the size of a single
371 character cell.
372 .IP "\fBsizeto\fR \fIWIDTH\fR \fIHEIGHT\fR" 4
373 .IX Item "sizeto WIDTH HEIGHT"
374 Resize window to \fIWIDTH\fR by \fIHEIGHT\fR pixels. If \fIWIDTH\fR or \fIHEIGHT\fR
375 ends with a percent sign \f(CW\*(C`%\*(C'\fR, then they refer to a percentage of the
376 desktop work area. For instance, \f(CW\*(C`sizeto 50% 100%\*(C'\fR resizes to half
377 the desktop width and whatever height is available above or below the
378 taskbar.
379 .IP "\fBsizeby\fR \fIWIDTH\fR \fIHEIGHT\fR" 4
380 .IX Item "sizeby WIDTH HEIGHT"
381 Resize window by \fIWIDTH\fR by \fIHEIGHT\fR pixels. If \fIWIDTH\fR or \fIHEIGHT\fR
382 ends with a percent sign \f(CW\*(C`%\*(C'\fR, then they refer to a percentage of the
383 current window size. For instance, \f(CW\*(C`sizeby 50% 200\*(C'\fR increases the width
384 by 50% and increases the height by 200 pixels.
385 .IP "\fBmove\fR \fIX\fR \fIY\fR" 4
386 .IX Item "move X Y"
387 Move the selected window or windows to the screen position \fIX\fR \fIY\fR.
388 To specify \fIX\fR or \fIY\fR values relative to the right side or bottom side
389 precede the value with an extra minus sign, like in \f(CW\*(C`move \-+10 \-\-20\*(C'\fR.
390 When \fIX\fR or \fIY\fR end with a percent sign \f(CW\*(C`%\*(C'\fR, they refer to a percentage
391 of the desktop work area.
392 .IP "\fBmoveby\fR \fIX\fR \fIY\fR" 4
393 .IX Item "moveby X Y"
394 Displace window by \fIX\fR \fIY\fR pixels.
395 .IP \fBcenter\fR 4
396 .IX Item "center"
397 Position the window in the center of the desktop work area.
398 .IP \fBleft\fR 4
399 .IX Item "left"
400 Position the window against the left side of the desktop work area.
401 .IP \fBright\fR 4
402 .IX Item "right"
403 Position the window against the right side of the desktop work area.
404 .IP \fBtop\fR 4
405 .IX Item "top"
406 Position the window against the top side of the desktop work area.
407 .IP \fBbottom\fR 4
408 .IX Item "bottom"
409 Position the window against the bottom side of the desktop work area.
410 .IP "\fBsetIconTitle\fR \fITITLE\fR" 4
411 .IX Item "setIconTitle TITLE"
412 Set the icon title to \fITITLE\fR.
413 .IP \fBgetIconTitle\fR 4
414 .IX Item "getIconTitle"
415 Print the icon title.
416 .IP "\fBsetWindowTitle\fR \fITITLE\fR" 4
417 .IX Item "setWindowTitle TITLE"
418 Set the window title to \fITITLE\fR.
419 .IP \fBgetWindowTitle\fR 4
420 .IX Item "getWindowTitle"
421 Print the window title.
422 .IP "\fBsetGeometry\fR \fIGEOMETRY\fR" 4
423 .IX Item "setGeometry GEOMETRY"
424 Set the window geometry to \fIGEOMETRY\fR. This geometry should be
425 specified in a format that can be parsed by \fBXParseGeometry\fR\|(3).
426 Negative offsets are with respect to the bottom or right side of
427 the screen. Use \f(CW\*(C`+\-\*(C'\fR for a truly negative position.
428 .IP \fBgetGeometry\fR 4
429 .IX Item "getGeometry"
430 Print the window geometry.
431 .IP "\fBsetClass\fR \fICLASS\fR" 4
432 .IX Item "setClass CLASS"
433 Set the resource name and class to \fICLASS\fR, which should be a resource
434 name and a resource class connected by a dot. To preserve either the
435 existing name or class, use a percentage sign for that part.
436 .IP \fBgetClass\fR 4
437 .IX Item "getClass"
438 Print the resource name and class.
439 .IP "\fBnetState\fR \fI[STATE]\fR" 4
440 .IX Item "netState [STATE]"
441 If \fISTATE\fR is omitted then it shows the \fIEWMH window state\fR.
442 If \fISTATE\fR starts with a \f(CW\*(C`+\*(C'\fR then flags in \fISTATE\fR are appended to
443 the existing \fIEWMH window state\fR. If \fISTATE\fR starts with a \f(CW\*(C`\-\*(C'\fR
444 then flags in \fISTATE\fR are removed from the existing \fIEWMH window
445 state\fR. If \fISTATE\fR starts with a \f(CW\*(C`^\*(C'\fR then flags in \fISTATE\fR are
446 toggled with respect to the existing \fIEWMH window state\fR.
447 If \fISTATE\fR starts with a \f(CW\*(C`=\*(C'\fR then the \fIEWMH window state\fR
448 is set to \fISTATE\fR. See EXPRESSIONS below. A list of \fIEWMH flags\fR
449 can be found in the output of \f(CW\*(C`icesh symbols\*(C'\fR.
450 .IP "\fBsetLayer\fR \fILAYER\fR" 4
451 .IX Item "setLayer LAYER"
452 Move the specified window to another \fIwindow layer\fR.
453 See EXPRESSIONS below for a list of \fILAYER\fR symbols.
454 .IP \fBgetLayer\fR 4
455 .IX Item "getLayer"
456 Print the \fIwindow layer\fR for the specified window.
457 .IP "\fBsetWorkspace\fR \fIWORKSPACE\fR" 4
458 .IX Item "setWorkspace WORKSPACE"
459 Move the specified window to another workspace. Select the root
460 window to change the current workspace. If \fIWORKSPACE\fR is \f(CW\*(C`All\*(C'\fR
461 then the specified window becomes visible on all workspaces.
462 Specify \f(CW\*(C`this\*(C'\fR for the current workspace, \f(CW\*(C`next\*(C'\fR for the subsequent
463 workspace or \f(CW\*(C`prev\*(C'\fR for the preceding workspace.
464 .IP \fBgetWorkspace\fR 4
465 .IX Item "getWorkspace"
466 Print the workspace for the specified window.
467 .IP "\fBopacity\fR [\fIOPACITY\fR]" 4
468 .IX Item "opacity [OPACITY]"
469 Print the window opacity if \fIOPACITY\fR is not given,
470 otherwise set the window opacity to \fIOPACITY\fR.
471 .IP "\fBsetTrayOption\fR \fITRAYOPTION\fR" 4
472 .IX Item "setTrayOption TRAYOPTION"
473 Set the \fIIceWM tray option\fR for the specified window to \fITRAYOPTION\fR.
474 See \fIIceWM tray options\fR, below, for \fITRAYOPTION\fR symbols.
475 .IP \fBgetTrayOption\fR 4
476 .IX Item "getTrayOption"
477 Print the \fIIceWM tray option\fR for the specified window.
478 .IP "\fBsetNormalGravity\fR \fIGRAVITY\fR" 4
479 .IX Item "setNormalGravity GRAVITY"
480 Set the window gravity field in the WM_NORMAL_HINTS property for the
481 specified window to \fIGRAVITY\fR. See below for \fIGRAVITY\fR symbols.
482 .IP \fBgetNormalGravity\fR 4
483 .IX Item "getNormalGravity"
484 Print the window gravity from the WM_NORMAL_HINTS property for the
485 specified window.
486 .IP "\fBsetWindowGravity\fR \fIGRAVITY\fR" 4
487 .IX Item "setWindowGravity GRAVITY"
488 Set the window gravity for the specified window to \fIGRAVITY\fR.
489 See below for \fIGRAVITY\fR symbols.
490 .IP \fBgetWindowGravity\fR 4
491 .IX Item "getWindowGravity"
492 Print the window gravity for the specified window.
493 .IP "\fBsetBitGravity\fR \fIGRAVITY\fR" 4
494 .IX Item "setBitGravity GRAVITY"
495 Set the bit gravity> for the specified window to \fIGRAVITY\fR.
496 See below for \fIGRAVITY\fR symbols.
497 .IP \fBgetBitGravity\fR 4
498 .IX Item "getBitGravity"
499 Print the bit gravity for the specified window.
500 .IP "\fBmotif\fR [\fBfuncs\fR \fIFUNCTIONS\fR | \fBdecor\fR \fIDECORATIONS\fR | \fBremove\fR]" 4
501 .IX Item "motif [funcs FUNCTIONS | decor DECORATIONS | remove]"
502 Query, set or modify the \f(CW\*(C`_MOTIF_WM_HINTS\*(C'\fR property for the specified
503 window. Without arguments \fBmotif\fR will show the current value, but
504 only if the window has such a property. The property can be removed or
505 reset with the \fBremove\fR argument. With \fBfuncs\fR and \fBdecor\fR individual
506 fields of this property can be enabled or disabled. If \fIFUNCTIONS\fR or
507 \&\fIDECORATIONS\fR starts with a minus or plus sign then the existing value
508 is modified, otherwise it is set to the new value. Note that if \f(CW\*(C`All\*(C'\fR
509 is set, other set fields are disabled and cleared fields are enabled.
510 .IP \fBborderless\fR 4
511 .IX Item "borderless"
512 Hide the frame borders and title.
513 .IP \fBbordered\fR 4
514 .IX Item "bordered"
515 Show the frame borders and title.
516 .IP \fBdenormal\fR 4
517 .IX Item "denormal"
518 Remove the WM_NORMAL_HINTS property, if it exists. This lifts
519 font\-size restrictions on resizing, especially for terminals.
520 .IP "\fBprop\fR \fIPROPERTY\fR" 4
521 .IX Item "prop PROPERTY"
522 Print the value of property \fIPROPERTY\fR, if it is present.
523 .IP \fBproperties\fR 4
524 .IX Item "properties"
525 Print all properties and their values.
526 .IP \fBframe\fR 4
527 .IX Item "frame"
528 Print the identifier of the window frame.
529 .IP \fBextents\fR 4
530 .IX Item "extents"
531 Print the window identifier and the frame border sizes: left, right,
532 top and bottom.
533 .IP \fBfocusmodel\fR 4
534 .IX Item "focusmodel"
535 Print the ICCCM focus model as advertised by the client window.
536 This is either Locally, Passive, Globally or NoInput.
537 .IP "\fBoverride\fR [\fI0|1\fR]" 4
538 .IX Item "override [0|1]"
539 Print the override redirect status for the window, or if either 0 or 1
540 is given, then disable or enable the override redirect status.
541 .IP "\fBtabto\fR \fIlabel\fR" 4
542 .IX Item "tabto label"
543 Move the windows as tabs to a frame that has \f(CW\*(C`frame\*(C'\fR label \fIlabel\fR.
544 Such a frame is created if needed.
545 .IP \fBuntab\fR 4
546 .IX Item "untab"
547 Move each window to its own frame, if it is currently tabbed.
548 .IP "\fBloadicon\fR \fIimage.pam\fR" 4
549 .IX Item "loadicon image.pam"
550 Load an icon from file, which must be in the PAM image format,
551 with dimensions at most 256, a depth of 4, and type \fIRGB_ALPHA\fR.
552 .IP "\fBsaveicon\fR \fIfile000.pam\fR" 4
553 .IX Item "saveicon file000.pam"
554 Save an icon to a new file in the PAM image format. Digits are
555 increased to generate a unique new filename for each window.
556 .IP "\fBclick\fR \fIwindow\-x\fR \fIwindow\-y\fR \fIbutton\fR" 4
557 .IX Item "click window-x window-y button"
558 Send a button press and release event at position (\fIwindow\-x\fR,
559 \&\fIwindow\-y\fR). A negative position is relative to the bottom right
560 corner. The mouse pointer is warped to the position before sending
561 the events. The button number should be between 1 and 5 inclusive.
562 .IP "\fBmonitors\fR \fItop\fR \fIbottom\fR \fIleft\fR \fIright\fR" 4
563 .IX Item "monitors top bottom left right"
564 This sets the monitors to use for fullscreen.
565 Top, bottom, left, and right are indices of the \fIicesh xinerama\fR command.
566 .IP \fBspy\fR 4
567 .IX Item "spy"
568 Observe the selected windows and report any changes. This includes
569 focus, visibility, position, size and all window properties.
570 To monitor all of the protocol request messages that client applications
571 may send to icewm, also spy on the root window.
572 .IP \fBstacking\fR 4
573 .IX Item "stacking"
574 Sort the list of windows from topmost to bottom\-most.
575 .IP \fBreverse\fR 4
576 .IX Item "reverse"
577 Reverse the order of the list of windows.
578 .SS "MANAGER ACTIONS"
579 .IX Subsection "MANAGER ACTIONS"
580 The following actions control the IceWM window manager and therefore
581 do not require a window \fIselect\fR or \fIfilter\fR option:
582 .IP \fBlistWorkspaces\fR 4
583 .IX Item "listWorkspaces"
584 List the names of all workspaces.
585 .IP \fBcurrent\fR 4
586 .IX Item "current"
587 Show the number and name of the current workspace.
588 .IP "\fBgoto\fR \fIWORKSPACE\fR" 4
589 .IX Item "goto WORKSPACE"
590 Change the current workspace to \fIWORKSPACE\fR. Specify \f(CW\*(C`next\*(C'\fR for the
591 subsequent workspace or \f(CW\*(C`prev\*(C'\fR for the preceding workspace.
592 .IP "\fBworkspaces\fR [\fICOUNT\fR]" 4
593 .IX Item "workspaces [COUNT]"
594 Print the number of workspaces if \fICOUNT\fR is not given,
595 otherwise set the number of workspaces to \fICOUNT\fR.
596 .IP "\fBsetWorkspaceName\fR \fIINDEX\fR \fINAME\fR" 4
597 .IX Item "setWorkspaceName INDEX NAME"
598 Change the name of the workspace \fIINDEX\fR to \fINAME\fR, where \fIINDEX\fR is
599 a workspace number starting from zero.
600 .IP "\fBsetWorkspaceNames\fR \fINAME\fR [\fINAME\fR]*" 4
601 .IX Item "setWorkspaceNames NAME [NAME]*"
602 Change the workspace names to the list of \fINAME\fRs.
603 .IP "\fBaddWorkspace\fR \fINAME\fR" 4
604 .IX Item "addWorkspace NAME"
605 Create a new workspace with name \fINAME\fR.
606 .IP "\fBdesktop\fR [\fISHOWING\fR]" 4
607 .IX Item "desktop [SHOWING]"
608 If \fISHOWING\fR is \f(CW1\fR then set \f(CW\*(C`showing the desktop\*(C'\fR mode.
609 If \fISHOWING\fR is \f(CW0\fR then turn off \f(CW\*(C`showing the desktop\*(C'\fR.
610 Print the current mode if \fISHOWING\fR is not given.
611 .IP \fBworkarea\fR 4
612 .IX Item "workarea"
613 Print the dimensions of the work area for the current workspace.
614 This is the desktop, but minus space occupied by dock and panel windows.
615 .IP \fBrandr\fR 4
616 .IX Item "randr"
617 Summarize the \fIRandR\fR configuration.
618 .IP \fBxinerama\fR 4
619 .IX Item "xinerama"
620 Summarize the \fIXinerama\fR configuration.
621 .IP \fBcheck\fR 4
622 .IX Item "check"
623 Print information about the current window manager, like name,
624 version, class, locale, command, host name and pid.
625 .IP \fBclients\fR 4
626 .IX Item "clients"
627 List all managed client windows, their titles and geometries.
628 .IP \fBshown\fR 4
629 .IX Item "shown"
630 List all mapped client windows for the current desktop,
631 their titles and geometries.
632 .IP \fBwindows\fR 4
633 .IX Item "windows"
634 List all toplevel windows, their titles and geometries.
635 .IP \fBsystray\fR 4
636 .IX Item "systray"
637 List applications that are managed by the IceWM system tray.
638 .IP \fBxembed\fR 4
639 .IX Item "xembed"
640 List application windows that are embedded using the \fIXEMBED\fR protocol.
641 This is another way to discover system tray applications.
642 .IP \fBlogout\fR 4
643 .IX Item "logout"
644 Let icewm execute the \f(CW\*(C`LogoutCommand\*(C'\fR.
645 .IP \fBreboot\fR 4
646 .IX Item "reboot"
647 Let icewm execute the \f(CW\*(C`RebootCommand\*(C'\fR.
648 .IP \fBshutdown\fR 4
649 .IX Item "shutdown"
650 Let icewm execute the \f(CW\*(C`ShutdownCommand\*(C'\fR.
651 .IP \fBcancel\fR 4
652 .IX Item "cancel"
653 Let icewm cancel the logout/reboot/shutdown.
654 .IP \fBabout\fR 4
655 .IX Item "about"
656 Let icewm show the about window.
657 .IP \fBwindowlist\fR 4
658 .IX Item "windowlist"
659 Let icewm show the window list window.
660 .IP \fBrestart\fR 4
661 .IX Item "restart"
662 Let icewm restart itself.
663 .IP \fBsuspend\fR 4
664 .IX Item "suspend"
665 Let icewm execute the \f(CW\*(C`SuspendCommand\*(C'\fR.
666 .IP \fBhibernate\fR 4
667 .IX Item "hibernate"
668 Let icewm execute the \f(CW\*(C`HibernateCommand\*(C'\fR.
669 .IP \fBwinoptions\fR 4
670 .IX Item "winoptions"
671 Let icewm reload the \f(CW\*(C`winoptions\*(C'\fR.
672 This only affects new windows.
673 .IP \fBkeys\fR 4
674 .IX Item "keys"
675 Let icewm reload the \f(CW\*(C`keys\*(C'\fR file.
676 .IP \fBrefresh\fR 4
677 .IX Item "refresh"
678 Let icewm refresh the desktop background.
679 .IP \fBguievents\fR 4
680 .IX Item "guievents"
681 Monitor the \fBICEWM_GUI_EVENT\fR property and report all changes.
682 Hit \f(CW\*(C`Ctrl+C\*(C'\fR to abort this and continue with the next command.
683 .IP "\fBdelay\fR [\fItime\fR]" 4
684 .IX Item "delay [time]"
685 Stop execution for \fItime\fR or 0.1 seconds.
686 .IP "\fBrunonce\fR \fIprogram\fR [\fIarguments...\fR]" 4
687 .IX Item "runonce program [arguments...]"
688 This action is meant to be used together with the \fB\-class\fR option.
689 Only if no window is matched by \fIWM_CLASS\fR then
690 \&\fIprogram\fR [\fIarguments...\fR] is executed.
691 .IP "\fBloop\fR [\fIcount\fR]" 4
692 .IX Item "loop [count]"
693 Loop back to the beginning of the command and repeat. The optional
694 \&\fIcount\fR limits the number of repetitions.
695 .IP \fBpick\fR 4
696 .IX Item "pick"
697 Choose a window by a mouse button click.
698 .IP \fBsync\fR 4
699 .IX Item "sync"
700 Synchronize with the IceWM window manager. That is, wait for icewm to
701 process all previous actions.
702 .IP \fBsymbols\fR 4
703 .IX Item "symbols"
704 List all named symbols.
705 .SS CONDITIONALS
706 .IX Subsection "CONDITIONALS"
707 Icesh supports \f(CW\*(C`if\-then\-else\*(C'\fR expressions. The full syntax is:
708 .PP
709 .Vb 9
710 \& if selection
711 \& then
712 \& actions
713 \& elif selection
714 \& then
715 \& actions
716 \& else
717 \& actions
718 \& end
719 .Ve
720 .PP
721 Where \f(CW\*(C`selection\*(C'\fR is a sequence of selection and filtering options,
722 which evaluates to \fBtrue\fR when it is non\-empty. That is, if one or more
723 windows fulfilled the condition. If it is empty, then its \f(CW\*(C`actions\*(C'\fR
724 clause is ignored and the subsequent \f(CW\*(C`elif\*(C'\fR or \f(CW\*(C`else\*(C'\fR clause is tried
725 or taken. Each clause is optional.
726 .PP
727 Whenever a selection condition evaluates to \fBfalse\fR, the window selection
728 that existed before the \f(CW\*(C`if\*(C'\fR clause is immediately restored. This also
729 happens after an \f(CW\*(C`end\*(C'\fR clause.
730 .SS EXPRESSIONS
731 .IX Subsection "EXPRESSIONS"
732 Some of the window actions require one or two \fIEXPRESSION\fR arguments.
733 .ie n .IP "\fBEXPRESSION\fR ::= \fISYMBOL\fR | \fIEXPRESSION\fR { ""+"" | ""|"" } \fISYMBOL\fR" 4
734 .el .IP "\fBEXPRESSION\fR ::= \fISYMBOL\fR | \fIEXPRESSION\fR { \f(CW+\fR | \f(CW|\fR } \fISYMBOL\fR" 4
735 .IX Item "EXPRESSION ::= SYMBOL | EXPRESSION { + | | } SYMBOL"
736 .PP
737 Each \fISYMBOL\fR may be from one of the following applicable domains:
738 .IP "\fIWindow layer\fR" 4
739 .IX Item "Window layer"
740 Named symbols of the domain \fIWindow layer\fR (numeric range: 0\-15):
741 .Sp
742 .Vb 9
743 \& Desktop (0)
744 \& Below (2)
745 \& Normal (4)
746 \& OnTop (6)
747 \& Dock (8)
748 \& AboveDock (10)
749 \& Menu (12)
750 \& Fullscreen (14)
751 \& AboveAll (15)
752 .Ve
753 .Sp
754 These symbols are used with the \fILAYER\fR argument to the \f(CW\*(C`setLayer\*(C'\fR
755 action.
756 .IP "\fIIceWM tray option\fR" 4
757 .IX Item "IceWM tray option"
758 Named symbols of the domain \fIIceWM tray option\fR (numeric range: 0\-2):
759 .Sp
760 .Vb 3
761 \& Ignore (0)
762 \& Minimized (1)
763 \& Exclusive (2)
764 .Ve
765 .Sp
766 These symbols are used with the \fITRAYOPTION\fR argument to the
767 \&\f(CW\*(C`setTrayOption\*(C'\fR action.
768 .IP "\fIGravity symbols\fR" 4
769 .IX Item "Gravity symbols"
770 Named symbols for window and bit gravity (numeric range: 0\-10):
771 .Sp
772 .Vb 11
773 \& ForgetGravity (0)
774 \& NorthWestGravity (1)
775 \& NorthGravity (2)
776 \& NorthEastGravity (3)
777 \& WestGravity (4)
778 \& CenterGravity (5)
779 \& EastGravity (6)
780 \& SouthWestGravity (7)
781 \& SouthGravity (8)
782 \& SouthEastGravity (9)
783 \& StaticGravity (10)
784 .Ve
785 .IP "\fIMotif functions\fR" 4
786 .IX Item "Motif functions"
787 .Vb 6
788 \& All (1)
789 \& Resize (2)
790 \& Move (4)
791 \& Minimize (8)
792 \& Maximize (16)
793 \& Close (32)
794 .Ve
795 .IP "\fIMotif decorations\fR" 4
796 .IX Item "Motif decorations"
797 .Vb 7
798 \& All (1)
799 \& Border (2)
800 \& Resize (4)
801 \& Title (8)
802 \& Menu (16)
803 \& Minimize (32)
804 \& Maximize (64)
805 .Ve
806 .IP "\fIEWMH window state symbols\fR" 4
807 .IX Item "EWMH window state symbols"
808 Named symbols of the domain \fIEWMH state\fR (numeric range:
809 0\-8191):
810 .Sp
811 .Vb 10
812 \& ABOVE (1)
813 \& BELOW (2)
814 \& DEMANDS_ATTENTION (4)
815 \& FOCUSED (8)
816 \& FULLSCREEN (16)
817 \& HIDDEN (32)
818 \& MAXIMIZED_HORZ (64)
819 \& MAXIMIZED_VERT (128)
820 \& MODAL (256)
821 \& SHADED (512)
822 \& SKIP_PAGER (1024)
823 \& SKIP_TASKBAR (2048)
824 \& STICKY (4096)
825 .Ve
826 .SS EXAMPLES
827 .IX Subsection "EXAMPLES"
828 List all workspace names:
829 .PP
830 .Vb 1
831 \& icesh listWorkspaces
832 .Ve
833 .PP
834 Example output:
835 .PP
836 .Vb 4
837 \& workspace #0: \`main\*(Aq
838 \& workspace #1: \`web\*(Aq
839 \& workspace #2: \`doc\*(Aq
840 \& workspace #3: \`dev\*(Aq
841 .Ve
842 .PP
843 Close terminal work and activate terminal fun.
844 .PP
845 .Vb 1
846 \& icesh \-c work.XTerm close \-a \-c fun.XTerm activate
847 .Ve
848 .PP
849 Print opacity for all xterms.
850 .PP
851 .Vb 1
852 \& icesh \-c XTerm opacity
853 .Ve
854 .PP
855 Change opacity for all xterms.
856 .PP
857 .Vb 1
858 \& icesh \-c XTerm opacity 84
859 .Ve
860 .PP
861 Move all windows on workspace "Top" to the current workspace.
862 .PP
863 .Vb 1
864 \& icesh \-W "Top" setWorkspace "this"
865 .Ve
866 .PP
867 Restore all hidden clients, minimize all clients on the current
868 workspace and activate Firefox.
869 .PP
870 .Vb 1
871 \& icesh \-N HIDDEN restore \-a \-W "this" minimize \-a \-c Firefox activate
872 .Ve
873 .PP
874 Resize the focused window to occupy the right half of the desktop area.
875 .PP
876 .Vb 1
877 \& icesh \-f sizeto 49% 100% top right raise
878 .Ve
879 .PP
880 Toggle the frame border of the focused window.
881 .PP
882 .Vb 2
883 \& if icesh \-f motif | grep \-q \*(Aqdecor:$\*(Aq; then \e
884 \& icesh \-f motif decor All; else icesh \-f motif decor ""; fi
885 .Ve
886 .PP
887 Here is a different solution using conditionals.
888 .PP
889 .Vb 1
890 \& icesh \-f if \-P _NET_FRAME_EXTENTS=0 then bordered else borderless
891 .Ve
892 .PP
893 Here is a conditional to either toggle the visibility of a roxterm
894 that has a WM_ROLE value of \f(CW\*(C`special\*(C'\fR or start it with \fBrunonce\fR.
895 .PP
896 .Vb 4
897 \& icesh if \-c roxterm.Roxterm \-R special then \e
898 \& if \-v then hide \e
899 \& elif \-u then setWorkspace this activate end \e
900 \& else runonce roxterm \-\-role=special
901 .Ve
902 .PP
903 Collect all urxvt terminals from the fourth workspace in a single frame
904 on the current workspace.
905 .PP
906 .Vb 1
907 \& icesh \-W 3 \-c urxvt tabto myfunnyname
908 .Ve
909 .PP
910 Use the loop construct conditionally to wait for a certain window to
911 appear.
912 .PP
913 .Vb 1
914 \& icesh \-t if \-n Tooltip then list else delay 0.05 loop end
915 .Ve
916 .SS ENVIRONMENT
917 .IX Subsection "ENVIRONMENT"
918 .IP \fBDISPLAY\fR 4
919 .IX Item "DISPLAY"
920 The default display.
921 .SS "EXIT STATUS"
922 .IX Subsection "EXIT STATUS"
923 .IP \fB0\fR 4
924 .IX Item "0"
925 The last action completed successfully.
926 .IP \fB1\fR 4
927 .IX Item "1"
928 The last action completed unsuccessfully, or no window met the condition.
929 .IP \fB2\fR 4
930 .IX Item "2"
931 A conditional has invalid syntax.
932 .IP \fB3\fR 4
933 .IX Item "3"
934 The display could not be opened.
935 .IP \fB4\fR 4
936 .IX Item "4"
937 The X server reports an error while processing a request.
938 .SS COMPLIANCE
939 .IX Subsection "COMPLIANCE"
940 \&\fBicesh\fR is largely compliant with the EWMH and ICCCM specifications.
941 Some commands, like manager actions, are specific to IceWM.
942 .SS "SEE ALSO"
943 .IX Subsection "SEE ALSO"
944 \&\fBicewm\fR\|(1), \fBwmctrl\fR\|(1), \fBxdotool\fR\|(1), \fBxprop\fR\|(1),
945 \&\fBxwininfo\fR\|(1), \fBXParseGeometry\fR\|(3).
946 .SS BUGS
947 .IX Subsection "BUGS"
948 Please report bugs at <https://github.com/bbidulock/icewm/issues>.
949 .SS AUTHOR
950 .IX Subsection "AUTHOR"
951 Brian Bidulock <mailto:[email protected]>.
952 .PP
953 See \fB\-\-copying\fR for full copyright notice and copying permissions.
954 .SS LICENSE
955 .IX Subsection "LICENSE"
956 \&\fBIceWM\fR is licensed under the GNU Library General Public License.
957 See the \fICOPYING\fR file in the distribution or use the \fB\-\-copying\fR flag
958 to display copying permissions.