Debian Codegraph @

doc/herbstluftwm.html

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
5 <head>
6 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
7 <meta name="generator" content="AsciiDoc 10.2.0" />
8 <title>herbstluftwm(1)</title>
9 <style type="text/css">
10 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */
11
12 /* Default font. */
13 body {
14 font-family: Georgia,serif;
15 }
16
17 /* Title font. */
18 h1, h2, h3, h4, h5, h6,
19 div.title, caption.title,
20 thead, p.table.header,
21 #toctitle,
22 #author, #revnumber, #revdate, #revremark,
23 #footer {
24 font-family: Arial,Helvetica,sans-serif;
25 }
26
27 body {
28 margin: 1em 5% 1em 5%;
29 }
30
31 a {
32 color: blue;
33 text-decoration: underline;
34 }
35 a:visited {
36 color: fuchsia;
37 }
38
39 em {
40 font-style: italic;
41 color: navy;
42 }
43
44 strong {
45 font-weight: bold;
46 color: #083194;
47 }
48
49 h1, h2, h3, h4, h5, h6 {
50 color: #527bbd;
51 margin-top: 1.2em;
52 margin-bottom: 0.5em;
53 line-height: 1.3;
54 }
55
56 h1, h2, h3 {
57 border-bottom: 2px solid silver;
58 }
59 h2 {
60 padding-top: 0.5em;
61 }
62 h3 {
63 float: left;
64 }
65 h3 + * {
66 clear: left;
67 }
68 h5 {
69 font-size: 1.0em;
70 }
71
72 div.sectionbody {
73 margin-left: 0;
74 }
75
76 hr {
77 border: 1px solid silver;
78 }
79
80 p {
81 margin-top: 0.5em;
82 margin-bottom: 0.5em;
83 }
84
85 ul, ol, li > p {
86 margin-top: 0;
87 }
88 ul > li { color: #aaa; }
89 ul > li > * { color: black; }
90
91 .monospaced, code, pre {
92 font-family: "Courier New", Courier, monospace;
93 font-size: inherit;
94 color: navy;
95 padding: 0;
96 margin: 0;
97 }
98 pre {
99 white-space: pre-wrap;
100 }
101
102 #author {
103 color: #527bbd;
104 font-weight: bold;
105 font-size: 1.1em;
106 }
107 #email {
108 }
109 #revnumber, #revdate, #revremark {
110 }
111
112 #footer {
113 font-size: small;
114 border-top: 2px solid silver;
115 padding-top: 0.5em;
116 margin-top: 4.0em;
117 }
118 #footer-text {
119 float: left;
120 padding-bottom: 0.5em;
121 }
122 #footer-badges {
123 float: right;
124 padding-bottom: 0.5em;
125 }
126
127 #preamble {
128 margin-top: 1.5em;
129 margin-bottom: 1.5em;
130 }
131 div.imageblock, div.exampleblock, div.verseblock,
132 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
133 div.admonitionblock {
134 margin-top: 1.0em;
135 margin-bottom: 1.5em;
136 }
137 div.admonitionblock {
138 margin-top: 2.0em;
139 margin-bottom: 2.0em;
140 margin-right: 10%;
141 color: #606060;
142 }
143
144 div.content { /* Block element content. */
145 padding: 0;
146 }
147
148 /* Block element titles. */
149 div.title, caption.title {
150 color: #527bbd;
151 font-weight: bold;
152 text-align: left;
153 margin-top: 1.0em;
154 margin-bottom: 0.5em;
155 }
156 div.title + * {
157 margin-top: 0;
158 }
159
160 td div.title:first-child {
161 margin-top: 0.0em;
162 }
163 div.content div.title:first-child {
164 margin-top: 0.0em;
165 }
166 div.content + div.title {
167 margin-top: 0.0em;
168 }
169
170 div.sidebarblock > div.content {
171 background: #ffffee;
172 border: 1px solid #dddddd;
173 border-left: 4px solid #f0f0f0;
174 padding: 0.5em;
175 }
176
177 div.listingblock > div.content {
178 border: 1px solid #dddddd;
179 border-left: 5px solid #f0f0f0;
180 background: #f8f8f8;
181 padding: 0.5em;
182 }
183
184 div.quoteblock, div.verseblock {
185 padding-left: 1.0em;
186 margin-left: 1.0em;
187 margin-right: 10%;
188 border-left: 5px solid #f0f0f0;
189 color: #888;
190 }
191
192 div.quoteblock > div.attribution {
193 padding-top: 0.5em;
194 text-align: right;
195 }
196
197 div.verseblock > pre.content {
198 font-family: inherit;
199 font-size: inherit;
200 }
201 div.verseblock > div.attribution {
202 padding-top: 0.75em;
203 text-align: left;
204 }
205 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
206 div.verseblock + div.attribution {
207 text-align: left;
208 }
209
210 div.admonitionblock .icon {
211 vertical-align: top;
212 font-size: 1.1em;
213 font-weight: bold;
214 text-decoration: underline;
215 color: #527bbd;
216 padding-right: 0.5em;
217 }
218 div.admonitionblock td.content {
219 padding-left: 0.5em;
220 border-left: 3px solid #dddddd;
221 }
222
223 div.exampleblock > div.content {
224 border-left: 3px solid #dddddd;
225 padding-left: 0.5em;
226 }
227
228 div.imageblock div.content { padding-left: 0; }
229 span.image img { border-style: none; vertical-align: text-bottom; }
230 a.image:visited { color: white; }
231
232 dl {
233 margin-top: 0.8em;
234 margin-bottom: 0.8em;
235 }
236 dt {
237 margin-top: 0.5em;
238 margin-bottom: 0;
239 font-style: normal;
240 color: navy;
241 }
242 dd > *:first-child {
243 margin-top: 0.1em;
244 }
245
246 ul, ol {
247 list-style-position: outside;
248 }
249 ol.arabic {
250 list-style-type: decimal;
251 }
252 ol.loweralpha {
253 list-style-type: lower-alpha;
254 }
255 ol.upperalpha {
256 list-style-type: upper-alpha;
257 }
258 ol.lowerroman {
259 list-style-type: lower-roman;
260 }
261 ol.upperroman {
262 list-style-type: upper-roman;
263 }
264
265 div.compact ul, div.compact ol,
266 div.compact p, div.compact p,
267 div.compact div, div.compact div {
268 margin-top: 0.1em;
269 margin-bottom: 0.1em;
270 }
271
272 tfoot {
273 font-weight: bold;
274 }
275 td > div.verse {
276 white-space: pre;
277 }
278
279 div.hdlist {
280 margin-top: 0.8em;
281 margin-bottom: 0.8em;
282 }
283 div.hdlist tr {
284 padding-bottom: 15px;
285 }
286 dt.hdlist1.strong, td.hdlist1.strong {
287 font-weight: bold;
288 }
289 td.hdlist1 {
290 vertical-align: top;
291 font-style: normal;
292 padding-right: 0.8em;
293 color: navy;
294 }
295 td.hdlist2 {
296 vertical-align: top;
297 }
298 div.hdlist.compact tr {
299 margin: 0;
300 padding-bottom: 0;
301 }
302
303 .comment {
304 background: yellow;
305 }
306
307 .footnote, .footnoteref {
308 font-size: 0.8em;
309 }
310
311 span.footnote, span.footnoteref {
312 vertical-align: super;
313 }
314
315 #footnotes {
316 margin: 20px 0 20px 0;
317 padding: 7px 0 0 0;
318 }
319
320 #footnotes div.footnote {
321 margin: 0 0 5px 0;
322 }
323
324 #footnotes hr {
325 border: none;
326 border-top: 1px solid silver;
327 height: 1px;
328 text-align: left;
329 margin-left: 0;
330 width: 20%;
331 min-width: 100px;
332 }
333
334 div.colist td {
335 padding-right: 0.5em;
336 padding-bottom: 0.3em;
337 vertical-align: top;
338 }
339 div.colist td img {
340 margin-top: 0.3em;
341 }
342
343 @media print {
344 #footer-badges { display: none; }
345 }
346
347 #toc {
348 margin-bottom: 2.5em;
349 }
350
351 #toctitle {
352 color: #527bbd;
353 font-size: 1.1em;
354 font-weight: bold;
355 margin-top: 1.0em;
356 margin-bottom: 0.1em;
357 }
358
359 div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
360 margin-top: 0;
361 margin-bottom: 0;
362 }
363 div.toclevel2 {
364 margin-left: 2em;
365 font-size: 0.9em;
366 }
367 div.toclevel3 {
368 margin-left: 4em;
369 font-size: 0.9em;
370 }
371 div.toclevel4 {
372 margin-left: 6em;
373 font-size: 0.9em;
374 }
375
376 span.aqua { color: aqua; }
377 span.black { color: black; }
378 span.blue { color: blue; }
379 span.fuchsia { color: fuchsia; }
380 span.gray { color: gray; }
381 span.green { color: green; }
382 span.lime { color: lime; }
383 span.maroon { color: maroon; }
384 span.navy { color: navy; }
385 span.olive { color: olive; }
386 span.purple { color: purple; }
387 span.red { color: red; }
388 span.silver { color: silver; }
389 span.teal { color: teal; }
390 span.white { color: white; }
391 span.yellow { color: yellow; }
392
393 span.aqua-background { background: aqua; }
394 span.black-background { background: black; }
395 span.blue-background { background: blue; }
396 span.fuchsia-background { background: fuchsia; }
397 span.gray-background { background: gray; }
398 span.green-background { background: green; }
399 span.lime-background { background: lime; }
400 span.maroon-background { background: maroon; }
401 span.navy-background { background: navy; }
402 span.olive-background { background: olive; }
403 span.purple-background { background: purple; }
404 span.red-background { background: red; }
405 span.silver-background { background: silver; }
406 span.teal-background { background: teal; }
407 span.white-background { background: white; }
408 span.yellow-background { background: yellow; }
409
410 span.big { font-size: 2em; }
411 span.small { font-size: 0.6em; }
412
413 span.underline { text-decoration: underline; }
414 span.overline { text-decoration: overline; }
415 span.line-through { text-decoration: line-through; }
416
417 div.unbreakable { page-break-inside: avoid; }
418
419
420 /*
421 * xhtml11 specific
422 *
423 * */
424
425 div.tableblock {
426 margin-top: 1.0em;
427 margin-bottom: 1.5em;
428 }
429 div.tableblock > table {
430 border: 3px solid #527bbd;
431 }
432 thead, p.table.header {
433 font-weight: bold;
434 color: #527bbd;
435 }
436 p.table {
437 margin-top: 0;
438 }
439 /* Because the table frame attribute is overridden by CSS in most browsers. */
440 div.tableblock > table[frame="void"] {
441 border-style: none;
442 }
443 div.tableblock > table[frame="hsides"] {
444 border-left-style: none;
445 border-right-style: none;
446 }
447 div.tableblock > table[frame="vsides"] {
448 border-top-style: none;
449 border-bottom-style: none;
450 }
451
452
453 /*
454 * html5 specific
455 *
456 * */
457
458 table.tableblock {
459 margin-top: 1.0em;
460 margin-bottom: 1.5em;
461 }
462 thead, p.tableblock.header {
463 font-weight: bold;
464 color: #527bbd;
465 }
466 p.tableblock {
467 margin-top: 0;
468 }
469 table.tableblock {
470 border-width: 3px;
471 border-spacing: 0px;
472 border-style: solid;
473 border-color: #527bbd;
474 border-collapse: collapse;
475 }
476 th.tableblock, td.tableblock {
477 border-width: 1px;
478 padding: 4px;
479 border-style: solid;
480 border-color: #527bbd;
481 }
482
483 table.tableblock.frame-topbot {
484 border-left-style: hidden;
485 border-right-style: hidden;
486 }
487 table.tableblock.frame-sides {
488 border-top-style: hidden;
489 border-bottom-style: hidden;
490 }
491 table.tableblock.frame-none {
492 border-style: hidden;
493 }
494
495 th.tableblock.halign-left, td.tableblock.halign-left {
496 text-align: left;
497 }
498 th.tableblock.halign-center, td.tableblock.halign-center {
499 text-align: center;
500 }
501 th.tableblock.halign-right, td.tableblock.halign-right {
502 text-align: right;
503 }
504
505 th.tableblock.valign-top, td.tableblock.valign-top {
506 vertical-align: top;
507 }
508 th.tableblock.valign-middle, td.tableblock.valign-middle {
509 vertical-align: middle;
510 }
511 th.tableblock.valign-bottom, td.tableblock.valign-bottom {
512 vertical-align: bottom;
513 }
514
515
516 /*
517 * manpage specific
518 *
519 * */
520
521 body.manpage h1 {
522 padding-top: 0.5em;
523 padding-bottom: 0.5em;
524 border-top: 2px solid silver;
525 border-bottom: 2px solid silver;
526 }
527 body.manpage h2 {
528 border-style: none;
529 }
530 body.manpage div.sectionbody {
531 margin-left: 3em;
532 }
533
534 @media print {
535 body.manpage div#toc { display: none; }
536 }
537
538
539 </style>
540 <script type="text/javascript">
541 /*<![CDATA[*/
542 var asciidoc = { // Namespace.
543
544 /////////////////////////////////////////////////////////////////////
545 // Table Of Contents generator
546 /////////////////////////////////////////////////////////////////////
547
548 /* Author: Mihai Bazon, September 2002
549 * http://students.infoiasi.ro/~mishoo
550 *
551 * Table Of Content generator
552 * Version: 0.4
553 *
554 * Feel free to use this script under the terms of the GNU General Public
555 * License, as long as you do not remove or alter this notice.
556 */
557
558 /* modified by Troy D. Hanson, September 2006. License: GPL */
559 /* modified by Stuart Rackham, 2006, 2009. License: GPL */
560
561 // toclevels = 1..4.
562 toc: function (toclevels) {
563
564 function getText(el) {
565 var text = "";
566 for (var i = el.firstChild; i != null; i = i.nextSibling) {
567 if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
568 text += i.data;
569 else if (i.firstChild != null)
570 text += getText(i);
571 }
572 return text;
573 }
574
575 function TocEntry(el, text, toclevel) {
576 this.element = el;
577 this.text = text;
578 this.toclevel = toclevel;
579 }
580
581 function tocEntries(el, toclevels) {
582 var result = new Array;
583 var re = new RegExp('[hH]([1-'+(toclevels+1)+'])');
584 // Function that scans the DOM tree for header elements (the DOM2
585 // nodeIterator API would be a better technique but not supported by all
586 // browsers).
587 var iterate = function (el) {
588 for (var i = el.firstChild; i != null; i = i.nextSibling) {
589 if (i.nodeType == 1 /* Node.ELEMENT_NODE */) {
590 var mo = re.exec(i.tagName);
591 if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") {
592 result[result.length] = new TocEntry(i, getText(i), mo[1]-1);
593 }
594 iterate(i);
595 }
596 }
597 }
598 iterate(el);
599 return result;
600 }
601
602 var toc = document.getElementById("toc");
603 if (!toc) {
604 return;
605 }
606
607 // Delete existing TOC entries in case we're reloading the TOC.
608 var tocEntriesToRemove = [];
609 var i;
610 for (i = 0; i < toc.childNodes.length; i++) {
611 var entry = toc.childNodes[i];
612 if (entry.nodeName.toLowerCase() == 'div'
613 && entry.getAttribute("class")
614 && entry.getAttribute("class").match(/^toclevel/))
615 tocEntriesToRemove.push(entry);
616 }
617 for (i = 0; i < tocEntriesToRemove.length; i++) {
618 toc.removeChild(tocEntriesToRemove[i]);
619 }
620
621 // Rebuild TOC entries.
622 var entries = tocEntries(document.getElementById("content"), toclevels);
623 for (var i = 0; i < entries.length; ++i) {
624 var entry = entries[i];
625 if (entry.element.id == "")
626 entry.element.id = "_toc_" + i;
627 var a = document.createElement("a");
628 a.href = "#" + entry.element.id;
629 a.appendChild(document.createTextNode(entry.text));
630 var div = document.createElement("div");
631 div.appendChild(a);
632 div.className = "toclevel" + entry.toclevel;
633 toc.appendChild(div);
634 }
635 if (entries.length == 0)
636 toc.parentNode.removeChild(toc);
637 },
638
639
640 /////////////////////////////////////////////////////////////////////
641 // Footnotes generator
642 /////////////////////////////////////////////////////////////////////
643
644 /* Based on footnote generation code from:
645 * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
646 */
647
648 footnotes: function () {
649 // Delete existing footnote entries in case we're reloading the footnodes.
650 var i;
651 var noteholder = document.getElementById("footnotes");
652 if (!noteholder) {
653 return;
654 }
655 var entriesToRemove = [];
656 for (i = 0; i < noteholder.childNodes.length; i++) {
657 var entry = noteholder.childNodes[i];
658 if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote")
659 entriesToRemove.push(entry);
660 }
661 for (i = 0; i < entriesToRemove.length; i++) {
662 noteholder.removeChild(entriesToRemove[i]);
663 }
664
665 // Rebuild footnote entries.
666 var cont = document.getElementById("content");
667 var spans = cont.getElementsByTagName("span");
668 var refs = {};
669 var n = 0;
670 for (i=0; i<spans.length; i++) {
671 if (spans[i].className == "footnote") {
672 n++;
673 var note = spans[i].getAttribute("data-note");
674 if (!note) {
675 // Use [\s\S] in place of . so multi-line matches work.
676 // Because JavaScript has no s (dotall) regex flag.
677 note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1];
678 spans[i].innerHTML =
679 "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n +
680 "' title='View footnote' class='footnote'>" + n + "</a>]";
681 spans[i].setAttribute("data-note", note);
682 }
683 noteholder.innerHTML +=
684 "<div class='footnote' id='_footnote_" + n + "'>" +
685 "<a href='#_footnoteref_" + n + "' title='Return to text'>" +
686 n + "</a>. " + note + "</div>";
687 var id =spans[i].getAttribute("id");
688 if (id != null) refs["#"+id] = n;
689 }
690 }
691 if (n == 0)
692 noteholder.parentNode.removeChild(noteholder);
693 else {
694 // Process footnoterefs.
695 for (i=0; i<spans.length; i++) {
696 if (spans[i].className == "footnoteref") {
697 var href = spans[i].getElementsByTagName("a")[0].getAttribute("href");
698 href = href.match(/#.*/)[0]; // Because IE return full URL.
699 n = refs[href];
700 spans[i].innerHTML =
701 "[<a href='#_footnote_" + n +
702 "' title='View footnote' class='footnote'>" + n + "</a>]";
703 }
704 }
705 }
706 },
707
708 install: function(toclevels) {
709 var timerId;
710
711 function reinstall() {
712 asciidoc.footnotes();
713 if (toclevels) {
714 asciidoc.toc(toclevels);
715 }
716 }
717
718 function reinstallAndRemoveTimer() {
719 clearInterval(timerId);
720 reinstall();
721 }
722
723 timerId = setInterval(reinstall, 500);
724 if (document.addEventListener)
725 document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false);
726 else
727 window.onload = reinstallAndRemoveTimer;
728 }
729
730 }
731 asciidoc.install();
732 /*]]>*/
733 </script>
734 </head>
735 <body class="manpage">
736 <div id="header">
737 <h1>
738 herbstluftwm(1) Manual Page
739 </h1>
740 <h2>NAME</h2>
741 <div class="sectionbody">
742 <p>herbstluftwm -
743 a manual tiling window manager for X
744 </p>
745 </div>
746 </div>
747 <div id="content">
748 <div class="sect1">
749 <h2 id="_synopsis">SYNOPSIS</h2>
750 <div class="sectionbody">
751 <div class="paragraph"><p><strong>herbstluftwm</strong> [<em>OPTION</em> &#8230;]</p></div>
752 </div>
753 </div>
754 <div class="sect1">
755 <h2 id="_description">DESCRIPTION</h2>
756 <div class="sectionbody">
757 <div class="paragraph"><p>Starts the <strong>herbstluftwm</strong> window manager on <em>DISPLAY</em>. It also listens for
758 calls from <a href="herbstclient.html"><strong>herbstclient</strong>(1)</a> and executes them. The list
759 of available <a href="#COMMANDS"><strong>COMMANDS</strong></a> is listed below.</p></div>
760 <div class="paragraph"><p><em>OPTION</em> can be:</p></div>
761 <div class="dlist"><dl>
762 <dt class="hdlist1">
763 <strong>-v</strong>, <strong>--version</strong>
764 </dt>
765 <dd>
766 <p>
767 print version and exit
768 </p>
769 </dd>
770 <dt class="hdlist1">
771 <strong>-h</strong>, <strong>--help</strong>
772 </dt>
773 <dd>
774 <p>
775 print a short help and exit
776 </p>
777 </dd>
778 <dt class="hdlist1">
779 <strong>-c</strong>, <strong>--autostart</strong> <em>PATH</em>
780 </dt>
781 <dd>
782 <p>
783 use <em>PATH</em> as autostart file instead of the one in <em>$XDG_CONFIG_HOME</em>
784 </p>
785 </dd>
786 <dt class="hdlist1">
787 <strong>--replace</strong>
788 </dt>
789 <dd>
790 <p>
791 Replace existing window manager.
792 </p>
793 </dd>
794 <dt class="hdlist1">
795 <strong>-l</strong>, <strong>--locked</strong>
796 </dt>
797 <dd>
798 <p>
799 Initially set the monitors_locked setting to 1
800 </p>
801 </dd>
802 <dt class="hdlist1">
803 <strong>--exit-on-xerror</strong>
804 </dt>
805 <dd>
806 <p>
807 Make herbstluftwm exit whenever xlib reports an error. This may only
808 be activated for automated testing and never for actual sessions.
809 </p>
810 </dd>
811 <dt class="hdlist1">
812 <strong>--no-transparency</strong>
813 </dt>
814 <dd>
815 <p>
816 Disable true transparency.
817 </p>
818 </dd>
819 <dt class="hdlist1">
820 <strong>--no-tag-import</strong>
821 </dt>
822 <dd>
823 <p>
824 Do not preserve the tags (virtual desktops) from a previous running
825 window manager.
826 </p>
827 </dd>
828 <dt class="hdlist1">
829 <strong>--verbose</strong>
830 </dt>
831 <dd>
832 <p>
833 print verbose information to stderr. This can be switched at run-time by
834 the <em>verbose</em> setting.
835 </p>
836 </dd>
837 </dl></div>
838 <div class="paragraph"><p>This manual documents the scripting and configuration interface. For a more
839 verbose introduction see
840 <a href="tutorial.html"><strong>herbstluftwm-tutorial</strong>(7)</a>.</p></div>
841 </div>
842 </div>
843 <div class="sect1">
844 <h2 id="_tiling_algorithm">TILING ALGORITHM</h2>
845 <div class="sectionbody">
846 <div class="paragraph"><p>The basic tiling concept is that the layout is represented by a binary tree. On
847 startup you see one big frame across the entire screen. A frame fulfills
848 exactly one of the following conditions:</p></div>
849 <div class="olist arabic" id="LIST_LAYOUT_ALGORITHMS"><ol class="arabic">
850 <li>
851 <p>
852 Frame contains windows:<br />
853 It shows some clients and arranges them. The available layout algorithms
854 are:
855 </p>
856 <div class="ulist"><ul>
857 <li>
858 <p>
859 <em>vertical</em> - clients are placed below each other
860 </p>
861 </li>
862 <li>
863 <p>
864 <em>horizontal</em> - clients are placed next to each other
865 </p>
866 </li>
867 <li>
868 <p>
869 <em>max</em> - all clients are maximized in this frame
870 </p>
871 </li>
872 <li>
873 <p>
874 <em>grid</em> - clients are arranged in an almost quadratic grid
875 </p>
876 </li>
877 </ul></div>
878 </li>
879 <li>
880 <p>
881 Frame is split into subframes:<br />
882 It is split into exactly two <strong>subframes</strong> in a configurable <em>fraction</em>
883 either in a vertical or horizontal way. So it produces two <strong>frames</strong>
884 which fulfill the same conditions (new frames always are about to
885 contain <strong>windows</strong>). If you split a frame that already contains windows,
886 the windows are inherited by the first new child frame.
887 </p>
888 </li>
889 </ol></div>
890 <div class="paragraph"><p>If a new window appears, it is put in the currently focused frame. Only the
891 leaves of the frame tree can be focused.</p></div>
892 <div class="paragraph"><p>A frame can be removed, it is then merged with its neighbour frame. Due to the
893 layout structure of a binary tree, each frame (i.e. node in binary tree) has
894 exactly one neighbour.</p></div>
895 <div class="paragraph"><p>The analogy to a binary tree is explained the best way with a small example:
896 On startup you have a simple binary tree, with one frame that can contain
897 clients:</p></div>
898 <div class="literalblock">
899 <div class="content">
900 <pre><code>C</code></pre>
901 </div></div>
902 <div class="paragraph"><p>When splitting it (e.g. with the command <em>split vertical 0.5</em>) you will get this:</p></div>
903 <div class="literalblock">
904 <div class="content">
905 <pre><code> V
906 / \
907 C C</code></pre>
908 </div></div>
909 <div class="paragraph"><p>You also can split the left frame horizontally and you will get:</p></div>
910 <div class="literalblock">
911 <div class="content">
912 <pre><code> V
913 / \
914 H C
915 / \
916 C C</code></pre>
917 </div></div>
918 <div class="paragraph"><p>If you change the focus to the client on the right and remove this frame, it
919 will be merged with the left subtree and you will get:</p></div>
920 <div class="literalblock">
921 <div class="content">
922 <pre><code> H
923 / \
924 C C</code></pre>
925 </div></div>
926 <div class="paragraph"><p>The <em>layout</em> command prints the current layout of all tags as a tree.</p></div>
927 </div>
928 </div>
929 <div class="sect1">
930 <h2 id="FRAME_INDEX">FRAME INDEX</h2>
931 <div class="sectionbody">
932 <div class="paragraph"><p>The exact position of a frame in the layout tree may be described by its
933 <strong>index</strong> which is just a string of characters. The lookup algorithm starts at
934 the root frame and interprets the <strong>index</strong> string character by character as
935 follows:</p></div>
936 <div class="ulist"><ul>
937 <li>
938 <p>
939 <code>0</code>: select the first subtree
940 </p>
941 </li>
942 <li>
943 <p>
944 <code>1</code>: select the second subtree
945 </p>
946 </li>
947 <li>
948 <p>
949 <code>.</code>: select the subtree having the focus
950 </p>
951 </li>
952 <li>
953 <p>
954 <code>/</code>: select the subtree not having the focus
955 </p>
956 </li>
957 <li>
958 <p>
959 <code>@</code>: select the frame having the focus. In contrast to <code>.</code>, this passes
960 multiple layers all down to the focused leaf of the frame tree.
961 </p>
962 </li>
963 <li>
964 <p>
965 <code>p</code>: select the parent tree
966 </p>
967 </li>
968 <li>
969 <p>
970 <code>e</code>: finds a suitable empty frame: if the focused frame is not empty, this
971 selects the closest frame that is empty (in any subtree)
972 </p>
973 </li>
974 </ul></div>
975 <div class="paragraph"><p>For example:</p></div>
976 <div class="ulist"><ul>
977 <li>
978 <p>
979 An empty string refers to the root frame
980 </p>
981 </li>
982 <li>
983 <p>
984 <code>00</code> refers to the first subtree of the first subtree of the root frame.
985 </p>
986 </li>
987 <li>
988 <p>
989 <code>1e</code> refers to the first empty frame in the second subtree.
990 </p>
991 </li>
992 <li>
993 <p>
994 <code>/@</code> refers to the focused frame within the unfocused "half" of the frame
995 tree
996 </p>
997 </li>
998 <li>
999 <p>
1000 <code>@p/</code> refers to the sibling of the focused frame
1001 </p>
1002 </li>
1003 </ul></div>
1004 </div>
1005 </div>
1006 <div class="sect1">
1007 <h2 id="_tags">TAGS</h2>
1008 <div class="sectionbody">
1009 <div class="paragraph"><p>Tags are very similar to workspaces, virtual desktops or window groups. Each
1010 tag has one layout. There is a list of tags. You can add or remove tags
1011 dynamically.</p></div>
1012 </div>
1013 </div>
1014 <div class="sect1">
1015 <h2 id="MONITORS">MONITORS</h2>
1016 <div class="sectionbody">
1017 <div class="paragraph"><p>Monitors in <strong>herbstluftwm</strong> are totally independent of the actual physical
1018 screens. This means you can for example split your screen in two virtual
1019 monitors to view two tags at once on a big screen.</p></div>
1020 <div class="paragraph"><p>Each monitor displays exactly one tag on a specified rectangle on the screen.</p></div>
1021 <div class="paragraph"><p>Each monitor may have a name, which can be set via <strong>add_monitor</strong> and
1022 <strong>rename_monitor</strong>. It can be unset with the <strong>rename_monitor</strong> command. A monitor
1023 name is an arbitrary non-empty string which must not start with <code>+</code>, <code>-</code> or any
1024 digit.</p></div>
1025 <div class="paragraph"><p>A monitor can be referenced in different ways:</p></div>
1026 <div class="ulist"><ul>
1027 <li>
1028 <p>
1029 by its absolute index as listed in the <strong>list_monitors</strong> command.
1030 </p>
1031 </li>
1032 <li>
1033 <p>
1034 by its relative index: a <code>+</code> or <code>-</code> followed by a delta, e.g.: +3
1035 </p>
1036 </li>
1037 <li>
1038 <p>
1039 by its relative position to the focused monitor. <code>-l</code> denotes the monitor
1040 left of the focused monitor, <code>-r</code> right of, <code>-u</code> above of, and <code>-d</code> below
1041 of, respectively.
1042 </p>
1043 </li>
1044 <li>
1045 <p>
1046 by "" (an empty string) which represents the current monitor.
1047 </p>
1048 </li>
1049 <li>
1050 <p>
1051 by its name.
1052 </p>
1053 </li>
1054 </ul></div>
1055 </div>
1056 </div>
1057 <div class="sect1">
1058 <h2 id="COMMANDS">COMMANDS</h2>
1059 <div class="sectionbody">
1060 <div class="paragraph"><p><strong>herbstluftwm</strong> is controlled by internal commands, which can be executed via
1061 <a href="herbstclient.html"><strong>herbstclient</strong>(1)</a> or via keybindings.</p></div>
1062 <div class="dlist"><dl>
1063 <dt class="hdlist1">
1064 quit
1065 </dt>
1066 <dd>
1067 <p>
1068 Quits herbstluftwm.
1069 </p>
1070 </dd>
1071 <dt class="hdlist1">
1072 reload
1073 </dt>
1074 <dd>
1075 <p>
1076 Executes the autostart file.
1077 </p>
1078 </dd>
1079 <dt class="hdlist1">
1080 version
1081 </dt>
1082 <dd>
1083 <p>
1084 Prints the version of the running herbstluftwm instance.
1085 </p>
1086 </dd>
1087 <dt class="hdlist1">
1088 echo [<em>ARGS</em> &#8230;]
1089 </dt>
1090 <dd>
1091 <p>
1092 Prints all given <em>ARGS</em> separated by a single space and a newline
1093 afterwards.
1094 </p>
1095 </dd>
1096 <dt class="hdlist1">
1097 true
1098 </dt>
1099 <dd>
1100 <p>
1101 Ignores all arguments and always returns success, i.e. 0.
1102 </p>
1103 </dd>
1104 <dt class="hdlist1">
1105 false
1106 </dt>
1107 <dd>
1108 <p>
1109 Ignores all arguments and always returns failure, i.e. 1.
1110 </p>
1111 </dd>
1112 <dt class="hdlist1">
1113 help [<em>OBJECT</em>|<em>ATTRIBUTE</em>]
1114 </dt>
1115 <dd>
1116 <p>
1117 Print help on a given object or attribute. For example:
1118 </p>
1119 <div class="ulist"><ul>
1120 <li>
1121 <p>
1122 help clients.focus
1123 </p>
1124 </li>
1125 <li>
1126 <p>
1127 help monitors
1128 </p>
1129 </li>
1130 <li>
1131 <p>
1132 help types.color
1133 </p>
1134 </li>
1135 </ul></div>
1136 </dd>
1137 <dt class="hdlist1">
1138 list_commands
1139 </dt>
1140 <dd>
1141 <p>
1142 Lists all available commands.
1143 </p>
1144 </dd>
1145 <dt class="hdlist1">
1146 <a id="list_monitors"></a>list_monitors
1147 </dt>
1148 <dd>
1149 <p>
1150 List currently configured monitors with their index, area (as rectangle),
1151 name (if named) and currently viewed tag.
1152 </p>
1153 </dd>
1154 <dt class="hdlist1">
1155 list_rules
1156 </dt>
1157 <dd>
1158 <p>
1159 Lists all active rules. Each line consists of all the parameters the rule
1160 was called with, plus its label, separated by tabs.
1161 </p>
1162 </dd>
1163 <dt class="hdlist1">
1164 list_keybinds
1165 </dt>
1166 <dd>
1167 <p>
1168 Lists all bound keys with their associated command. Each line consists of
1169 one key combination and the command with its parameters separated by tabs.
1170 </p>
1171 </dd>
1172 </dl></div>
1173 <div class="admonitionblock">
1174 <table><tr>
1175 <td class="icon">
1176 <div class="title">Warning</div>
1177 </td>
1178 <td class="content">Tabs within command parameters are not escaped!</td>
1179 </tr></table>
1180 </div>
1181 <div class="dlist"><dl>
1182 <dt class="hdlist1">
1183 list_clients [<strong>--tag=</strong><em>TAG</em>|<strong>--monitor=</strong><em>MONITOR</em>] [<strong>--frame=</strong><em>FRAME_PATH</em>|<strong>--floating</strong>|<strong>--tiling</strong>] [<strong>--title</strong>]
1184 </dt>
1185 <dd>
1186 <p>
1187 Lists the window ids of all clients on the given <em>TAG</em> or <em>MONITOR</em> (or the
1188 current if unspecified). In addition to that, one can restrict to clients in
1189 a specific frame (<strong>--frame=</strong>) or to tiled or floated clients.
1190 The output is one line per client; if <strong>--title</strong> is given, then in addition
1191 to every client&#8217;s window id, its window title is printed in the same line.
1192 </p>
1193 </dd>
1194 <dt class="hdlist1">
1195 lock
1196 </dt>
1197 <dd>
1198 <p>
1199 Increases the <em>monitors_locked</em> setting. Use this if you want to do multiple
1200 window actions at once (i.e. without repainting between the single steps).
1201 See also: <strong>unlock</strong>
1202 </p>
1203 </dd>
1204 <dt class="hdlist1">
1205 unlock
1206 </dt>
1207 <dd>
1208 <p>
1209 Decreases the <em>monitors_locked</em> setting. If <em>monitors_locked</em> is changed to
1210 0, then all monitors are repainted again. See also: <strong>lock</strong>
1211 </p>
1212 </dd>
1213 <dt class="hdlist1">
1214 keybind <em>KEY</em> <em>COMMAND</em> [<em>ARGS &#8230;</em>]
1215 </dt>
1216 <dd>
1217 <p>
1218 Adds a key binding. If there is already a binding for this <em>KEY</em>,
1219 it will be overwritten. When <em>KEY</em> is pressed, the internal <em>COMMAND</em> (with its
1220 <em>ARGS</em>) is executed. A key binding is a (possibly empty) list of modifiers
1221 (Mod1, Mod2, Mod3, Mod4, Mod5, Alt, Super, Control/Ctrl, Shift) and one key
1222 (see keysymdef.h for a list of keys). Modifiers and the key are concatenated
1223 with <em>-</em> or <em>+</em> as separator. If <em>KEY</em> is prefixed with <em>Release-</em> then the
1224 keybinding is only active during the corresponding key release event: that
1225 is, in order to run the key binding for <em>Release-Mod1-Shift-p</em> one needs to
1226 first press <em>Mod1-Shift-p</em> and then release <em>p</em>. Examples:
1227 </p>
1228 <div class="ulist"><ul>
1229 <li>
1230 <p>
1231 keybind Mod4+Ctrl+q quit
1232 </p>
1233 </li>
1234 <li>
1235 <p>
1236 keybind Mod4-Shift-d attr clients.focus.decorated toggle
1237 </p>
1238 </li>
1239 <li>
1240 <p>
1241 keybind Mod1-Shift-space cycle_layout -1
1242 </p>
1243 </li>
1244 <li>
1245 <p>
1246 <code>keybind Release-Mod4-Shift-p spawn scrot</code> takes a screenshot when the
1247 <code>p</code> is released while Mod4 and Shift are still pressed.
1248 </p>
1249 </li>
1250 </ul></div>
1251 </dd>
1252 <dt class="hdlist1">
1253 keyunbind <em>KEY</em>|<strong>-F</strong>|<strong>--all</strong>
1254 </dt>
1255 <dd>
1256 <p>
1257 Removes the key binding for <em>KEY</em>. The syntax for <em>KEY</em> is defined in
1258 <strong>keybind</strong>. If <strong>-F</strong> or <strong>--all</strong> is given, then all key bindings will be
1259 removed.
1260 </p>
1261 </dd>
1262 <dt class="hdlist1">
1263 mousebind <em>BUTTON</em> <em>ACTION</em> [<em>COMMAND</em> &#8230;]
1264 </dt>
1265 <dd>
1266 <p>
1267 Adds a mouse binding for the floating mode. When <em>BUTTON</em> is pressed, the
1268 specified <em>ACTION</em> will be performed. <em>BUTTON</em> has a similar syntax to the
1269 <em>KEY</em> argument of keybind: It consists of a list of modifiers (separated by
1270 <em>-</em> or <em>+</em>, valid modifiers are listed in the description of <em>keybind</em>) and
1271 exactly one button name:
1272 </p>
1273 <div class="ulist"><ul>
1274 <li>
1275 <p>
1276 <code>B1</code> or <code>Button1</code>
1277 </p>
1278 </li>
1279 <li>
1280 <p>
1281 <code>B2</code> or <code>Button2</code>
1282 </p>
1283 </li>
1284 <li>
1285 <p>
1286 <code>B3</code> or <code>Button3</code>
1287 </p>
1288 </li>
1289 <li>
1290 <p>
1291 <code>B4</code> or <code>Button4</code>
1292 </p>
1293 </li>
1294 <li>
1295 <p>
1296 <code>B5</code> or <code>Button5</code>
1297 </p>
1298 </li>
1299 </ul></div>
1300 </dd>
1301 <dt class="hdlist1">
1302
1303 </dt>
1304 <dd>
1305 <p>
1306 <em>ACTION</em> must be one of the following actions:
1307 </p>
1308 <div class="ulist"><ul>
1309 <li>
1310 <p>
1311 <code>move</code>: Moves the window by dragging the cursor.
1312 </p>
1313 </li>
1314 <li>
1315 <p>
1316 <code>resize</code>: Resizes the window by dragging a corner.
1317 </p>
1318 </li>
1319 <li>
1320 <p>
1321 <code>zoom</code>: Resizes the window into all four directions while keeping the
1322 center of the window constant.
1323 </p>
1324 </li>
1325 <li>
1326 <p>
1327 <code>call</code>: Only calls the specified <em>COMMAND</em> while <code>client.dragged</code>
1328 links to the client on which the <em>BUTTON</em> has been performed.
1329 </p>
1330 </li>
1331 </ul></div>
1332 </dd>
1333 <dt class="hdlist1">
1334
1335 </dt>
1336 <dd>
1337 <p>
1338 While an <em>ACTION</em> is performed, <code>client.dragged</code> is the client which is
1339 dragged. E.g.:
1340 </p>
1341 <div class="ulist"><ul>
1342 <li>
1343 <p>
1344 <code>mousebind Mod1-Button3 zoom</code>
1345 </p>
1346 </li>
1347 <li>
1348 <p>
1349 <code>mousebind Mod1-B4 call substitute WID clients.dragged.winid spawn
1350 transset-df --inc -i WID 0.05</code>
1351 </p>
1352 </li>
1353 <li>
1354 <p>
1355 <code>mousebind Mod1-B5 call substitute WID clients.dragged.winid spawn
1356 transset-df --dec -i WID -m 0.2 0.05</code>
1357 </p>
1358 </li>
1359 </ul></div>
1360 </dd>
1361 <dt class="hdlist1">
1362 drag <em>WINID</em> <em>ACTION</em>
1363 </dt>
1364 <dd>
1365 <p>
1366 Starts dragging the specified client window <em>WINID</em> with the specified
1367 <em>ACTION</em> (see <em>mousebind</em>). E.g. <code>drag '' resize</code> starts resizing the
1368 focused window.
1369 </p>
1370 </dd>
1371 <dt class="hdlist1">
1372 mouseunbind
1373 </dt>
1374 <dd>
1375 <p>
1376 Removes all mouse bindings.
1377 </p>
1378 </dd>
1379 <dt class="hdlist1">
1380 spawn <em>EXECUTABLE</em> [<em>ARGS &#8230;</em>]
1381 </dt>
1382 <dd>
1383 <p>
1384 Spawns an <em>EXECUTABLE</em> with its <em>ARGS</em>. For details see <em>man 3 execvp</em>.
1385 Example:
1386 </p>
1387 <div class="ulist"><ul>
1388 <li>
1389 <p>
1390 spawn xterm -e man 3 execvp
1391 </p>
1392 </li>
1393 </ul></div>
1394 </dd>
1395 <dt class="hdlist1">
1396 wmexec [<em>WINDOWMANAGER</em> [<em>ARGS &#8230;</em>]]
1397 </dt>
1398 <dd>
1399 <p>
1400 Executes the <em>WINDOWMANAGER</em> with its <em>ARGS</em>. This is useful to switch the
1401 window manager in the running session without restarting the session. If no
1402 or an invalid <em>WINDOWMANAGER</em> is given, then herbstluftwm is restarted. For
1403 details see <em>man 3 execvp</em>. Example:
1404 </p>
1405 <div class="ulist"><ul>
1406 <li>
1407 <p>
1408 wmexec openbox
1409 </p>
1410 </li>
1411 </ul></div>
1412 </dd>
1413 <dt class="hdlist1">
1414 chain <em>SEPARATOR</em> [<em>COMMANDS</em> &#8230;]
1415 </dt>
1416 <dd>
1417 <p>
1418 chain expects a <em>SEPARATOR</em> and a list of <em>COMMANDS</em> with arguments. The
1419 commands have to be separated by the specified <em>SEPARATOR</em>. The <em>SEPARATOR</em>
1420 can by any word and only is recognized as the separator between commands if
1421 it exactly matches <em>SEPARATOR</em>. "chain" outputs the appended outputs of all
1422 commands and returns the exit code of the last executed command. Examples
1423 are:
1424 </p>
1425 <div class="ulist"><ul>
1426 <li>
1427 <p>
1428 Create a tag called "foo" and directly use it:<br />
1429 chain , add foo , use foo
1430 </p>
1431 </li>
1432 <li>
1433 <p>
1434 Rotate the layout clockwise:<br />
1435 chain .-. lock .-. rotate .-. rotate .-. rotate .-. unlock
1436 </p>
1437 </li>
1438 </ul></div>
1439 </dd>
1440 <dt class="hdlist1">
1441
1442 </dt>
1443 <dd>
1444 <p>
1445 Counterexamples are:
1446 </p>
1447 <div class="ulist"><ul>
1448 <li>
1449 <p>
1450 This will only create a tag called "foo,":<br />
1451 chain , add foo, use foo
1452 </p>
1453 </li>
1454 <li>
1455 <p>
1456 Separator "." defined, but "," is used:<br />
1457 chain . add foo , use foo
1458 </p>
1459 </li>
1460 </ul></div>
1461 </dd>
1462 <dt class="hdlist1">
1463 and <em>SEPARATOR</em> [<em>COMMANDS</em> &#8230;]
1464 </dt>
1465 <dd>
1466 <p>
1467 "and" behaves like the chain command but only executes the specified
1468 <em>COMMANDS</em> while the commands return the exit code 0.
1469 </p>
1470 </dd>
1471 <dt class="hdlist1">
1472 or <em>SEPARATOR</em> [<em>COMMANDS</em> &#8230;]
1473 </dt>
1474 <dd>
1475 <p>
1476 "or" behaves like the chain command but only executes the specified
1477 <em>COMMANDS</em> until one command returns the exit code 0.
1478 </p>
1479 </dd>
1480 <dt class="hdlist1">
1481 ! <em>COMMAND</em>
1482 </dt>
1483 <dd>
1484 <p>
1485 "!" executes the provided command, but inverts its return value. If the
1486 provided command returns a nonzero, "!" returns a 0, if the command returns
1487 a zero, "!" returns a 1.
1488 </p>
1489 </dd>
1490 <dt class="hdlist1">
1491 try <em>COMMAND</em>
1492 </dt>
1493 <dd>
1494 <p>
1495 "try" executes the provided command, prints its output, but always returns
1496 success, i.e. 0.
1497 </p>
1498 </dd>
1499 <dt class="hdlist1">
1500 silent <em>COMMAND</em>
1501 </dt>
1502 <dd>
1503 <p>
1504 "silent" executes the provided command, but discards its output and only
1505 returns its exit code.
1506 </p>
1507 </dd>
1508 <dt class="hdlist1">
1509 focus_nth <em>INDEX</em>
1510 </dt>
1511 <dd>
1512 <p>
1513 Focuses the nth window in a frame. The first window has <em>INDEX</em> 0. If
1514 <em>INDEX</em> is negative or greater than the last window index, then the last
1515 window is focused.
1516 </p>
1517 </dd>
1518 <dt class="hdlist1">
1519 cycle [<em>DELTA</em>]
1520 </dt>
1521 <dd>
1522 <p>
1523 Cycles the selection within the current frame by <em>DELTA</em> or cycles through
1524 the clients in the floating layer if that is focused. If <em>DELTA</em> is omitted,
1525 <em>DELTA</em> = 1 will be used. <em>DELTA</em> can be negative; <em>DELTA</em> = -1 means: cycle
1526 in the opposite direction by 1.
1527 </p>
1528 </dd>
1529 <dt class="hdlist1">
1530 cycle_all [<strong>--skip-invisible</strong>] [<em>DIRECTION</em>]
1531 </dt>
1532 <dd>
1533 <p>
1534 Cycles through all non-minimized windows and frames on the current tag.
1535 <em>DIRECTION</em> = 1 means forward (default value), <em>DIRECTION</em> = -1 means backward, <em>DIRECTION</em>
1536 = 0 has no effect. If there are multiple windows within one frame, then it
1537 acts similar to the <em>cycle</em> command. If <strong>--skip-invisible</strong> is given,
1538 then this only cycles through all visible windows and skips invisible
1539 windows in the max layout (the flag only affects invisible windows in the
1540 max layout; minimized windows are always skipped). After each focus
1541 change, the focused window is raised.
1542 </p>
1543 </dd>
1544 <dt class="hdlist1">
1545 cycle_frame [<em>DIRECTION</em>]
1546 </dt>
1547 <dd>
1548 <p>
1549 Cycles through all frames on the current tag. <em>DIRECTION</em> = 1 means forward,
1550 <em>DIRECTION</em> = -1 means backward, <em>DIRECTION</em> = 0 has no effect. <em>DIRECTION</em>
1551 defaults to 1.
1552 </p>
1553 </dd>
1554 <dt class="hdlist1">
1555 cycle_layout [<em>DELTA</em> [<em>LAYOUTS</em> &#8230;]]
1556 </dt>
1557 <dd>
1558 <p>
1559 Cycles the layout algorithm in the current frame by <em>DELTA</em>. <em>DELTA</em>
1560 defaults to 1. You can find a <a href="#LIST_LAYOUT_ALGORITHMS">list of layout algorithms</a> above. If a list of <em>LAYOUTS</em> is given, cycle_layout will cycle
1561 through those instead of the default layout algorithm list. This is done by
1562 finding the first occurrence of the current layout in <em>LAYOUTS</em> and picking
1563 the next layout according to <em>DELTA</em>. If the current layout doesn&#8217;t occur in
1564 <em>LAYOUTS</em>, the first entry is picked. Example:
1565 </p>
1566 <div class="ulist"><ul>
1567 <li>
1568 <p>
1569 cycle_layout -1
1570 </p>
1571 </li>
1572 <li>
1573 <p>
1574 cycle_layout 1 vertical grid
1575 </p>
1576 </li>
1577 </ul></div>
1578 </dd>
1579 <dt class="hdlist1">
1580 set_layout <em>LAYOUT</em>
1581 </dt>
1582 <dd>
1583 <p>
1584 Sets the layout algorithm in the current frame to <em>LAYOUT</em>. For the list of
1585 layouts, check the <a href="#LIST_LAYOUT_ALGORITHMS">list of layout algorithms above</a>.
1586 </p>
1587 </dd>
1588 <dt class="hdlist1">
1589 close <em>WINID</em>
1590 </dt>
1591 <dd>
1592 <p>
1593 Closes the specified window gracefully or the focused window if none is
1594 given explicitly. See the <a href="#WINDOW_IDS">section on WINDOW IDS</a> how to
1595 reference a certain window.
1596 </p>
1597 </dd>
1598 <dt class="hdlist1">
1599 close_or_remove
1600 </dt>
1601 <dd>
1602 <p>
1603 Closes the focused window or removes the current frame if no window is
1604 focused. In floating mode, this acts as the close command.
1605 </p>
1606 </dd>
1607 <dt class="hdlist1">
1608 close_and_remove
1609 </dt>
1610 <dd>
1611 <p>
1612 Closes the focused window and removes the current frame if no other window
1613 is present in that frame. In floating mode, this acts as the close command.
1614 </p>
1615 </dd>
1616 <dt class="hdlist1">
1617 split <em>ALIGN</em> [<em>FRACTION</em> [<em>FRAMEINDEX</em>]]
1618 </dt>
1619 <dd>
1620 <p>
1621 Splits the focused frame (or the frame specified by <em>FRAMEINDEX</em>, see the
1622 section <a href="#FRAME_INDEX"><strong>frame index</strong></a>) into two subframes with a specified
1623 <em>FRACTION</em> between 0 and 1 which defaults to 0.5. <em>ALIGN</em> is one of
1624 <br />
1625 </p>
1626 <div class="ulist"><ul>
1627 <li>
1628 <p>
1629 <em>top</em>
1630 </p>
1631 </li>
1632 <li>
1633 <p>
1634 <em>bottom</em> (= <em>vertical</em>)
1635 </p>
1636 </li>
1637 <li>
1638 <p>
1639 <em>left</em>
1640 </p>
1641 </li>
1642 <li>
1643 <p>
1644 <em>right</em> (= <em>horizontal</em>)
1645 </p>
1646 </li>
1647 <li>
1648 <p>
1649 <em>explode</em>
1650 </p>
1651 </li>
1652 <li>
1653 <p>
1654 <em>auto</em> (split along longest side)
1655 <br />
1656 It specifies which of the two halves will be empty
1657 after the split. The other half will be occupied by the currently focused
1658 frame. After splitting, the originally focused frame will stay focused.
1659 One special <em>ALIGN</em> mode is <em>explode</em>, which splits the frame in such a way
1660 that the window focus, window sizes, and positions are kept as much as
1661 possible (so the default <em>FRACTION</em> is not always 0.5, unlike for the other
1662 <em>ALIGN</em> modes). Example:
1663 </p>
1664 </li>
1665 <li>
1666 <p>
1667 split explode
1668 </p>
1669 </li>
1670 <li>
1671 <p>
1672 split bottom 0.5
1673 </p>
1674 </li>
1675 <li>
1676 <p>
1677 split horiz 0.3
1678 </p>
1679 </li>
1680 <li>
1681 <p>
1682 split vertical 0.5
1683 </p>
1684 </li>
1685 <li>
1686 <p>
1687 split h
1688 </p>
1689 </li>
1690 <li>
1691 <p>
1692 split top 0.2 '' (splits the root frame)
1693 </p>
1694 </li>
1695 </ul></div>
1696 </dd>
1697 <dt class="hdlist1">
1698 focus [<em>-i</em>|<em>-e</em>|<strong>--level=</strong><em>LEVEL</em>] <em>DIRECTION</em>
1699 </dt>
1700 <dd>
1701 <p>
1702 Moves the focus from current frame to the next frame or client in
1703 <em>DIRECTION</em> which is in:
1704 <br />
1705 </p>
1706 <div class="ulist"><ul>
1707 <li>
1708 <p>
1709 l[eft]
1710 </p>
1711 </li>
1712 <li>
1713 <p>
1714 r[ight]
1715 </p>
1716 </li>
1717 <li>
1718 <p>
1719 u[p]
1720 </p>
1721 </li>
1722 <li>
1723 <p>
1724 d[own]
1725 </p>
1726 </li>
1727 </ul></div>
1728 </dd>
1729 </dl></div>
1730 <div class="dlist"><dl>
1731 <dt class="hdlist1">
1732
1733 </dt>
1734 <dd>
1735 <p>
1736 If there is no client within this frame or <em>LEVEL</em> is <em>frame</em>, then
1737 the next frame in specified <em>DIRECTION</em> will be focused.
1738 If <em>LEVEL</em> is <em>visible</em> or default_direction_external_only is unset,
1739 then the next client in <em>DIRECTION</em> can also be within the same frame, but
1740 has to be visible. For <em>tabs</em> <em>LEVEL</em>, the next client may be hidden in a
1741 tabbed_max layout. With <em>all</em> any client within a max layout maybe selected
1742 before focusing the next frame. The flag <em>-i</em> is an alias for
1743 <em>--level=visible</em> and <em>-e</em> for <em>--level=frame</em>.<br />
1744 <br />
1745 The direction between frames is defined as follows: The focus is in a leaf
1746 of the binary tree. Each inner node in the tree remembers the last focus
1747 direction (child 0 or child 1). The algorithm uses the shortest possible way
1748 from the leaf (the currently focused frame) to the root until it is possible
1749 to change focus in the specified <em>DIRECTION</em>. From there the focus goes back
1750 to the leaf.<br />
1751 <br />
1752 Example: The focus is at frame A. After executing <em>focus right</em> focus will
1753 be at frame C.
1754 </p>
1755 <div class="listingblock">
1756 <div class="content">
1757 <pre><code> Tree: H,0 Screen: ┌─────┐┌─────┐ (before)
1758 ╱ ╲ │ B ││ C │
1759 ╱ ╲ └─────┘└─────┘
1760 V,1 V,0 ┌─────┐┌─────┐
1761 ╱ ╲ ╱ ╲ │ A* ││ D │
1762 B A* C D └─────┘└─────┘
1763
1764 Tree: H,1 Screen: ┌─────┐┌─────┐ (after focus right)
1765 ╱ ╲ │ B ││ C* │
1766 ╱ ╲ └─────┘└─────┘
1767 V,1 V,0 ┌─────┐┌─────┐
1768 ╱ ╲ ╱ ╲ │ A ││ D │
1769 B A C* D └─────┘└─────┘</code></pre>
1770 </div></div>
1771 </dd>
1772 <dt class="hdlist1">
1773
1774 </dt>
1775 <dd>
1776 <p>
1777 If the currently focused client is floated, then the next floating window in
1778 the specified direction is focused and raised.
1779 </p>
1780 </dd>
1781 <dt class="hdlist1">
1782
1783 </dt>
1784 <dd>
1785 <p>
1786 If <em>focus_crosses_monitor_boundaries</em> is set and no client or frame is found
1787 in the specified <em>DIRECTION</em>, then the next monitor in that <em>DIRECTION</em> is
1788 focused.
1789 </p>
1790 </dd>
1791 <dt class="hdlist1">
1792 focus_edge [<em>-i</em>|<em>-e</em>] <em>DIRECTION</em>
1793 </dt>
1794 <dd>
1795 <p>
1796 Focuses the window on the edge of the tag in the specified <em>DIRECTION</em>. The
1797 <em>DIRECTIONS</em> and <em>-e</em> behave as specified at the <em>focus</em> command.<br />
1798 <br />
1799 If <em>-i</em> (internal) is given or default_direction_external_only is unset,
1800 then the window on the edge of the tag will be focused. Else, only the frame
1801 on the edge of the tag will be focused, and the window that was last focused
1802 in that frame will be focused.
1803 </p>
1804 </dd>
1805 <dt class="hdlist1">
1806 raise <em>WINID</em>
1807 </dt>
1808 <dd>
1809 <p>
1810 Raises the specified managed or unmanaged window. Managed windows are only
1811 moved within the tag&#8217;s stack (as reported by the <em>stack</em> command), and unmanaged
1812 windows are raised globally, i.e. are raised above all managed windows.
1813 See the <a href="#WINDOW_IDS">section on WINDOW IDS</a> on how to reference a certain
1814 window. Its result is only visible for floating windows and unmanaged windows.
1815 </p>
1816 </dd>
1817 <dt class="hdlist1">
1818 lower <em>WINID</em>
1819 </dt>
1820 <dd>
1821 <p>
1822 Lowers the specified managed or unmanaged window, analogously to the <em>raise</em>
1823 command: managed windows are lowered within the stack of floating windows
1824 (with no effect for tiled windows) and unmanaged windows are moved below all
1825 managed windows (for example, it can be used to lower desktop windows).
1826 </p>
1827 </dd>
1828 <dt class="hdlist1">
1829 jumpto <em>WINID</em>
1830 </dt>
1831 <dd>
1832 <p>
1833 Puts the focus to the specified window. See the <a href="#WINDOW_IDS">section on WINDOW IDS</a> on how to reference a certain window.
1834 </p>
1835 </dd>
1836 <dt class="hdlist1">
1837 bring <em>WINID</em>
1838 </dt>
1839 <dd>
1840 <p>
1841 Moves the specified window to the current frame and focuses it. Floating
1842 windows are brought to the current tag, but keep their floating state.
1843 See the <a href="#WINDOW_IDS">section on WINDOW IDS</a> on how to reference a
1844 certain window.
1845 </p>
1846 </dd>
1847 <dt class="hdlist1">
1848 resize <em>DIRECTION</em> [<em>FRACTIONDELTA</em>]
1849 </dt>
1850 <dd>
1851 <p>
1852 Changes the size of the focused frame in the specified <em>DIRECTION</em> by
1853 <em>FRACTIONDELTA</em> (which defaults to 0.02 if none is supplied). <em>DIRECTION</em>
1854 behaves as specified at the <em>focus</em> command. If a floating window is
1855 focused, it grows towards next edge, i.e. either the edge of the next
1856 window or the monitor edge in the specified <em>DIRECTION</em> (<em>FRACTIONDELTA</em>
1857 is ignored in that case). Example:
1858 </p>
1859 <div class="ulist"><ul>
1860 <li>
1861 <p>
1862 resize right +0.05
1863 </p>
1864 </li>
1865 <li>
1866 <p>
1867 resize down -0.1
1868 </p>
1869 </li>
1870 </ul></div>
1871 </dd>
1872 <dt class="hdlist1">
1873 shift_edge [<em>-i</em>|<em>-e</em>] <em>DIRECTION</em>
1874 </dt>
1875 <dd>
1876 <p>
1877 Shifts the focused window to the the edge of a tag in the specified
1878 <em>DIRECTION</em>. The <em>DIRECTIONS</em> behave as specified at the <em>focus</em> command and
1879 <em>-i</em> and <em>-e</em> behave as specified at the <em>focus_edge</em> command.
1880 </p>
1881 </dd>
1882 <dt class="hdlist1">
1883 shift [<em>-i</em>|<em>-e</em>] <em>DIRECTION</em>
1884 </dt>
1885 <dd>
1886 <p>
1887 Shifts the focused window to the next frame in the specified <em>DIRECTION</em>.
1888 The <em>DIRECTIONS</em> and <em>-i</em>|<em>-e</em> behave as specified at the <em>focus</em> command.
1889 If the focused client is floated instead of being tiled, then client is
1890 shifted to the next window or screen edge. If the window cannot be moved
1891 and the setting <em>focus_crosses_monitor_boundaries</em> is activated, then the
1892 window is moved to the monitor in the specified <em>DIRECTION</em>.
1893 </p>
1894 </dd>
1895 <dt class="hdlist1">
1896 shift_to_monitor <em>MONITOR</em>
1897 </dt>
1898 <dd>
1899 <p>
1900 Moves the focused window to the tag on the specified <em>MONITOR</em>.
1901 See the <a href="#MONITORS">MONITORS section</a>, how to address a monitor.
1902 </p>
1903 </dd>
1904 <dt class="hdlist1">
1905 remove
1906 </dt>
1907 <dd>
1908 <p>
1909 Removes focused frame and merges its windows to its closest neighbour frame.
1910 </p>
1911 </dd>
1912 <dt class="hdlist1">
1913 rotate
1914 </dt>
1915 <dd>
1916 <p>
1917 Rotates the layout on the focused tag counterclockwise by 90 degrees. This
1918 only manipulates the alignment of frames, not the content of them.
1919 </p>
1920 </dd>
1921 <dt class="hdlist1">
1922 mirror [<em>vertical</em>|<em>horizontal</em>|<em>both</em>]
1923 </dt>
1924 <dd>
1925 <p>
1926 Mirrors the layout on the focused tag vertically, horizontally, or both; the
1927 default is <em>horizontal</em>. This command only manipulates the alignment of
1928 frames, not the content of them.
1929 </p>
1930 </dd>
1931 <dt class="hdlist1">
1932 set <em>NAME</em> <em>VALUE</em>
1933 </dt>
1934 <dd>
1935 <p>
1936 Sets the specified setting <em>NAME</em> to <em>VALUE</em>. Allowed values for boolean
1937 settings are <em>on</em> or <em>true</em> for on, <em>off</em> or <em>false</em> for off, <em>toggle</em> to
1938 toggle its value. All <a href="#doc_cls_settings"><strong>settings</strong></a> are listed in the
1939 <a href="#doc_cls_settings">section below</a>.
1940 </p>
1941 </dd>
1942 <dt class="hdlist1">
1943 get <em>NAME</em>
1944 </dt>
1945 <dd>
1946 <p>
1947 Prints the value of setting <em>NAME</em>. All <a href="#doc_cls_settings"><strong>settings</strong></a>
1948 are listed in the <a href="#doc_cls_settings">section below</a>.
1949 </p>
1950 </dd>
1951 <dt class="hdlist1">
1952 toggle <em>NAME</em>
1953 </dt>
1954 <dd>
1955 <p>
1956 Toggles the setting <em>NAME</em> if it&#8217;s a boolean setting.
1957 </p>
1958 </dd>
1959 <dt class="hdlist1">
1960 cycle_value <em>PATH</em> <em>VALUES</em> &#8230;
1961 </dt>
1962 <dd>
1963 <p>
1964 Cycles value of the attribute <em>PATH</em> through <em>VALUES</em>: I.e. it searches the
1965 first occurrence of the current value in <em>VALUES</em> and changes the value to
1966 the next in the list or to the first one if the end is reached or current
1967 value wasn&#8217;t found. For compatibility reasons, <em>PATH</em> can also be the name of
1968 a setting. Examples:
1969 </p>
1970 <div class="ulist"><ul>
1971 <li>
1972 <p>
1973 cycle_value settings.frame_gap 0 5 10 15
1974 </p>
1975 </li>
1976 <li>
1977 <p>
1978 cycle_value theme.active.inner_color red green blue
1979 </p>
1980 </li>
1981 <li>
1982 <p>
1983 the command <em>cycle_layout +1</em> is equivalent to
1984 <em>cycle_value tags.focus.tiling.focused_frame.algorithm</em>
1985 </p>
1986 </li>
1987 </ul></div>
1988 </dd>
1989 <dt class="hdlist1">
1990 cycle_monitor [<em>DELTA</em>]
1991 </dt>
1992 <dd>
1993 <p>
1994 Cycles monitor focused by <em>DELTA</em>. <em>DELTA</em> defaults to 1.
1995 </p>
1996 </dd>
1997 <dt class="hdlist1">
1998 focus_monitor <em>MONITOR</em>
1999 </dt>
2000 <dd>
2001 <p>
2002 Puts focus to the specified monitor. See the <a href="#MONITORS">MONITORS section</a>,
2003 how to address a monitor.
2004 </p>
2005 </dd>
2006 <dt class="hdlist1">
2007 add <em>TAG</em>
2008 </dt>
2009 <dd>
2010 <p>
2011 Creates a new empty tag named <em>TAG</em>.
2012 </p>
2013 </dd>
2014 <dt class="hdlist1">
2015 use <em>TAG</em>
2016 </dt>
2017 <dd>
2018 <p>
2019 Switches the focused monitor to specified <em>TAG</em>.
2020 </p>
2021 </dd>
2022 <dt class="hdlist1">
2023 use_index <em>INDEX</em> [<strong>--skip-visible</strong>]
2024 </dt>
2025 <dd>
2026 <p>
2027 Switches the focused monitor to the <em>TAG</em> with the specified <em>INDEX</em>. If
2028 <em>INDEX</em> starts with <code>+</code> or <code>-</code>, then <em>INDEX</em> is treated relative to the
2029 current <em>TAG</em>. If <strong>--skip-visible</strong> is passed and <em>INDEX</em> is relative, then
2030 tags that are already visible on a monitor are skipped. E.g. this cycles
2031 backwards through the tags:
2032 </p>
2033 <div class="ulist"><ul>
2034 <li>
2035 <p>
2036 use_index -1 --skip-visible
2037 </p>
2038 </li>
2039 </ul></div>
2040 </dd>
2041 <dt class="hdlist1">
2042 use_previous
2043 </dt>
2044 <dd>
2045 <p>
2046 Switches the focused monitor to the previously viewed tag.
2047 </p>
2048 </dd>
2049 <dt class="hdlist1">
2050 merge_tag <em>TAG</em> [<em>TARGET</em>]
2051 </dt>
2052 <dd>
2053 <p>
2054 Removes tag named <em>TAG</em> and moves all its windows to tag <em>TARGET</em>. If
2055 <em>TARGET</em> is omitted, the focused tag will be used.
2056 </p>
2057 </dd>
2058 <dt class="hdlist1">
2059 rename <em>OLDTAG</em> <em>NEWTAG</em>
2060 </dt>
2061 <dd>
2062 <p>
2063 Renames tag named <em>OLDTAG</em> to <em>NEWTAG</em>.
2064 </p>
2065 </dd>
2066 <dt class="hdlist1">
2067 move <em>TAG</em>
2068 </dt>
2069 <dd>
2070 <p>
2071 Moves the focused window to the tag named <em>TAG</em>.
2072 </p>
2073 </dd>
2074 <dt class="hdlist1">
2075 move_index <em>INDEX</em> [<strong>--skip-visible</strong>]
2076 </dt>
2077 <dd>
2078 <p>
2079 Moves the focused window to the tag specified by <em>INDEX</em>. Analogical to the
2080 argument for <strong>use_index</strong>: If <em>INDEX</em> starts with <code>+</code> or <code>-</code>, then it is
2081 treated relative. If <strong>--skip-visible</strong> is passed with a relative index, then
2082 already visible tags are skipped.
2083 </p>
2084 </dd>
2085 <dt class="hdlist1">
2086 lock_tag [<em>MONITOR</em>]
2087 </dt>
2088 <dd>
2089 <p>
2090 Lock the tag switching on the specified monitor. If no
2091 argument is given, the currently focused monitor is used. When the
2092 tag switching is disabled for a monitor, the commands <strong>use</strong> and
2093 <strong>use_index</strong> have no effect when executed there. When
2094 <em>swap_monitors_to_get_tag</em> is enabled, switching to a tag which
2095 is located on a locked monitor, switches to that monitor instead of
2096 stealing it from there. The lock state of a monitor is indicated
2097 by "[LOCKED]" in the <strong>list_monitors</strong> output.
2098 </p>
2099 </dd>
2100 <dt class="hdlist1">
2101 unlock_tag [<em>MONITOR</em>]
2102 </dt>
2103 <dd>
2104 <p>
2105 Re-enables the tag switching on the specified monitor. If no argument is
2106 given, the currently focused monitor is used. This is the reverse operation
2107 to <strong>lock_tag</strong> and has no further side effects but removing this lock.
2108 </p>
2109 </dd>
2110 <dt class="hdlist1">
2111 disjoin_rects <em>RECTS</em> &#8230;
2112 </dt>
2113 <dd>
2114 <p>
2115 Takes a list of rectangles and splits them into smaller pieces until all
2116 rectangles are disjoint, the result rectangles are printed line by line.
2117 This command does not modify the current list of monitors! So this can be
2118 useful in combination with the set_monitors command.
2119 </p>
2120 <div class="ulist"><ul>
2121 <li>
2122 <p>
2123 E.g. <code>disjoin_rects 600x400+0+0 600x400+300+250</code> prints this:
2124 </p>
2125 <div class="listingblock">
2126 <div class="content">
2127 <pre><code>300x150+300+250
2128 600x250+0+0
2129 300x150+0+250
2130 300x150+600+250
2131 600x250+300+400</code></pre>
2132 </div></div>
2133 </li>
2134 <li>
2135 <p>
2136 In the above example two monitors are split into 5 monitors, which
2137 graphically means:
2138 </p>
2139 <div class="listingblock">
2140 <div class="content">
2141 <pre><code>┌──────┐ ┌──────┐
2142 │ │ └──────┘
2143 │ ┌───┼───┐ ┌─┐┌───┐┌──┐
2144 │ │ │ │ disjoin │ ││ ││ │
2145 └──┼───┘ │ ─────────&gt; └─┘└───┘└──┘
2146 │ │ ┌───────┐
2147 └───────┘ └───────┘</code></pre>
2148 </div></div>
2149 </li>
2150 </ul></div>
2151 </dd>
2152 <dt class="hdlist1">
2153 set_monitors <em>RECTS</em> &#8230;
2154 </dt>
2155 <dd>
2156 <p>
2157 Sets the list of monitors <strong>exactly</strong> to the list of given rectangles:
2158 </p>
2159 <div class="ulist"><ul>
2160 <li>
2161 <p>
2162 The i&#8217;th existing monitor is moved to the i&#8217;th given <em>RECT</em>
2163 </p>
2164 </li>
2165 <li>
2166 <p>
2167 New monitors are created if there are more <em>RECTS</em> than monitors
2168 </p>
2169 </li>
2170 <li>
2171 <p>
2172 Existing monitors are deleted if there are more monitors than <em>RECTS</em>
2173 </p>
2174 </li>
2175 </ul></div>
2176 </dd>
2177 <dt class="hdlist1">
2178 detect_monitors <em>-l</em>|<em>--list</em>|<em>--list-all</em>|<em>--no-disjoin</em>
2179 </dt>
2180 <dd>
2181 <p>
2182 Sets the list of monitors to the physically available monitors. If both
2183 Xinerama and xrandr are missing, it will fall back to one monitor across the
2184 entire screen. If the detected monitors overlap, the will be split into more
2185 monitors that are disjoint but cover the same area using <code>disjoin_rects</code>.
2186 <br />
2187 If <em>-l</em> or <em>--list</em> is passed, the list of rectangles of detected physical
2188 monitors is printed. So <code>hc detect_monitors</code> is equivalent to the bash
2189 command <code>hc set_monitors $(hc disjoin_rects $(hc detect_monitors -l))</code>.
2190 <br />
2191 If <em>--list-all</em> is passed, then it is printed which multimonitor detection
2192 (xinerama, xrandr) has which set of physical monitors.
2193 </p>
2194 </dd>
2195 <dt class="hdlist1">
2196 add_monitor <em>RECT</em> [<em>TAG</em> [<em>NAME</em>]]
2197 </dt>
2198 <dd>
2199 <p>
2200 Adds a monitor on the specified rectangle <em>RECT</em> and displays <em>TAG</em> on it.
2201 <em>TAG</em> currently must not be displayed on any other monitor. <em>RECT</em> is a
2202 string of the form <em>WxH±X±Y</em>. If no or an empty <em>TAG</em> is given, then any
2203 free tag will be chosen. If a <em>NAME</em> is given, you can reference to this
2204 monitor by its name instead of using an index. Example:
2205 </p>
2206 <div class="ulist"><ul>
2207 <li>
2208 <p>
2209 add_monitor 1024x768-20+0 mynewtag main
2210 </p>
2211 </li>
2212 </ul></div>
2213 </dd>
2214 <dt class="hdlist1">
2215 remove_monitor <em>MONITOR</em>
2216 </dt>
2217 <dd>
2218 <p>
2219 Removes the specified monitor.
2220 </p>
2221 </dd>
2222 <dt class="hdlist1">
2223 move_monitor <em>MONITOR</em> <em>RECT</em> [<em>PADUP</em> [<em>PADRIGHT</em> [<em>PADDOWN</em> [<em>PADLEFT</em>]]]]
2224 </dt>
2225 <dd>
2226 <p>
2227 Moves the specified monitor to rectangle <em>RECT</em>. <em>RECT</em> is defined as in
2228 <em>add_monitor</em>. If no or an empty pad is given, it is not changed.
2229 </p>
2230 </dd>
2231 <dt class="hdlist1">
2232 raise_monitor [<em>MONITOR</em>]
2233 </dt>
2234 <dd>
2235 <p>
2236 Raises the specified monitor or the current one if <em>MONITOR</em> is
2237 omitted.
2238 </p>
2239 </dd>
2240 <dt class="hdlist1">
2241 rename_monitor <em>MONITOR</em> <em>NAME</em>
2242 </dt>
2243 <dd>
2244 <p>
2245 (Re)names an already existing monitor. If <em>NAME</em> is empty, it removes the
2246 monitor&#8217;s name.
2247 </p>
2248 </dd>
2249 <dt class="hdlist1">
2250 stack
2251 </dt>
2252 <dd>
2253 <p>
2254 Prints the stack of monitors with the visible tags and their layers as a
2255 tree. The order of the printed stack is top to bottom. The style is
2256 configured by the <em>tree_style</em> setting.
2257 </p>
2258 </dd>
2259 <dt class="hdlist1">
2260 monitor_rect [[-p] <em>MONITOR</em>]
2261 </dt>
2262 <dd>
2263 <p>
2264 Prints the rectangle of the specified monitor in the format: <strong>X Y W H</strong><br />
2265 If no <em>MONITOR</em> or <em>cur</em> is given, then the current monitor is used. If <em>-p</em>
2266 is supplied, then the remaining rect without the pad around this monitor
2267 is printed.
2268 </p>
2269 </dd>
2270 <dt class="hdlist1">
2271 pad <em>MONITOR</em> [<em>PADUP</em> [<em>PADRIGHT</em> [<em>PADDOWN</em> [<em>PADLEFT</em>]]]]
2272 </dt>
2273 <dd>
2274 <p>
2275 Sets the pad of specified monitor to the specified padding. If no or an
2276 empty padding is given, it is not changed.
2277 </p>
2278 </dd>
2279 <dt class="hdlist1">
2280 list_padding [<em>MONITOR</em>]
2281 </dt>
2282 <dd>
2283 <p>
2284 Lists the padding of the specified monitor, or the currently focused monitor
2285 if no monitor is given.
2286 </p>
2287 </dd>
2288 <dt class="hdlist1">
2289 layout [<em>TAG</em> [<em>INDEX</em>]]
2290 </dt>
2291 <dd>
2292 <p>
2293 Prints the layout of frame with <em>INDEX</em> on <em>TAG</em>, in a nice tree style.
2294 Its style is defined by the <em>tree_style</em> setting. If no <em>TAG</em> is given,
2295 the current tag is used. If no <em>INDEX</em> is given, the root frame is used. To
2296 specify <em>INDEX</em> without specifying <em>TAG</em> (i.e. use current tag), pass an
2297 empty string as <em>TAG</em>.
2298 <br />
2299 An example output is:
2300 </p>
2301 <div class="listingblock">
2302 <div class="content">
2303 <pre><code>╾─┐ horizontal 50% selection=1
2304 ├─╼ vertical: 0xe00009
2305 └─┐ vertical 50% selection=0
2306 ├─╼ vertical: 0xa00009 [FOCUS]
2307 └─╼ vertical: 0x1000009</code></pre>
2308 </div></div>
2309 </dd>
2310 <dt class="hdlist1">
2311 dump [<em>TAG</em> [<em>INDEX</em>]]
2312 </dt>
2313 <dd>
2314 <p>
2315 Prints the same information as the <em>layout</em> command but in a machine
2316 readable format. Its output can be read back with the <em>load</em> command.
2317 <br />
2318 An example output (formatted afterwards) is:
2319 </p>
2320 <div class="listingblock">
2321 <div class="content">
2322 <pre><code>(split horizontal:0.500000:1
2323 (clients vertical:0 0xe00009)
2324 (split vertical:0.500000:1
2325 (clients vertical:0 0xa00009)
2326 (clients vertical:0 0x1000009)))</code></pre>
2327 </div></div>
2328 </dd>
2329 <dt class="hdlist1">
2330 load [<em>TAG</em>] <em>LAYOUT</em>
2331 </dt>
2332 <dd>
2333 <p>
2334 Loads a given <em>LAYOUT</em> description to specified <em>TAG</em> or current tag if no
2335 <em>TAG</em> is given.
2336 </p>
2337 </dd>
2338 </dl></div>
2339 <div class="admonitionblock">
2340 <table><tr>
2341 <td class="icon">
2342 <div class="title">Caution</div>
2343 </td>
2344 <td class="content"><em>LAYOUT</em> is exactly one parameter. If you are calling it manually
2345 from your shell or from a script, quote it properly!</td>
2346 </tr></table>
2347 </div>
2348 <div class="dlist"><dl>
2349 <dt class="hdlist1">
2350 complete <em>POSITION</em> [<em>COMMAND</em> <em>ARGS &#8230;</em>]
2351 </dt>
2352 <dd>
2353 <p>
2354 Prints the result of tab completion for the partial <em>COMMAND</em> with optional
2355 <em>ARGS</em>. You usually do not need this, because there is already tab
2356 completion for bash, zsh and fish. Example:
2357 </p>
2358 <div class="ulist"><ul>
2359 <li>
2360 <p>
2361 complete 0 m<br />
2362 prints all commands beginning with m
2363 </p>
2364 </li>
2365 <li>
2366 <p>
2367 complete 1 toggle fra<br />
2368 prints all settings beginning with fra that can be toggled
2369 </p>
2370 </li>
2371 </ul></div>
2372 </dd>
2373 <dt class="hdlist1">
2374 complete_shell <em>POSITION</em> [<em>COMMAND</em> <em>ARGS &#8230;</em>]
2375 </dt>
2376 <dd>
2377 <p>
2378 Behaves like <strong>complete</strong> with the following extras, useful for completion on
2379 posix shells:
2380 </p>
2381 <div class="ulist"><ul>
2382 <li>
2383 <p>
2384 Escape sequences are removed in <em>COMMAND</em> and <em>ARGS</em>.
2385 </p>
2386 </li>
2387 <li>
2388 <p>
2389 A space is appended to each full completion result.
2390 </p>
2391 </li>
2392 <li>
2393 <p>
2394 Special characters will be escaped in the output.
2395 </p>
2396 </li>
2397 </ul></div>
2398 </dd>
2399 <dt class="hdlist1">
2400 emit_hook <em>NAME</em> <em>ARGS &#8230;</em>
2401 </dt>
2402 <dd>
2403 <p>
2404 Emits a custom hook <em>NAME</em> to all idling herbstclients.
2405 </p>
2406 </dd>
2407 <dt class="hdlist1">
2408 tag_status [<em>MONITOR</em>]
2409 </dt>
2410 <dd>
2411 <p>
2412 Print a tab separated list of all tags for the specified <em>MONITOR</em> index. If
2413 no <em>MONITOR</em> index is given, the focused monitor is used. Each tag name is
2414 prefixed with one char, which indicates its state:
2415 </p>
2416 <div class="ulist"><ul>
2417 <li>
2418 <p>
2419 <strong>.</strong> the tag is empty
2420 </p>
2421 </li>
2422 <li>
2423 <p>
2424 <strong>:</strong> the tag is not empty
2425 </p>
2426 </li>
2427 <li>
2428 <p>
2429 <strong>+</strong> the tag is viewed on the specified <em>MONITOR</em>, but this monitor is
2430 not focused.
2431 </p>
2432 </li>
2433 <li>
2434 <p>
2435 <strong>#</strong> the tag is viewed on the specified <em>MONITOR</em> and it is focused.
2436 </p>
2437 </li>
2438 <li>
2439 <p>
2440 <strong>-</strong> the tag is viewed on a different <em>MONITOR</em>, but this monitor is
2441 not focused.
2442 </p>
2443 </li>
2444 <li>
2445 <p>
2446 <strong>%</strong> the tag is viewed on a different <em>MONITOR</em> and it is focused.
2447 </p>
2448 </li>
2449 <li>
2450 <p>
2451 <strong>!</strong> the tag contains an urgent window
2452 </p>
2453 </li>
2454 </ul></div>
2455 </dd>
2456 </dl></div>
2457 <div class="admonitionblock">
2458 <table><tr>
2459 <td class="icon">
2460 <div class="title">Warning</div>
2461 </td>
2462 <td class="content">If you use a tab in one of the tag names, then tag_status is probably
2463 quite useless for you.</td>
2464 </tr></table>
2465 </div>
2466 <div class="dlist"><dl>
2467 <dt class="hdlist1">
2468 floating [[<em>TAG</em>] <strong>on</strong>|<strong>off</strong>|<strong>toggle</strong>|<strong>status</strong>]
2469 </dt>
2470 <dd>
2471 <p>
2472 Changes specified <em>TAG</em> to floating/tiling mode or prints its current
2473 status. If no <em>TAG</em> is given, the current tag is used. If no argument is
2474 given, floating mode is toggled. If <strong>status</strong> is given, then <strong>on</strong> or <strong>off</strong> is
2475 printed, depending of the floating state of <em>TAG</em>.
2476 </p>
2477 </dd>
2478 <dt class="hdlist1">
2479 rule [[--]<em>FLAG</em>|[--]<em>LABEL</em>|[--]<em>CONDITION</em>|[--]<em>CONSEQUENCE</em> &#8230;]
2480 </dt>
2481 <dd>
2482 <p>
2483 Defines a rule which will be applied to all new clients. Its behaviour is
2484 described in the <a href="#RULES"><strong>RULES section</strong></a>.
2485 </p>
2486 </dd>
2487 <dt class="hdlist1">
2488 unrule <em>LABEL</em>|<strong>--all</strong>|<strong>-F</strong>
2489 </dt>
2490 <dd>
2491 <p>
2492 Removes all rules named <em>LABEL</em>. If --all or -F is passed, then all rules
2493 are removed.
2494 </p>
2495 </dd>
2496 <dt class="hdlist1">
2497 apply_rules <em>WINID</em>|<strong>--all</strong>
2498 </dt>
2499 <dd>
2500 <p>
2501 Apply the rules to the specified window <em>WINID</em>. If <strong>--all</strong> is passed, then
2502 the rules are applied to all clients.
2503 </p>
2504 </dd>
2505 <dt class="hdlist1">
2506 apply_tmp_rule <em>WINID</em>|<strong>--all</strong> [<em>RULEDESCRIPTION</em>&#8230;]
2507 </dt>
2508 <dd>
2509 <p>
2510 Apply the rule <em>RULEDESCRIPTION</em> to one particular client <em>WINID</em> or all
2511 clients (<strong>--all</strong>) without adding the rule to the rule list. The
2512 <em>RULEDESCRIPTION</em> specifies a rule consisting of conditions and consequences
2513 as one would pass it to the <code>rule</code> command as described in the
2514 <a href="#RULES"><strong>RULES section</strong></a>. This allows testing rules before adding them.
2515 Running <code>apply_tmp_rule</code> only applies the particular rule given in the
2516 arguments and ignores the existing rules.
2517 </p>
2518 </dd>
2519 <dt class="hdlist1">
2520 fullscreen [<strong>on</strong>|<strong>off</strong>|<strong>toggle</strong>]
2521 </dt>
2522 <dd>
2523 <p>
2524 Sets or toggles the fullscreen state of the focused client. If no argument
2525 is given, fullscreen mode is toggled.
2526 </p>
2527 </dd>
2528 <dt class="hdlist1">
2529 pseudotile [<strong>on</strong>|<strong>off</strong>|<strong>toggle</strong>]
2530 </dt>
2531 <dd>
2532 <p>
2533 Sets or toggles the pseudotile state of the focused client. If a client is
2534 pseudotiled, then in tiling mode the client is only moved but not resized -
2535 the client size will stay the floating size. The only reason to resize the
2536 client is to ensure that it fits into its tile. If no argument is given,
2537 pseudotile mode is toggled.
2538 </p>
2539 </dd>
2540 <dt class="hdlist1">
2541 object_tree [<em>PATH</em>]
2542 </dt>
2543 <dd>
2544 <p>
2545 Prints the tree of objects. If the object path <em>PATH</em> is given, only the
2546 subtree starting at <em>PATH</em> is printed. See the <a href="#OBJECTS"><strong>OBJECTS section</strong></a>
2547 for more details.
2548 </p>
2549 </dd>
2550 <dt class="hdlist1">
2551 attr [<em>PATH</em> [<em>NEWVALUE</em>]
2552 </dt>
2553 <dd>
2554 <p>
2555 Prints the children and attributes of the given object addressed by <em>PATH</em>.
2556 If <em>PATH</em> is an attribute, then print the attribute value. If <em>NEWVALUE</em> is
2557 given, assign <em>NEWVALUE</em> to the attribute given by <em>PATH</em>. See the
2558 <a href="#OBJECTS"><strong>OBJECTS section</strong></a> for more details.
2559 </p>
2560 </dd>
2561 <dt class="hdlist1">
2562 get_attr <em>ATTRIBUTE</em>
2563 </dt>
2564 <dd>
2565 <p>
2566 Print the value of the specified <em>ATTRIBUTE</em> as described in the
2567 <a href="#OBJECTS"><strong>OBJECTS section</strong></a>.
2568 </p>
2569 </dd>
2570 <dt class="hdlist1">
2571 set_attr <em>ATTRIBUTE</em> <em>NEWVALUE</em>
2572 </dt>
2573 <dd>
2574 <p>
2575 Assign <em>NEWVALUE</em> to the specified <em>ATTRIBUTE</em> as described in the
2576 <a href="#OBJECTS"><strong>OBJECTS section</strong></a>.
2577 </p>
2578 </dd>
2579 <dt class="hdlist1">
2580 attr_type <em>ATTRIBUTE</em>
2581 </dt>
2582 <dd>
2583 <p>
2584 Print the type of the specified <em>ATTRIBUTE</em>.
2585 </p>
2586 </dd>
2587 <dt class="hdlist1">
2588 new_attr <strong>bool</strong>|<strong>color</strong>|<strong>int</strong>|<strong>string</strong>|<strong>uint</strong> <em>PATH</em> [<em>VALUE</em>]
2589 </dt>
2590 <dd>
2591 <p>
2592 Creates a new attribute with the name and in the object specified by <em>PATH</em>.
2593 Its type is specified by the first argument. The attribute name has to begin
2594 with <code>my_</code>. If <em>VALUE</em> is supplied, then it is written to the attribute (if
2595 this fails the attribute still remains).
2596 </p>
2597 </dd>
2598 <dt class="hdlist1">
2599 <a id="watch"></a>watch <em>PATH</em>
2600 </dt>
2601 <dd>
2602 <p>
2603 Watch the value of the given attribute <em>PATH</em>. Whenever the value changes
2604 from <em>OLDVALUE</em> to <em>NEWVALUE</em>, a hook is emitted:<br />
2605 <code>attribute_changed</code> <em>PATH</em> <em>OLDVALUE</em> <em>NEWVALUE</em>
2606 </p>
2607 </dd>
2608 <dt class="hdlist1">
2609 remove_attr <em>PATH</em>
2610 </dt>
2611 <dd>
2612 <p>
2613 Removes the user defined attribute <em>PATH</em>.
2614 </p>
2615 </dd>
2616 <dt class="hdlist1">
2617 substitute <em>IDENTIFIER</em> <em>ATTRIBUTE</em> <em>COMMAND</em> [<em>ARGS</em> &#8230;]
2618 </dt>
2619 <dd>
2620 <p>
2621 Replaces all exact occurrences of <em>IDENTIFIER</em> in <em>COMMAND</em> and its <em>ARGS</em>
2622 by the value of the <em>ATTRIBUTE</em>. Note that the <em>COMMAND</em> also is replaced by
2623 the attribute value if it equals <em>IDENTIFIER</em>. The replaced command with its
2624 arguments then is executed. Example:
2625 </p>
2626 <div class="ulist"><ul>
2627 <li>
2628 <p>
2629 <code>substitute MYTITLE clients.focus.title echo MYTITLE</code><br />
2630 <br />
2631 Prints the title of the currently focused window.
2632 </p>
2633 </li>
2634 </ul></div>
2635 </dd>
2636 <dt class="hdlist1">
2637 sprintf <em>IDENTIFIER</em> <em>FORMAT</em> [<em>FORMATARG</em> &#8230;] <em>COMMAND</em> [<em>CMDARGS</em> &#8230;]
2638 </dt>
2639 <dd>
2640 <p>
2641 Replaces all exact occurrences of <em>IDENTIFIER</em> in <em>COMMAND</em> and its <em>CMDARGS</em>
2642 by the string specified by <em>FORMAT</em>. The <em>FORMAT</em> string may contain several
2643 placeholders, similar to the <strong>printf</strong>(1) command:
2644 </p>
2645 <div class="ulist"><ul>
2646 <li>
2647 <p>
2648 <code>%s</code> inserts an attribute value whose path is given by the string value
2649 of the next <em>FORMATARG</em>
2650 </p>
2651 </li>
2652 <li>
2653 <p>
2654 <code>%c</code> ("constant") inserts the next <em>FORMATARG</em> without modification.
2655 </p>
2656 </li>
2657 <li>
2658 <p>
2659 <code>%{ATTR}</code> inserts the current value of the attribute <em>ATTR</em>. The path
2660 <em>ATTR</em> can itself contain format placeholders. This can be used to
2661 compose attribute paths at run time, e.g. in a <code>foreach</code> loop.
2662 </p>
2663 </li>
2664 <li>
2665 <p>
2666 <code>%%</code> stands for a plain <code>%</code>
2667 </p>
2668 </li>
2669 </ul></div>
2670 </dd>
2671 <dt class="hdlist1">
2672
2673 </dt>
2674 <dd>
2675 <p>
2676 The replaced command with its arguments then is executed.
2677 Examples:
2678 </p>
2679 <div class="ulist"><ul>
2680 <li>
2681 <p>
2682 <code>sprintf STR title=%s clients.focus.title echo STR</code><br />
2683 <br />
2684 Prints the title of the currently focused window prepended by
2685 <code>title=</code>.
2686 </p>
2687 </li>
2688 <li>
2689 <p>
2690 <code>sprintf X "%c %s tags" "there are" tags.count echo X</code>
2691 <br />
2692 Prints <code>there are N tags</code> with <code>N</code> replaced by the number of tags.
2693 </p>
2694 </li>
2695 <li>
2696 <p>
2697 <code>sprintf X tag=%s tags.focus.name rule once X</code><br />
2698 <br />
2699 Moves the next client that appears to the tag that is currently
2700 focused.
2701 </p>
2702 </li>
2703 <li>
2704 <p>
2705 <code>sprintf X %s/%s tags.focus.index tags.count echo X</code><br />
2706 <br />
2707 Tells which tag is focused and how many tags there are
2708 </p>
2709 </li>
2710 <li>
2711 <p>
2712 <code>sprintf l somelongstring echo l l l</code><br />
2713 <br />
2714 Prints <code>somelongstring</code> three times, separated by spaces.
2715 </p>
2716 </li>
2717 <li>
2718 <p>
2719 <code>sprintf VALUE "%{%c.client_count}" tags.0 echo VALUE</code><br />
2720 <br />
2721 Prints the number of clients on the tag with index 0
2722 </p>
2723 </li>
2724 <li>
2725 <p>
2726 <code>foreach --filter-name="[0-9]*" T tags. sprintf S "%{%c.client_count}" T echo T S</code><br />
2727 <br />
2728 Prints the number of clients for each tag.
2729 </p>
2730 </li>
2731 <li>
2732 <p>
2733 <code>substitute X tags.count sprintf Y "number=%c" X echo Y</code><br />
2734 <br />
2735 has the same output as<br />
2736 <code>sprintf Y "number=%s" tags.count echo Y</code><br />
2737 <br />
2738 (Note how the <code>%c</code> changes to <code>%s</code>)
2739 </p>
2740 </li>
2741 </ul></div>
2742 </dd>
2743 <dt class="hdlist1">
2744 foreach <em>IDENTIFIER</em> <em>OBJECT</em> [<strong>--recursive</strong>] [<strong>--unique</strong>] [<strong>--filter-name=</strong><em>REGEX</em>] <em>COMMAND</em> [<em>ARGS</em> &#8230;]
2745 </dt>
2746 <dd>
2747 <p>
2748 For each child of the given <em>OBJECT</em> the <em>COMMAND</em> is called with its
2749 <em>ARGS</em>, where the <em>IDENTIFIER</em> is replaced by the path of the child. The
2750 options are:
2751 </p>
2752 <div class="ulist"><ul>
2753 <li>
2754 <p>
2755 <strong>--filter-name=</strong><em>REGEX</em> consider children whose name match the specified <em>REGEX</em>.
2756 </p>
2757 </li>
2758 <li>
2759 <p>
2760 <strong>--unique</strong> do not print duplicates (some objects can be reached via
2761 multiple paths, such as <code>clients.focus</code>)
2762 </p>
2763 </li>
2764 <li>
2765 <p>
2766 <strong>--recursive</strong> print <em>OBJECT</em> and all its children of arbitrary depth in
2767 breadth-first search order. This implicitly activates <strong>--unique</strong>.
2768 </p>
2769 </li>
2770 </ul></div>
2771 </dd>
2772 <dt class="hdlist1">
2773
2774 </dt>
2775 <dd>
2776 <p>
2777 The exit code is the exit code of the
2778 command executed last. Examples:
2779 </p>
2780 <div class="ulist"><ul>
2781 <li>
2782 <p>
2783 <code>foreach T tags.by-name. echo T</code><br />
2784 <br />
2785 Prints:
2786 </p>
2787 <div class="literalblock">
2788 <div class="content">
2789 <pre><code>tags.by-name.1
2790 tags.by-name.2
2791 tags.by-name.3
2792 [...]</code></pre>
2793 </div></div>
2794 </li>
2795 <li>
2796 <p>
2797 Note that <code>foreach</code> only iterates over children, but not over
2798 attributes, so <code>foreach S settings echo S</code> prints nothing, since the
2799 settings object has only attributes but no child objects.
2800 </p>
2801 </li>
2802 <li>
2803 <p>
2804 <code>foreach C clients. echo C</code> prints the object paths of all clients,
2805 but the focused client twice, because it is mentioned in <code>clients.</code>
2806 twice: by window id and as <code>clients.focus</code>.
2807 </p>
2808 </li>
2809 <li>
2810 <p>
2811 <code>foreach F tags.focus.tiling.root. --recursive echo F</code>
2812 prints the object paths of all frames on the focused tag.
2813 </p>
2814 </li>
2815 </ul></div>
2816 </dd>
2817 <dt class="hdlist1">
2818 mktemp [<strong>bool</strong>|<strong>int</strong>|<strong>string</strong>|<strong>uint</strong>] <em>IDENTIFIER</em> <em>COMMAND</em> [<em>ARGS</em> &#8230;]
2819 </dt>
2820 <dd>
2821 <p>
2822 Creates a temporary attribute with the given type and replaces all
2823 occurrences of <em>IDENTIFIER</em> in <em>COMMAND</em> and <em>ARGS</em> by the path of the
2824 temporary attribute. The replaced command with its arguments is executed
2825 then. The exit status of <em>COMMAND</em> is returned.
2826 </p>
2827 </dd>
2828 <dt class="hdlist1">
2829 compare <em>ATTRIBUTE</em> <em>OPERATOR</em> <em>VALUE</em>
2830 </dt>
2831 <dd>
2832 <p>
2833 Compares the value of <em>ATTRIBUTE</em> with <em>VALUE</em> using the comparison method
2834 <em>OPERATOR</em>. If the comparison succeeds, it returns 0, else 1. The operators
2835 are:
2836 </p>
2837 <div class="ulist"><ul>
2838 <li>
2839 <p>
2840 <strong>=</strong>: <em>ATTRIBUTE</em>'s value equals <em>VALUE</em>
2841 </p>
2842 </li>
2843 <li>
2844 <p>
2845 <strong>!=</strong>: <em>ATTRIBUTE</em>'s value does not equal <em>VALUE</em>
2846 </p>
2847 </li>
2848 <li>
2849 <p>
2850 <strong>le</strong>: <em>ATTRIBUTE</em>'s value &lt;= <em>VALUE</em>
2851 </p>
2852 </li>
2853 <li>
2854 <p>
2855 <strong>lt</strong>: <em>ATTRIBUTE</em>'s value &lt; <em>VALUE</em>
2856 </p>
2857 </li>
2858 <li>
2859 <p>
2860 <strong>ge</strong>: <em>ATTRIBUTE</em>'s value &gt;= <em>VALUE</em>
2861 </p>
2862 </li>
2863 <li>
2864 <p>
2865 <strong>gt</strong>: <em>ATTRIBUTE</em>'s value &gt; <em>VALUE</em>
2866 </p>
2867 </li>
2868 </ul></div>
2869 </dd>
2870 <dt class="hdlist1">
2871
2872 </dt>
2873 <dd>
2874 <p>
2875 The <em>OPERATORs</em> <strong>le</strong>,<strong>lt</strong>,<strong>ge</strong>,<strong>gt</strong> can only be used if <em>ATTRIBUTE</em> is of
2876 the type integer or unsigned integer. Note that the first parameter must
2877 always be an attribute and the second a constant value. If you want to
2878 compare two attributes, use the substitute command:
2879 </p>
2880 <div class="listingblock">
2881 <div class="content">
2882 <pre><code>substitute FC tags.focus.frame_count \
2883 compare tags.focus.client_count gt FC</code></pre>
2884 </div></div>
2885 <div class="paragraph"><p>It returns success if there are more clients on the focused tag than frames.</p></div>
2886 </dd>
2887 <dt class="hdlist1">
2888 getenv <em>NAME</em>
2889 </dt>
2890 <dd>
2891 <p>
2892 Gets the value of the environment variable <em>NAME</em>.
2893 </p>
2894 </dd>
2895 <dt class="hdlist1">
2896 <a id="SETENV"></a>setenv <em>NAME</em> <em>VALUE</em>
2897 </dt>
2898 <dd>
2899 <p>
2900 Set the value of the environment variable <em>NAME</em> to <em>VALUE</em>.
2901 See the <a href="#EXPORTENV">export command</a> for a convenience wrapper.
2902 </p>
2903 </dd>
2904 <dt class="hdlist1">
2905 unsetenv <em>NAME</em>
2906 </dt>
2907 <dd>
2908 <p>
2909 Unsets the environment variable <em>NAME</em>.
2910 </p>
2911 </dd>
2912 <dt class="hdlist1">
2913 <a id="EXPORTENV"></a>export <em>NAME</em>=<em>VALUE</em>
2914 </dt>
2915 <dd>
2916 <p>
2917 Set the value of the environment variable <em>NAME</em> to <em>VALUE</em>. The syntax is
2918 the same as for <code>export</code> in unix shells (notice that there is a <code>=</code>).
2919 Intuitively, if you forgot to run <code>export FOO=BAR</code> before starting
2920 herbstluftwm, you can run <code>herbstclient export FOO=BAR</code> from within your
2921 herbstluftwm session for the same effect. The <code>export</code> command is the same
2922 as the <a href="#SETENV">setenv command</a> with different syntax.
2923 </p>
2924 </dd>
2925 </dl></div>
2926 </div>
2927 </div>
2928 <div class="sect1">
2929 <h2 id="RULES">RULES</h2>
2930 <div class="sectionbody">
2931 <div class="paragraph"><p>Rules are used to change default properties for certain clients when they
2932 appear or when the <em>apply_rules</em> command is called. Each rule matches against a
2933 certain subset of all clients and defines a set of properties for them (called
2934 <em>CONSEQUENCE</em>s). A rule can be defined with this command:</p></div>
2935 <div class="paragraph"><p><code>rule</code> [[--]<em>FLAG</em>|[--]<em>LABEL</em>|[--]<em>CONDITION</em>|[--]<em>CONSEQUENCE</em> &#8230;]</p></div>
2936 <div class="paragraph"><p>Each rule consists of a list of <em>FLAG</em>s, <em>CONDITION</em>s, <em>CONSEQUENCE</em>s
2937 and, optionally, a <em>LABEL</em>. (each of them can be optionally prefixed with two
2938 dashes (<code>--</code>) to provide a more <strong>iptables</strong>(8)-like feeling).</p></div>
2939 <div class="paragraph"><p>Each rule can be given a custom label by specifying the <em>LABEL</em> property:</p></div>
2940 <div class="ulist"><ul>
2941 <li>
2942 <p>
2943 <code>[--]label</code>=<em>VALUE</em>
2944 </p>
2945 </li>
2946 </ul></div>
2947 <div class="paragraph"><p>If multiple labels are specified, the last one in the list will be applied. If
2948 no label is given, then the rule will be given an integer name that represents
2949 the index of the rule since the last <em>unrule -F</em> command (which is triggered in
2950 the default autostart).</p></div>
2951 <div class="admonitionblock">
2952 <table><tr>
2953 <td class="icon">
2954 <div class="title">Tip</div>
2955 </td>
2956 <td class="content">Rule labels default to an incremental index. These default labels are
2957 unique, unless you assign a different rule a custom integer <em>LABEL</em>. Default
2958 labels can be captured with the <em>printlabel</em> flag.</td>
2959 </tr></table>
2960 </div>
2961 <div class="paragraph"><p>If a new client appears, herbstluftwm tries to apply each rule to this new
2962 client as follows: If each <em>CONDITION</em> of this rule matches against this client,
2963 then every <em>CONSEQUENCE</em> is executed. (If there are no conditions given, then
2964 this rule is executed for each client)</p></div>
2965 <div class="paragraph"><p>Each <em>CONDITION</em> consists of a <em>property</em> name, an operator and a <em>value</em>. Valid
2966 operators are:</p></div>
2967 <div class="ulist"><ul>
2968 <li>
2969 <p>
2970 <code>~</code> matches if client&#8217;s <em>property</em> is matched by the regex <em>value</em>.
2971 </p>
2972 </li>
2973 <li>
2974 <p>
2975 <code>=</code> matches if client&#8217;s <em>property</em> string is equal to <em>value</em>.
2976 </p>
2977 </li>
2978 </ul></div>
2979 <div class="paragraph"><p>Valid <em>properties</em> are:</p></div>
2980 <div class="dlist"><dl>
2981 <dt class="hdlist1">
2982 <code>instance</code>
2983 </dt>
2984 <dd>
2985 <p>
2986 the first entry in client&#8217;s <code>WM_CLASS</code>.
2987 </p>
2988 </dd>
2989 <dt class="hdlist1">
2990 <code>class</code>
2991 </dt>
2992 <dd>
2993 <p>
2994 the second entry in client&#8217;s <code>WM_CLASS</code>.
2995 </p>
2996 </dd>
2997 <dt class="hdlist1">
2998 <code>title</code>
2999 </dt>
3000 <dd>
3001 <p>
3002 client&#8217;s window title.
3003 </p>
3004 </dd>
3005 <dt class="hdlist1">
3006 <code>pid</code>
3007 </dt>
3008 <dd>
3009 <p>
3010 the client&#8217;s process id (Warning: the pid is not available for every client.
3011 This only matches if the client sets _NET_WM_PID to the pid itself).
3012 </p>
3013 </dd>
3014 <dt class="hdlist1">
3015 <code>pgid</code>
3016 </dt>
3017 <dd>
3018 <p>
3019 this client&#8217;s process group id. Since the pgid of a window is derived from
3020 its <code>pid</code> the same restrictions apply as above.
3021 </p>
3022 </dd>
3023 <dt class="hdlist1">
3024 <code>maxage</code>
3025 </dt>
3026 <dd>
3027 <p>
3028 matches if the age of the rule measured in seconds does not exceed <em>value</em>.
3029 This condition only can be used with the <code>=</code> operator. If maxage already is
3030 exceeded (and never will match again), then this rule is removed. (With this
3031 you can build rules that only live for a certain time.)
3032 </p>
3033 </dd>
3034 <dt class="hdlist1">
3035 <code>windowtype</code>
3036 </dt>
3037 <dd>
3038 <p>
3039 matches the _NET_WM_WINDOW_TYPE property of a window. If _NET_WM_WINDOW_TYPE
3040 has multiple entries, then only the first entry is used here.
3041 </p>
3042 </dd>
3043 <dt class="hdlist1">
3044 <code>windowrole</code>
3045 </dt>
3046 <dd>
3047 <p>
3048 matches the WM_WINDOW_ROLE property of a window if it is set by the window.
3049 </p>
3050 </dd>
3051 <dt class="hdlist1">
3052 <code>fixedsize</code> (no parameter)
3053 </dt>
3054 <dd>
3055 <p>
3056 matches if the window does not allow being resized (i.e. if the minimum size
3057 matches the maximum size). This condition does <strong>not</strong> take a parameter.
3058 Example:<br />
3059 </p>
3060 <div class="listingblock">
3061 <div class="content">
3062 <pre><code>hc rule fixedsize floating=on</code></pre>
3063 </div></div>
3064 </dd>
3065 </dl></div>
3066 <div class="paragraph"><p>Each <em>CONSEQUENCE</em> consists of a <em>NAME</em>=<em>VALUE</em> pair. Valid <em>NAMES</em> are:</p></div>
3067 <div class="dlist"><dl>
3068 <dt class="hdlist1">
3069 <code>tag</code>
3070 </dt>
3071 <dd>
3072 <p>
3073 moves the client to tag <em>VALUE</em>.
3074 </p>
3075 </dd>
3076 <dt class="hdlist1">
3077 <code>monitor</code>
3078 </dt>
3079 <dd>
3080 <p>
3081 moves the client to the tag on monitor <em>VALUE</em>. If the tag consequence was
3082 also specified, and switchtag is set for the client, move the client to that
3083 tag, then display that tag on monitor <em>VALUE</em>. If the tag consequence was
3084 specified, but switchtag was not, ignore this consequence.
3085 </p>
3086 </dd>
3087 <dt class="hdlist1">
3088 <code>focus</code>
3089 </dt>
3090 <dd>
3091 <p>
3092 decides whether the client gets the input focus in its tag. The default is
3093 <strong>off</strong>. <em>VALUE</em> is a boolean (<strong>on</strong> or <strong>off</strong>).
3094 </p>
3095 </dd>
3096 <dt class="hdlist1">
3097 <code>switchtag</code>
3098 </dt>
3099 <dd>
3100 <p>
3101 if <code>focus</code> is activated and the client is put to a not focused tag, then
3102 <code>switchtag</code> tells whether the client&#8217;s tag will be shown or not. If the tag
3103 is shown on any monitor but is not focused, the client&#8217;s tag only is brought
3104 to the current monitor if <strong>swap_monitors_to_get_tag</strong> is activated. <em>VALUE</em>
3105 is a boolean (<strong>on</strong> or <strong>off</strong>).
3106 </p>
3107 </dd>
3108 <dt class="hdlist1">
3109 <code>manage</code>
3110 </dt>
3111 <dd>
3112 <p>
3113 decides whether the client will be managed or not. The default is <strong>on</strong>.
3114 <em>VALUE</em> is a boolean (<strong>on</strong> or <strong>off</strong>).
3115 </p>
3116 </dd>
3117 <dt class="hdlist1">
3118 <code>index</code>
3119 </dt>
3120 <dd>
3121 <p>
3122 moves the window to a specified index in the tree. <em>VALUE</em> is a
3123 <a href="#FRAME_INDEX"><strong>frame index</strong></a>.
3124 </p>
3125 </dd>
3126 <dt class="hdlist1">
3127 <code>floating</code>
3128 </dt>
3129 <dd>
3130 <p>
3131 sets the floating state of the client. <em>VALUE</em> is a boolean.
3132 </p>
3133 </dd>
3134 <dt class="hdlist1">
3135 <code>pseudotile</code>
3136 </dt>
3137 <dd>
3138 <p>
3139 sets the pseudotile state of the client. <em>VALUE</em> is a boolean.
3140 </p>
3141 </dd>
3142 <dt class="hdlist1">
3143 <code>ewmhrequests</code>
3144 </dt>
3145 <dd>
3146 <p>
3147 sets whether the window state (the fullscreen state and the demands
3148 attention flag) can be changed by the application via ewmh itself. This does
3149 not affect the initial fullscreen state requested by the window. <em>VALUE</em> is
3150 a boolean; it defaults to <strong>on</strong>.
3151 </p>
3152 </dd>
3153 <dt class="hdlist1">
3154 <code>ewmhnotify</code>
3155 </dt>
3156 <dd>
3157 <p>
3158 sets whether hlwm should let the client know about EMWH changes (currently
3159 only the fullscreen state). If this is set, applications do not change to
3160 their fullscreen-mode while still being fullscreen. <em>VALUE</em> is a boolean,
3161 it defaults to <strong>on</strong>.
3162 </p>
3163 </dd>
3164 <dt class="hdlist1">
3165 <code>fullscreen</code>
3166 </dt>
3167 <dd>
3168 <p>
3169 sets the fullscreen flag of the client. <em>VALUE</em> is a boolean.
3170 </p>
3171 </dd>
3172 <dt class="hdlist1">
3173 <code>hook</code>
3174 </dt>
3175 <dd>
3176 <p>
3177 emits the custom hook <code>rule</code> <em>VALUE</em> <em>WINID</em> when this rule is triggered by
3178 a new window with the id <em>WINID</em>. This consequence can be used multiple
3179 times, which will cause a hook to be emitted for each occurrence of a hook
3180 consequence.
3181 </p>
3182 </dd>
3183 <dt class="hdlist1">
3184 <code>keymask</code>
3185 </dt>
3186 <dd>
3187 <p>
3188 sets the keymask for a client (see the <code>keymask</code> attribute documentation).
3189 </p>
3190 </dd>
3191 <dt class="hdlist1">
3192 <code>keys_inactive</code>
3193 </dt>
3194 <dd>
3195 <p>
3196 sets a regex that determines which key bindings are inactive for a client
3197 (see the <code>keys_inactive</code> attribute documentation).
3198 </p>
3199 </dd>
3200 <dt class="hdlist1">
3201 <code>floatplacement</code>
3202 </dt>
3203 <dd>
3204 <p>
3205 changes the floating position of a window. The <em>VALUE</em> can be one of the
3206 following:
3207 </p>
3208 <div class="ulist"><ul>
3209 <li>
3210 <p>
3211 <code>none</code> does not change the placement at all
3212 </p>
3213 </li>
3214 <li>
3215 <p>
3216 <code>center</code> centers the window on the monitor
3217 </p>
3218 </li>
3219 <li>
3220 <p>
3221 <code>smart</code> tries to place it with as little overlap to other floating windows
3222 as possible. If there are multiple options with the least overlap, then
3223 the position with the least overlap to tiling windows is chosen.
3224 </p>
3225 </li>
3226 </ul></div>
3227 </dd>
3228 <dt class="hdlist1">
3229 <code>floating_geometry</code>
3230 </dt>
3231 <dd>
3232 <p>
3233 Sets the client&#8217;s <code>floating_geometry</code> attribute. The <em>VALUE</em> is a rectangle,
3234 interpreted relatively to the monitor. If <code>floatplacement</code> is also specified
3235 for the client (possibly by another rule), then only the size of the
3236 <code>floating_geometry</code> is used. In order to force the position from the
3237 geometry, it is necessary to add <code>floatplacement=none</code>.
3238 </p>
3239 </dd>
3240 </dl></div>
3241 <div class="paragraph"><p>A rule&#8217;s behaviour can be configured by some special <em>FLAGS</em>:</p></div>
3242 <div class="ulist"><ul>
3243 <li>
3244 <p>
3245 <code>not</code>: negates the next <em>CONDITION</em>.
3246 </p>
3247 </li>
3248 <li>
3249 <p>
3250 <code>!</code>: same as <code>not</code>.
3251 </p>
3252 </li>
3253 <li>
3254 <p>
3255 <code>once</code>: only apply this rule once (and delete it afterwards).
3256 </p>
3257 </li>
3258 <li>
3259 <p>
3260 <code>printlabel</code>: prints the label of the newly created rule to stdout.
3261 </p>
3262 </li>
3263 <li>
3264 <p>
3265 <code>prepend</code>: prepend the rule to the list of rules instead of appending it.
3266 So its consequences may be overwritten by already existing rules.
3267 </p>
3268 </li>
3269 </ul></div>
3270 <div class="paragraph"><p>Examples:</p></div>
3271 <div class="ulist"><ul>
3272 <li>
3273 <p>
3274 <code>rule --class=Netscape --tag=6 --focus=off</code><br />
3275 <br />
3276 Moves all Netscape instances to tag 6, but doesn&#8217;t give focus to them.
3277 </p>
3278 </li>
3279 <li>
3280 <p>
3281 <code>rule not class~.*[Tt]erm tag=2</code><br />
3282 <br />
3283 Moves all clients to tag 2, if their class does not end with <code>term</code> or
3284 <code>Term</code>.
3285 </p>
3286 </li>
3287 <li>
3288 <p>
3289 <code>rule class=Thunderbird index=/0</code>
3290 <br />
3291 Insert all Thunderbird instances in the tree that has no focus and there
3292 in the first child.
3293 </p>
3294 </li>
3295 <li>
3296 <p>
3297 <code>rule --windowtype=_NET_WM_WINDOW_TYPE_DIALOG --focus=on</code>
3298 <br />
3299 Sets focus to new dialogs which set their <code>_NET_WM_WINDOW_TYPE</code> correctly.
3300 </p>
3301 </li>
3302 </ul></div>
3303 </div>
3304 </div>
3305 <div class="sect1">
3306 <h2 id="WINDOW_IDS">WINDOW IDS</h2>
3307 <div class="sectionbody">
3308 <div class="paragraph"><p>Several commands accept a window as reference, e.g. <code>close</code>. The syntax is as
3309 follows:</p></div>
3310 <div class="ulist"><ul>
3311 <li>
3312 <p>
3313 an empty string&#8201;&#8212;&#8201;or missing argument&#8201;&#8212;&#8201;references the currently focused
3314 window.
3315 </p>
3316 </li>
3317 <li>
3318 <p>
3319 <code>urgent</code> references some window that is urgent.
3320 </p>
3321 </li>
3322 <li>
3323 <p>
3324 <code>0x</code><em>HEXID</em>&#8201;&#8212;&#8201;where <em>HEXID</em> is some hexadecimal number&#8201;&#8212;&#8201;references the
3325 window with hexadecimal X11 window id <em>HEXID</em>.
3326 </p>
3327 </li>
3328 <li>
3329 <p>
3330 <code>longest-minimized</code> references the minimized window on the focused tag
3331 that has been minimized for the longest time.
3332 </p>
3333 </li>
3334 <li>
3335 <p>
3336 <code>latest-minimized</code> references the minimized window on the focused tag
3337 that has been minimized most recently.
3338 </p>
3339 </li>
3340 <li>
3341 <p>
3342 <em>DECID</em>&#8201;&#8212;&#8201;where <em>DECID</em> is some decimal number&#8201;&#8212;&#8201;references the window
3343 with the decimal X11 window id <em>DECID</em>.
3344 </p>
3345 </li>
3346 </ul></div>
3347 </div>
3348 </div>
3349 <div class="sect1">
3350 <h2 id="OBJECTS">OBJECTS</h2>
3351 <div class="sectionbody">
3352 <div class="paragraph"><p>The object tree is a collection of objects with attributes similar to <code>/sys</code>
3353 known from the Linux kernel. Many entities (like tags, monitors, clients, &#8230;)
3354 have objects to access their attributes directly. The tree is printed by the
3355 <code>object_tree</code> command and looks more or less as follows:</p></div>
3356 <div class="listingblock">
3357 <div class="content">
3358 <pre><code>$ herbstclient object_tree
3359 ╾─┐
3360 ├─┐ tags
3361 │ ├─┐ by-name
3362 │ │ ├─╼ 1
3363 │ │ ...
3364 │ │ └─╼ 9
3365 │ └─╼ focus
3366 ├─┐ clients
3367 │ ├─╼ 0x1400022
3368 │ └─╼ focus
3369 └─┐ monitors
3370 ├─╼ by-name
3371 └─╼ focus</code></pre>
3372 </div></div>
3373 <div class="paragraph"><p>To print a subtree starting at a certain object, pass the <em>PATH</em> of the object
3374 to <code>object_tree</code>. The object <em>PATH</em> is the path using the separator <code>.</code> (dot),
3375 e.g. <code>tags.by-name</code>:</p></div>
3376 <div class="listingblock">
3377 <div class="content">
3378 <pre><code>$ herbstclient object_tree tags.by-name.
3379 ╾─┐ tags.by-name.
3380 ├─╼ 1
3381 ├─╼ 2
3382 ...
3383 └─╼ 9</code></pre>
3384 </div></div>
3385 <div class="paragraph"><p>To query all attributes and children of a object, pass its <em>PATH</em> to <code>attr</code>:</p></div>
3386 <div class="listingblock">
3387 <div class="content">
3388 <pre><code>$ herbstclient attr tags.
3389 2 children:
3390 by-name.
3391 focus.
3392
3393 1 attributes:
3394 .---- type
3395 | .-- writable
3396 V V
3397 u - count = 9
3398
3399 $ herbstclient attr tags.focus.
3400 0 children.
3401 6 attributes:
3402 .---- type
3403 | .-- writable
3404 V V
3405 s w name = "1"
3406 b w floating = false
3407 i - frame_count = 2
3408 i - client_count = 1
3409 i - curframe_windex = 0
3410 i - curframe_wcount = 1</code></pre>
3411 </div></div>
3412 <div class="paragraph"><p>This already gives an intuition of the output: <code>attr</code> first lists the names of
3413 the child objects and then all attributes, telling for each attribute:</p></div>
3414 <div class="ulist"><ul>
3415 <li>
3416 <p>
3417 its type
3418 </p>
3419 <div class="ulist"><ul>
3420 <li>
3421 <p>
3422 <code>b</code> for boolean
3423 </p>
3424 </li>
3425 <li>
3426 <p>
3427 <code>c</code> for color
3428 </p>
3429 </li>
3430 <li>
3431 <p>
3432 <code>i</code> for integer
3433 </p>
3434 </li>
3435 <li>
3436 <p>
3437 <code>r</code> for regex
3438 </p>
3439 </li>
3440 <li>
3441 <p>
3442 <code>s</code> for string
3443 </p>
3444 </li>
3445 <li>
3446 <p>
3447 <code>u</code> for unsigned integer
3448 </p>
3449 </li>
3450 </ul></div>
3451 </li>
3452 <li>
3453 <p>
3454 if it is writable by the user: <code>w</code> if yes, <code>-</code> else.
3455 </p>
3456 </li>
3457 <li>
3458 <p>
3459 the name of the attribute
3460 </p>
3461 </li>
3462 <li>
3463 <p>
3464 its current value (only quoted for strings)
3465 </p>
3466 </li>
3467 </ul></div>
3468 <div class="paragraph"><p>To get the unquoted value of a certain attribute, address the attribute using
3469 the same syntax as for object paths and pass it to <code>attr</code> or <code>get_attr</code>:</p></div>
3470 <div class="listingblock">
3471 <div class="content">
3472 <pre><code>$ herbstclient attr clients.focus.title
3473 herbstluftwm.txt = (~/dev/c/herbstluftwm/doc) - VIM
3474 $ herbstclient get_attr clients.focus.title
3475 herbstluftwm.txt = (~/dev/c/herbstluftwm/doc) - VIM</code></pre>
3476 </div></div>
3477 <div class="paragraph"><p>To change a writable attribute value pass the new value to <code>attr</code> or to
3478 <code>set_attr</code>:</p></div>
3479 <div class="listingblock">
3480 <div class="content">
3481 <pre><code>$ herbstclient attr tags.focus.floating
3482 false
3483 $ herbstclient attr tags.focus.floating true
3484 $ herbstclient attr tags.focus.floating
3485 true
3486 $ herbstclient set_attr tags.focus.floating false
3487 $ herbstclient attr tags.focus.floating
3488 false</code></pre>
3489 </div></div>
3490 <div class="paragraph"><p>More information on an attribute or object is given by the <code>help</code> command:</p></div>
3491 <div class="listingblock">
3492 <div class="content">
3493 <pre><code>$ herbstclient help clients.focus</code></pre>
3494 </div></div>
3495 <div class="paragraph"><p>Just look around to get a feeling what is there. The entry point is a root
3496 object that has the following child objects:</p></div>
3497 <div class="sect2">
3498 <h3 id="doc_cls_root">autostart: <a id="doc_cls_autostart"></a></h3>
3499 <div class="ulist"><ul>
3500 <li>
3501 <p>
3502 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">global_path</span></code></strong> <span class="defaultvalue">= globalAutostart</span>: Path of the system-wide autostart, used as a fallback.
3503 </p>
3504 </li>
3505 <li>
3506 <p>
3507 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">last_status</span></code></strong> <span class="defaultvalue">= 0</span>: the exit status of the last autostart run. if the autostart is still <em>running</em>, then this status corresponds to the exit status of the previous autostart invocation.
3508 </p>
3509 </li>
3510 <li>
3511 <p>
3512 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">path</span></code></strong> <span class="defaultvalue">= autostartFromCmdLine</span>: Custom path to the user&#8217;s autostart path. If it is empty, then the autostart in $XDG_CONFIG_HOME or $HOME is used.
3513 </p>
3514 </li>
3515 <li>
3516 <p>
3517 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">pid</span></code></strong> <span class="defaultvalue">= 0</span>: the process id of the last autostart invocation. Even if the autostart is not running anymore, its pid is still present here.
3518 </p>
3519 </li>
3520 <li>
3521 <p>
3522 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">running</span></code></strong> <span class="defaultvalue">= false</span>: whether the autostart process (with <em>pid</em>) is still running.
3523 </p>
3524 </li>
3525 </ul></div>
3526 </div>
3527 <div class="sect2">
3528 <h3 id="_clients_a_id_doc_cls_clientmanager_a">clients: <a id="doc_cls_clientmanager"></a></h3>
3529 <div class="paragraph"><p>The managed windows. For every (managed) window id there is an entry here.</p></div>
3530 <div class="ulist"><ul>
3531 <li>
3532 <p>
3533 <strong><code><span class="entryname">dragged</span></code></strong>: the object of a client which is currently dragged by the mouse, if any. See the documentation of the mousebind command for examples. For attributes and children, see <a href="#doc_cls_client"><code>clients.focus</code></a>
3534 </p>
3535 </li>
3536 <li>
3537 <p>
3538 <strong><code><span class="entryname">focus</span></code></strong>: the focused client (only exists if a client is focused). <a id="doc_cls_client"></a>a managed window
3539 </p>
3540 <div class="ulist"><ul>
3541 <li>
3542 <p>
3543 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">class</span></code></strong>: the class of it (second entry in WM_CLASS)
3544 </p>
3545 </li>
3546 <li>
3547 <p>
3548 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">content_geometry</span></code></strong>: the geometry of the application content, that is, not taking the decoration into account. Also, this is the last window geometry that was reported to the client application.
3549 </p>
3550 </li>
3551 <li>
3552 <p>
3553 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">decorated</span></code></strong> <span class="defaultvalue">= true</span>: whether window border and title are drawn
3554 </p>
3555 </li>
3556 <li>
3557 <p>
3558 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">decoration_geometry</span></code></strong>: the geometry of the client, taking the window decoration into account. The position is the global window position, that is, relative to the top left corner of the entire screen
3559 </p>
3560 </li>
3561 <li>
3562 <p>
3563 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">ewmhnotify</span></code></strong> <span class="defaultvalue">= true</span>: if the client is told about its state via ewmh
3564 </p>
3565 </li>
3566 <li>
3567 <p>
3568 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">ewmhrequests</span></code></strong> <span class="defaultvalue">= true</span>: if ewmh requests are permitted for this client
3569 </p>
3570 </li>
3571 <li>
3572 <p>
3573 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">floating</span></code></strong> <span class="defaultvalue">= false</span>: whether this client is set as a (single-window) floating client. If set, the client is floated above the tiled clients.
3574 </p>
3575 </li>
3576 <li>
3577 <p>
3578 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">floating_effectively</span></code></strong> <span class="defaultvalue">= false</span>: whether this client is in the floating state currently. This is the case if the client&#8217;s tag is set to floating mode or if the client itself is set as floating. Its value is also indicated via the X11 properties HLWM_FLOATING_WINDOW and HLWM_TILING_WINDOW.
3579 </p>
3580 </li>
3581 <li>
3582 <p>
3583 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">floating_geometry</span></code></strong> <span class="defaultvalue">= 0</span>: the geometry of the client content if the client is in floating mode. The position is relative to the monitor and does not take the window decoration into account.
3584 </p>
3585 </li>
3586 <li>
3587 <p>
3588 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">fullscreen</span></code></strong> <span class="defaultvalue">= false</span>: whether this client covers all other windows and panels on its monitor.
3589 </p>
3590 </li>
3591 <li>
3592 <p>
3593 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">instance</span></code></strong>: the instance of it (first entry in WM_CLASS)
3594 </p>
3595 </li>
3596 <li>
3597 <p>
3598 <em><span class="datatype">regex</span></em> <strong><code><span class="entryname">keymask</span></code></strong> <span class="defaultvalue">= ""</span>: A regular expression that is matched against the string representation of all key bindings (as they are printed by list_keybinds). While this client is focused, only bindings that match the expression will be active. Any other bindings will be disabled. The default keymask is an empty string (), which does not disable any keybinding.
3599 </p>
3600 </li>
3601 <li>
3602 <p>
3603 <em><span class="datatype">regex</span></em> <strong><code><span class="entryname">keys_inactive</span></code></strong> <span class="defaultvalue">= ""</span>: A regular expression that describes which keybindings are inactive while the client is focused. If a key combination is pressed and its string representation (as given by list_keybinds) matches the regex, then the key press is propagated to the client.
3604 </p>
3605 </li>
3606 <li>
3607 <p>
3608 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">minimized</span></code></strong> <span class="defaultvalue">= false</span>: whether this client is minimized (also called iconified).
3609 </p>
3610 </li>
3611 <li>
3612 <p>
3613 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">pgid</span></code></strong> <span class="defaultvalue">= -1</span>
3614 </p>
3615 </li>
3616 <li>
3617 <p>
3618 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">pid</span></code></strong> <span class="defaultvalue">= -1</span>: the process id of it (-1 if unset).
3619 </p>
3620 </li>
3621 <li>
3622 <p>
3623 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">pseudotile</span></code></strong> <span class="defaultvalue">= false</span>: if activated, the client always has its floating window size, even if it is in tiling mode.
3624 </p>
3625 </li>
3626 <li>
3627 <p>
3628 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">sizehints_floating</span></code></strong> <span class="defaultvalue">= true</span>: if sizehints for this client should be respected in floating mode
3629 </p>
3630 </li>
3631 <li>
3632 <p>
3633 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">sizehints_tiling</span></code></strong> <span class="defaultvalue">= false</span>: if sizehints for this client should be respected in tiling mode
3634 </p>
3635 </li>
3636 <li>
3637 <p>
3638 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">tag</span></code></strong>: the name of the tag it&#8217;s currently on.
3639 </p>
3640 </li>
3641 <li>
3642 <p>
3643 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">title</span></code></strong> <span class="defaultvalue">= ""</span>: its window title
3644 </p>
3645 </li>
3646 <li>
3647 <p>
3648 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">urgent</span></code></strong> <span class="defaultvalue">= false</span>: the urgency state (also known as: demands attention). The focused client can not be urgent.
3649 </p>
3650 </li>
3651 <li>
3652 <p>
3653 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">visible</span></code></strong> <span class="defaultvalue">= visible_already</span>: whether this client is rendered currently
3654 </p>
3655 </li>
3656 <li>
3657 <p>
3658 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">winid</span></code></strong> <span class="defaultvalue">= ""</span>: its window id (as a hexadecimal number with 0x prefix)
3659 </p>
3660 </li>
3661 <li>
3662 <p>
3663 <strong><code><span class="entryname">parent_frame</span></code></strong>: the frame contaning this client if the client is tiled. For attributes and children, see <a href="#doc_cls_frameleaf"><code>tags.focus.tiling.root</code></a>
3664 </p>
3665 </li>
3666 </ul></div>
3667 </li>
3668 </ul></div>
3669 </div>
3670 <div class="sect2">
3671 <h3 id="_monitors_a_id_doc_cls_monitormanager_a">monitors: <a id="doc_cls_monitormanager"></a></h3>
3672 <div class="paragraph"><p>Every monitor is a rectangular part of the screen on which a tag is shown. These monitors may or may not match the actual outputs.
3673 This has an entry <em>INDEX</em> for each monitor with index <em>INDEX</em>.</p></div>
3674 <div class="ulist"><ul>
3675 <li>
3676 <p>
3677 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">count</span></code></strong>
3678 </p>
3679 </li>
3680 <li>
3681 <p>
3682 <strong><code><span class="entryname">by-name</span></code></strong>: <a id="doc_cls_byname"></a>This has an entry <em>name</em> for every object with the given <em>name</em>. If an object has an empty name then it is not listed here.
3683 </p>
3684 </li>
3685 <li>
3686 <p>
3687 <strong><code><span class="entryname">focus</span></code></strong>: the focused monitor. <a id="doc_cls_monitor"></a>The monitor is a rectangular part on the screen that holds precisely one tag at a time. The pad attributes reserve space on the monitor&#8217;s edge for panels, so this space (given in number of pixels) is never occupied by tiled clients.
3688 </p>
3689 <div class="ulist"><ul>
3690 <li>
3691 <p>
3692 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">content_geometry</span></code></strong>: the inner geometry of the monitor, i.e. the geometry with the pads deducted from all sides. This is the area floating and tiled client windows are placed.
3693 </p>
3694 </li>
3695 <li>
3696 <p>
3697 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">geometry</span></code></strong> <span class="defaultvalue">= rect_</span>: the outer geometry of the monitor
3698 </p>
3699 </li>
3700 <li>
3701 <p>
3702 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">index</span></code></strong> <span class="defaultvalue">= 0</span>: the monitor&#8217;s index (starts at index 0)
3703 </p>
3704 </li>
3705 <li>
3706 <p>
3707 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">lock_tag</span></code></strong> <span class="defaultvalue">= false</span>: if activated, then it it is not possible to switch this monitor to a different tag.
3708 </p>
3709 </li>
3710 <li>
3711 <p>
3712 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">name</span></code></strong> <span class="defaultvalue">= ""</span>: the monitor&#8217;s name (can be empty)
3713 </p>
3714 </li>
3715 <li>
3716 <p>
3717 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">pad_down</span></code></strong> <span class="defaultvalue">= 0</span>: space for panels at the monitor&#8217;s lower edge
3718 </p>
3719 </li>
3720 <li>
3721 <p>
3722 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">pad_left</span></code></strong> <span class="defaultvalue">= 0</span>: space for panels at the monitor&#8217;s left edge
3723 </p>
3724 </li>
3725 <li>
3726 <p>
3727 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">pad_right</span></code></strong> <span class="defaultvalue">= 0</span>: space for panels at the monitor&#8217;s right edge
3728 </p>
3729 </li>
3730 <li>
3731 <p>
3732 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">pad_up</span></code></strong> <span class="defaultvalue">= 0</span>: space for panels at the monitor&#8217;s upper edge
3733 </p>
3734 </li>
3735 <li>
3736 <p>
3737 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">tag</span></code></strong>: the name of the tag viewed here
3738 </p>
3739 </li>
3740 </ul></div>
3741 </li>
3742 </ul></div>
3743 </div>
3744 <div class="sect2">
3745 <h3 id="_panels_a_id_doc_cls_panelmanager_a">panels: <a id="doc_cls_panelmanager"></a></h3>
3746 <div class="paragraph"><p>For every panel window, there is an entry with the panel&#8217;s window id here.</p></div>
3747 <div class="ulist"><ul>
3748 <li>
3749 <p>
3750 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">count</span></code></strong>
3751 </p>
3752 </li>
3753 <li>
3754 <p>
3755 <em><span class="entryname">0xWindowID</span></em>: <a id="doc_cls_panel"></a>a panel is an unmanaged window that reserves space at the edge of the monitor it is on. The space depends on the _NET_WM_STRUT defined by the panel. If it is however not defined explicitly, then the amount of reserved space is inferred from the window geometry.
3756 </p>
3757 <div class="ulist"><ul>
3758 <li>
3759 <p>
3760 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">class</span></code></strong>: the window class (second entry of WM_CLASS)
3761 </p>
3762 </li>
3763 <li>
3764 <p>
3765 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">geometry</span></code></strong>: the size and position of the window
3766 </p>
3767 </li>
3768 <li>
3769 <p>
3770 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">instance</span></code></strong>: the window instance (first entry of WM_CLASS)
3771 </p>
3772 </li>
3773 <li>
3774 <p>
3775 <em><span class="datatype">WindowID</span></em> <strong><code><span class="entryname">winid</span></code></strong> <span class="defaultvalue">= winid</span>: the ID of the panel window
3776 </p>
3777 </li>
3778 </ul></div>
3779 </li>
3780 </ul></div>
3781 </div>
3782 <div class="sect2">
3783 <h3 id="_settings_a_id_doc_cls_settings_a">settings: <a id="doc_cls_settings"></a></h3>
3784 <div class="paragraph"><p>Settings configure the general behaviour of herbstluftwm and can be controlled via the <em>set</em>, <em>get</em> and <em>toggle</em> commands. The settings. object has an attribute for each setting. Many settings are wrappers around attributes and only remain for compatibility.</p></div>
3785 <div class="ulist"><ul>
3786 <li>
3787 <p>
3788 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">always_show_frame</span></code></strong> <span class="defaultvalue">= false</span>: DEPRECATED, use <code>show_frame_decorations</code> instead. Setting this corresponds to <em>focused</em> in <em>show_frame_decorations</em>.
3789 </p>
3790 </li>
3791 <li>
3792 <p>
3793 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">auto_detect_monitors</span></code></strong> <span class="defaultvalue">= false</span>: If set, detect_monitors is automatically executed every time a monitor is connected, disconnected or resized.
3794 </p>
3795 </li>
3796 <li>
3797 <p>
3798 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">auto_detect_panels</span></code></strong> <span class="defaultvalue">= true</span>: If set, EWMH panels are automatically detected and reserve space at the side of the monitors they are on (via pad attributes of each monitor). This setting is activated per default.
3799 </p>
3800 </li>
3801 <li>
3802 <p>
3803 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">default_direction_external_only</span></code></strong> <span class="defaultvalue">= false</span>: This setting controls the behaviour of focus and shift if no <em>-e</em> or <em>-i</em> argument is given. If set, then focus and shift changes the focused frame even if there are other clients in this frame in the specified <em>DIRECTION</em>. Else, a client within current frame is selected if it is in the specified <em>DIRECTION</em>.
3804 </p>
3805 </li>
3806 <li>
3807 <p>
3808 <em><span class="datatype">LayoutAlgorithm</span></em> <strong><code><span class="entryname">default_frame_layout</span></code></strong> <span class="defaultvalue">= vertical</span>: Name of the layout algorithm, which is used if a new frame is created (on a new tag or by a non-trivial split). See above for the <a href="#LIST_LAYOUT_ALGORITHMS">list of layout algorithms</a>.
3809 </p>
3810 </li>
3811 <li>
3812 <p>
3813 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">ellipsis</span></code></strong> <span class="defaultvalue">= &#8230;</span>: string to append when window or tab titles are shortened to fit in the available space.
3814 </p>
3815 </li>
3816 <li>
3817 <p>
3818 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">focus_crosses_monitor_boundaries</span></code></strong> <span class="defaultvalue">= true</span>: If set, commands <code>focus</code> and <code>shift</code> cross monitor boundaries. If there is no client in the direction given to <code>focus</code>, then the monitor in the specified direction is focused. Similarly, if <code>shift</code> cannot move a window within a tag, the window is moved to the neighbour monitor in the desired direction.
3819 </p>
3820 </li>
3821 <li>
3822 <p>
3823 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">focus_follows_mouse</span></code></strong> <span class="defaultvalue">= false</span>: If set and a window is focused by mouse cursor, this window is focused (this feature is also known as sloppy focus). If unset, you need to click to change the window focus by mouse.<br />
3824 <br />
3825 If another window is hidden by the focus change (e.g. when having pseudotiled windows in the max layout) then an extra click is required to change the focus.
3826 </p>
3827 </li>
3828 <li>
3829 <p>
3830 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">focus_stealing_prevention</span></code></strong> <span class="defaultvalue">= true</span>: If set, only pagers and taskbars are allowed to change the focus. If unset, all applications can request a focus change.
3831 </p>
3832 </li>
3833 <li>
3834 <p>
3835 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_active_opacity</span></code></strong> <span class="defaultvalue">= 100</span>: Focused frame opacity in percent. Requires a running compositing manager to take actual effect.
3836 </p>
3837 </li>
3838 <li>
3839 <p>
3840 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">frame_bg_active_color</span></code></strong> <span class="defaultvalue">= black</span>: The fill color of a focused frame.
3841 </p>
3842 </li>
3843 <li>
3844 <p>
3845 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">frame_bg_normal_color</span></code></strong> <span class="defaultvalue">= black</span>: The fill color of an unfocused frame (It is only visible if non-focused frames are configured to be visible, see <em>show_frame_decorations</em>).
3846 </p>
3847 </li>
3848 <li>
3849 <p>
3850 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">frame_bg_transparent</span></code></strong> <span class="defaultvalue">= false</span>: If set, the background of frames are transparent. That means a rectangle is cut out from the inner such that only the frame border and a stripe of width <em>frame_transparent_width</em> can be seen. Use <em>frame_active_opacity</em> and <em>frame_normal_opacity</em> for real transparency.
3851 </p>
3852 </li>
3853 <li>
3854 <p>
3855 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">frame_border_active_color</span></code></strong> <span class="defaultvalue">= red</span>: The border color of a focused frame.
3856 </p>
3857 </li>
3858 <li>
3859 <p>
3860 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">frame_border_inner_color</span></code></strong> <span class="defaultvalue">= black</span>: The color of the inner border of a frame.
3861 </p>
3862 </li>
3863 <li>
3864 <p>
3865 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_border_inner_width</span></code></strong> <span class="defaultvalue">= 0</span>: The width of the inner border of a frame. Must be less than <em>frame_border_width</em>, since it does not add to the frame border width but is a part of it.
3866 </p>
3867 </li>
3868 <li>
3869 <p>
3870 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">frame_border_normal_color</span></code></strong> <span class="defaultvalue">= blue</span>: The border color of an unfocused frame.
3871 </p>
3872 </li>
3873 <li>
3874 <p>
3875 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_border_width</span></code></strong> <span class="defaultvalue">= 2</span>: Border width of a frame.
3876 </p>
3877 </li>
3878 <li>
3879 <p>
3880 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_gap</span></code></strong> <span class="defaultvalue">= 5</span>: The gap between frames in the tiling mode.
3881 </p>
3882 </li>
3883 <li>
3884 <p>
3885 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_normal_opacity</span></code></strong> <span class="defaultvalue">= 100</span>: Unfocused frame opacity in percent. Requires a running compositing manager to take actual effect.
3886 </p>
3887 </li>
3888 <li>
3889 <p>
3890 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_padding</span></code></strong> <span class="defaultvalue">= 0</span>: The padding within a frame in the tiling mode, i.e. the space between the border of a frame and the windows within it.
3891 </p>
3892 </li>
3893 <li>
3894 <p>
3895 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_transparent_width</span></code></strong> <span class="defaultvalue">= 0</span>: Specifies the width of the remaining frame colored with <em>frame_bg_active_color</em> if <em>frame_bg_transparent</em> is set.
3896 </p>
3897 </li>
3898 <li>
3899 <p>
3900 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">gapless_grid</span></code></strong> <span class="defaultvalue">= true</span>: This setting affects the size of the last client in a frame that is arranged by grid layout. If set, then the last client always fills the gap within this frame. If unset, then the last client has the same size as all other clients in this frame.
3901 </p>
3902 </li>
3903 <li>
3904 <p>
3905 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">hide_covered_windows</span></code></strong> <span class="defaultvalue">= false</span>: If activated, windows are explicitly hidden when they are covered by another window in a frame with max layout. This only has a visible effect if a compositor is used. If activated, shadows do not stack up and transparent windows show the wallpaper behind them instead of the other clients in the max layout.
3906 </p>
3907 </li>
3908 <li>
3909 <p>
3910 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">monitors_locked</span></code></strong> <span class="defaultvalue">= 0</span>: If greater than 0, then the clients on all monitors aren&#8217;t moved or resized anymore. If it is set to 0, then the arranging of monitors is enabled again, and all monitors are rearranged if their content has changed in the meantime. You should not change this setting manually due to concurrency issues; use the commands <strong>lock</strong> and <strong>unlock</strong> instead.
3911 </p>
3912 </li>
3913 <li>
3914 <p>
3915 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">mouse_recenter_gap</span></code></strong> <span class="defaultvalue">= 0</span>: Specifies the gap around a monitor. If the monitor is selected and the mouse position would be restored into this gap, it is set to the center of the monitor. This is useful, when the monitor was left via mouse movement, but is reselected by keyboard. If the gap is 0 (default), the mouse is never recentered.
3916 </p>
3917 </li>
3918 <li>
3919 <p>
3920 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">pseudotile_center_threshold</span></code></strong> <span class="defaultvalue">= 10</span>: If greater than 0, it specifies the least distance between a centered pseudotile window and the border of the frame or tile it is assigned to. If this distance is lower than <em>pseudotile_center_threshold</em>, it is aligned to the top left of the client&#8217;s tile.
3921 </p>
3922 </li>
3923 <li>
3924 <p>
3925 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">raise_on_click</span></code></strong> <span class="defaultvalue">= true</span>: If set, a window is raised if it is clicked. The value of this setting is only noticed in floating mode.
3926 </p>
3927 </li>
3928 <li>
3929 <p>
3930 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">raise_on_focus</span></code></strong> <span class="defaultvalue">= false</span>: If set, a window is raised if it is focused. The value of this setting is only used in floating mode.
3931 </p>
3932 </li>
3933 <li>
3934 <p>
3935 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">raise_on_focus_temporarily</span></code></strong> <span class="defaultvalue">= false</span>: If set, a window is raised temporarily if it is focused on its tag. Temporarily in this case means that the window will return to its previous stacking position if another window is focused.
3936 </p>
3937 </li>
3938 <li>
3939 <p>
3940 <em><span class="datatype">ShowFrameDecorations</span></em> <strong><code><span class="entryname">show_frame_decorations</span></code></strong> <span class="defaultvalue">= focused_if_multiple</span>: This controls, which frame decorations are shown at all.
3941 </p>
3942 <div class="ulist"><ul>
3943 <li>
3944 <p>
3945 <em>none</em> shows no frame decorations at all,
3946 </p>
3947 </li>
3948 <li>
3949 <p>
3950 <em>nonempty</em> shows decorations of frames that have client windows,
3951 </p>
3952 </li>
3953 <li>
3954 <p>
3955 <em>if_multiple</em> shows decorations on the tags with at least two frames,
3956 </p>
3957 </li>
3958 <li>
3959 <p>
3960 <em>if_empty</em> shows decorations of frames that have no client windows,
3961 </p>
3962 </li>
3963 <li>
3964 <p>
3965 <em>focused</em> shows the decoration of focused and nonempty frames,
3966 </p>
3967 </li>
3968 <li>
3969 <p>
3970 <em>focused_if_multiple</em> shows decorations of focused and non-empty frames on tags with at least two frames.
3971 </p>
3972 </li>
3973 </ul></div>
3974 </li>
3975 <li>
3976 <p>
3977 <em><span class="datatype">SmartFrameSurroundings</span></em> <strong><code><span class="entryname">smart_frame_surroundings</span></code></strong> <span class="defaultvalue">= off</span>: If set to <em>hide_all</em>, frame borders and gaps will be removed when there is no ambiguity regarding the focused frame. If set to <em>hide_gaps</em>, only frame gaps will be removed when there is no ambiguity regarding the focused frame. Turn <em>off</em> to always show frame borders and gaps.
3978 </p>
3979 </li>
3980 <li>
3981 <p>
3982 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">smart_window_surroundings</span></code></strong> <span class="defaultvalue">= false</span>: If set, window borders and gaps will be removed and minimal when there&#8217;s no ambiguity regarding the focused window. This minimal window decoration can be configured by the <code>theme.minimal</code> object.
3983 </p>
3984 </li>
3985 <li>
3986 <p>
3987 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">snap_distance</span></code></strong> <span class="defaultvalue">= 10</span>: If a client is dragged in floating mode, then it snaps to neighbour clients if the distance between them is smaller than snap_distance.
3988 </p>
3989 </li>
3990 <li>
3991 <p>
3992 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">snap_gap</span></code></strong> <span class="defaultvalue">= 5</span>: Specifies the remaining gap if a dragged client snaps to an edge in floating mode. If snap_gap is set to 0, no gap will remain.
3993 </p>
3994 </li>
3995 <li>
3996 <p>
3997 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">swap_monitors_to_get_tag</span></code></strong> <span class="defaultvalue">= true</span>: If set: If you want to view a tag, that already is viewed on another monitor, then the monitor contents will be swapped and you see the wanted tag on the focused monitor. If not set, the other monitor is focused if it shows the desired tag.
3998 </p>
3999 </li>
4000 <li>
4001 <p>
4002 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">tabbed_max</span></code></strong> <span class="defaultvalue">= true</span>: if activated, multiple windows in a frame with the <em>max</em> layout algorithm are drawn as tabs.
4003 </p>
4004 </li>
4005 <li>
4006 <p>
4007 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">tree_style</span></code></strong> <span class="defaultvalue">= "&#42;| &#43;`--."</span>: It contains the chars that are used to print a nice ascii tree. It must contain at least 8 characters. e.g. <code>X|:&#35;+&#42;-.</code> produces a tree like:
4008 </p>
4009 <div class="listingblock">
4010 <div class="content">
4011 <pre><code>X-.
4012 #-. child 0
4013 | #-* child 00
4014 | +-* child 01
4015 +-. child 1
4016 : #-* child 10
4017 : +-* child 11</code></pre>
4018 </div></div>
4019 <div class="paragraph"><p>Useful values for <em>tree_style</em> are: <code>╾│ ├└╼─┐</code> or <code>-| |&#39;--.</code> or <code>╾│ ├╰╼─╮</code>.</p></div>
4020 </li>
4021 <li>
4022 <p>
4023 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">update_dragged_clients</span></code></strong> <span class="defaultvalue">= false</span>: If set, a client's window content is resized immediately during resizing it with the mouse. If unset, the client's content is resized after the mouse button is released.
4024 </p>
4025 </li>
4026 <li>
4027 <p>
4028 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">verbose</span></code></strong> <span class="defaultvalue">= false</span>: If set, verbose output is logged to herbstluftwm&#8217;s stderr. The default value is controlled by the <strong>--verbose</strong> command line flag.
4029 </p>
4030 </li>
4031 <li>
4032 <p>
4033 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">window_border_active_color</span></code></strong>: Border color of a focused window.<br />
4034 <br />
4035 <strong>Warning:</strong> This only exists for compatibility reasons; it is only an alias for the attribute <code>theme.active.color</code>.
4036 </p>
4037 </li>
4038 <li>
4039 <p>
4040 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">window_border_inner_color</span></code></strong>: Color of the inner border of a window. <strong>Warning:</strong> This only exists for compatibility reasons; it is only an alias for the attribute <code>theme.inner_color</code>.
4041 </p>
4042 </li>
4043 <li>
4044 <p>
4045 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">window_border_inner_width</span></code></strong>: The width of the inner border of a window. Must be less than window_border_width, since it does not add to the window border width but is a part of it.<br />
4046 <br />
4047 <strong>Warning:</strong> This only exists for compatibility reasons; it is only an alias for the attribute <code>theme.inner_width</code>.
4048 </p>
4049 </li>
4050 <li>
4051 <p>
4052 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">window_border_normal_color</span></code></strong>: Border color of an unfocused window.<br />
4053 <br />
4054 <strong>Warning:</strong> This only exists for compatibility reasons; it is only an alias for the attribute <code>theme.normal.color</code>.
4055 </p>
4056 </li>
4057 <li>
4058 <p>
4059 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">window_border_urgent_color</span></code></strong>: Border color of an unfocused but urgent window. <br />
4060 <br />
4061 <strong>Warning:</strong> This only exists for compatibility reasons; it is only an alias for the attribute <code>theme.urgent.color</code>.
4062 </p>
4063 </li>
4064 <li>
4065 <p>
4066 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">window_border_width</span></code></strong>: Border width of a window.<br />
4067 <br />
4068 <strong>Warning:</strong> This only exists for compatibility reasons; it is only an alias for the attribute <code>theme.border_width</code>.
4069 </p>
4070 </li>
4071 <li>
4072 <p>
4073 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">window_gap</span></code></strong> <span class="defaultvalue">= 0</span>: The gap between windows within one frame in the tiling mode.
4074 </p>
4075 </li>
4076 <li>
4077 <p>
4078 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">wmname</span></code></strong> <span class="defaultvalue">= herbstluftwm</span>: It controls the value of the <code>_NET_WM_NAME</code> property on the root window, which specifies the name of the running window manager. The value of this setting is not updated if the actual <code>_NET_WM_NAME</code> property on the root window is changed externally. Example usage:<br />
4079 <br />
4080 </p>
4081 <div class="ulist"><ul>
4082 <li>
4083 <p>
4084 <code>cycle_value wmname herbstluftwm LG3D</code>
4085 </p>
4086 </li>
4087 </ul></div>
4088 </li>
4089 </ul></div>
4090 </div>
4091 <div class="sect2">
4092 <h3 id="_tags_a_id_doc_cls_tagmanager_a">tags: <a id="doc_cls_tagmanager"></a></h3>
4093 <div class="paragraph"><p>The tags (or virtual desktops or workspaces). This contains an entry <em>index</em> for each tag with the given <em>index</em>.</p></div>
4094 <div class="ulist"><ul>
4095 <li>
4096 <p>
4097 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">count</span></code></strong>
4098 </p>
4099 </li>
4100 <li>
4101 <p>
4102 <strong><code><span class="entryname">by-name</span></code></strong>: For attributes and children, see <a href="#doc_cls_byname"><code>monitors.by-name</code></a>
4103 </p>
4104 </li>
4105 <li>
4106 <p>
4107 <strong><code><span class="entryname">focus</span></code></strong>: the object of the focused tag, equivalently, the tag on the focused monitor. <a id="doc_cls_hstag"></a>
4108 </p>
4109 <div class="ulist"><ul>
4110 <li>
4111 <p>
4112 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">at_end</span></code></strong> <span class="defaultvalue">= false</span>: all tags with this property activated will be kept at the end of the tag list. Usually, this property is set for special purpose tags like scratchpads.
4113 </p>
4114 </li>
4115 <li>
4116 <p>
4117 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">client_count</span></code></strong>: the number of clients on this tag
4118 </p>
4119 </li>
4120 <li>
4121 <p>
4122 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">curframe_wcount</span></code></strong>: number of clients in the selected frame
4123 </p>
4124 </li>
4125 <li>
4126 <p>
4127 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">curframe_windex</span></code></strong>: index of the focused client in the selected frame
4128 </p>
4129 </li>
4130 <li>
4131 <p>
4132 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">floating</span></code></strong> <span class="defaultvalue">= false</span>: if the entire tag is set to floating mode
4133 </p>
4134 </li>
4135 <li>
4136 <p>
4137 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">floating_focused</span></code></strong> <span class="defaultvalue">= false</span>: if the floating layer is focused (otherwise the tiling layer is)
4138 </p>
4139 </li>
4140 <li>
4141 <p>
4142 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">frame_count</span></code></strong>: the number of frames on this tag
4143 </p>
4144 </li>
4145 <li>
4146 <p>
4147 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">index</span></code></strong> <span class="defaultvalue">= 0</span>: index of this tag (the first index is 0)
4148 </p>
4149 </li>
4150 <li>
4151 <p>
4152 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">name</span></code></strong> <span class="defaultvalue">= name_</span>: name of the tag (must be non-empty)
4153 </p>
4154 </li>
4155 <li>
4156 <p>
4157 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">urgent_count</span></code></strong>: the number of urgent clients on this tag
4158 </p>
4159 </li>
4160 <li>
4161 <p>
4162 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">visible</span></code></strong> <span class="defaultvalue">= false</span>: if this tag is shown on some monitor
4163 </p>
4164 </li>
4165 <li>
4166 <p>
4167 <strong><code><span class="entryname">focused_client</span></code></strong>: For attributes and children, see <a href="#doc_cls_client"><code>clients.focus</code></a>
4168 </p>
4169 </li>
4170 <li>
4171 <p>
4172 <strong><code><span class="entryname">tiling</span></code></strong>: <a id="doc_cls_frametree"></a>
4173 </p>
4174 <div class="ulist"><ul>
4175 <li>
4176 <p>
4177 <strong><code><span class="entryname">focused_frame</span></code></strong>: The focused frame (leaf) in this frame tree. For attributes and children, see <a href="#doc_cls_frameleaf"><code>tags.focus.tiling.root</code></a>
4178 </p>
4179 </li>
4180 <li>
4181 <p>
4182 <strong><code><span class="entryname">root</span></code></strong> can be a frame leaf. <a id="doc_cls_frameleaf"></a>
4183 </p>
4184 <div class="ulist"><ul>
4185 <li>
4186 <p>
4187 <em><span class="datatype">LayoutAlgorithm</span></em> <strong><code><span class="entryname">algorithm</span></code></strong>
4188 </p>
4189 </li>
4190 <li>
4191 <p>
4192 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">client_count</span></code></strong>
4193 </p>
4194 </li>
4195 <li>
4196 <p>
4197 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">content_geometry</span></code></strong>: the geometry of the frame&#8217;s contents, i.e. of the area filled by child frames or client windows.
4198 </p>
4199 </li>
4200 <li>
4201 <p>
4202 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">index</span></code></strong>: A string containing only <em>0</em> and <em>1</em> that describes the position of the frame in the tree. The empty string denotes the root frame. Appending <em>0</em> (respectively <em>1</em>) to a frame index yields the frame index of the first (respectively second) subtree.
4203 </p>
4204 </li>
4205 <li>
4206 <p>
4207 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">selection</span></code></strong>
4208 </p>
4209 </li>
4210 </ul></div>
4211 </li>
4212 <li>
4213 <p>
4214 <strong><code><span class="entryname">root</span></code></strong> can be a frame split. <a id="doc_cls_framesplit"></a>
4215 </p>
4216 <div class="ulist"><ul>
4217 <li>
4218 <p>
4219 <em><span class="datatype">Rectangle</span></em> <strong><code><span class="entryname">content_geometry</span></code></strong>: the geometry of the frame&#8217;s contents, i.e. of the area filled by child frames or client windows.
4220 </p>
4221 </li>
4222 <li>
4223 <p>
4224 <em><span class="datatype">decimal</span></em> <strong><code><span class="entryname">fraction</span></code></strong>
4225 </p>
4226 </li>
4227 <li>
4228 <p>
4229 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">index</span></code></strong>: A string containing only <em>0</em> and <em>1</em> that describes the position of the frame in the tree. The empty string denotes the root frame. Appending <em>0</em> (respectively <em>1</em>) to a frame index yields the frame index of the first (respectively second) subtree.
4230 </p>
4231 </li>
4232 <li>
4233 <p>
4234 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">selection</span></code></strong>
4235 </p>
4236 </li>
4237 <li>
4238 <p>
4239 <em><span class="datatype">SplitAlign</span></em> <strong><code><span class="entryname">split_type</span></code></strong>
4240 </p>
4241 </li>
4242 <li>
4243 <p>
4244 <strong><code><span class="entryname">0</span></code></strong> can be a frame leaf. For attributes and children, see <a href="#doc_cls_frameleaf"><code>tags.focus.tiling.root</code></a>
4245 </p>
4246 </li>
4247 <li>
4248 <p>
4249 <strong><code><span class="entryname">0</span></code></strong> can be a frame split. For attributes and children, see <a href="#doc_cls_framesplit"><code>tags.focus.tiling.root</code></a>
4250 </p>
4251 </li>
4252 <li>
4253 <p>
4254 <strong><code><span class="entryname">1</span></code></strong> can be a frame leaf. For attributes and children, see <a href="#doc_cls_frameleaf"><code>tags.focus.tiling.root</code></a>
4255 </p>
4256 </li>
4257 <li>
4258 <p>
4259 <strong><code><span class="entryname">1</span></code></strong> can be a frame split. For attributes and children, see <a href="#doc_cls_framesplit"><code>tags.focus.tiling.root</code></a>
4260 </p>
4261 </li>
4262 </ul></div>
4263 </li>
4264 </ul></div>
4265 </li>
4266 </ul></div>
4267 </li>
4268 </ul></div>
4269 </div>
4270 <div class="sect2">
4271 <h3 id="_theme_a_id_doc_cls_theme_a">theme: <a id="doc_cls_theme"></a></h3>
4272 <div class="listingblock">
4273 <div class="content">
4274 <pre><code>inner_color/inner_width
4275 ╻ outer_color/outer_width
4276 │ ╻
4277 │ │
4278 ┌────╴│╶─────────────────┷─────┐ ⎫ border_width
4279 │ │ color │ ⎬ + title_height + title_depth
4280 │ ┌──┷─────────────────────┐ │ ⎭ + padding_top
4281 │ │====================....│ │
4282 │ │== window content ==....│ │
4283 │ │====================..╾──────── background_color
4284 │ │........................│ │
4285 │ └────────────────────────┘ │ ⎱ border_width +
4286 └──────────────────────────────┘ ⎰ padding_bottom</code></pre>
4287 </div></div>
4288 <div class="paragraph"><p>Setting an attribute of the theme object just propagates the value to the respective attribute of the <code>tiling</code> and the <code>floating</code> object.
4289 If the title area is divided into tabs, then the not selected tabs can be styled using the <code>tab_&#8230;</code> attributes. If these attributes are empty, then the colors are taken from the theme of the client to which the tab refers to.</p></div>
4290 <div class="ulist"><ul>
4291 <li>
4292 <p>
4293 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">background_color</span></code></strong> <span class="defaultvalue">= black</span>: color behind window contents visible on resize
4294 </p>
4295 </li>
4296 <li>
4297 <p>
4298 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">border_width</span></code></strong> <span class="defaultvalue">= 0</span>: the base width of the border
4299 </p>
4300 </li>
4301 <li>
4302 <p>
4303 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">color</span></code></strong> <span class="defaultvalue">= black</span>: the basic background color of the border
4304 </p>
4305 </li>
4306 <li>
4307 <p>
4308 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">inner_color</span></code></strong> <span class="defaultvalue">= black</span>: color of the inner border
4309 </p>
4310 </li>
4311 <li>
4312 <p>
4313 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">inner_width</span></code></strong> <span class="defaultvalue">= 0</span>: width of the border around the clients content
4314 </p>
4315 </li>
4316 <li>
4317 <p>
4318 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">outer_color</span></code></strong> <span class="defaultvalue">= black</span>: color of the outer border
4319 </p>
4320 </li>
4321 <li>
4322 <p>
4323 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">outer_width</span></code></strong> <span class="defaultvalue">= 0</span>: width of an border close to the edge
4324 </p>
4325 </li>
4326 <li>
4327 <p>
4328 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_bottom</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the bottom
4329 </p>
4330 </li>
4331 <li>
4332 <p>
4333 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_left</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the left
4334 </p>
4335 </li>
4336 <li>
4337 <p>
4338 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_right</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the right
4339 </p>
4340 </li>
4341 <li>
4342 <p>
4343 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_top</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the top
4344 </p>
4345 </li>
4346 <li>
4347 <p>
4348 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">reset</span></code></strong>: writing this resets all attributes to a default value
4349 </p>
4350 </li>
4351 <li>
4352 <p>
4353 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the color of non-urgent and unfocused tabs
4354 </p>
4355 </li>
4356 <li>
4357 <p>
4358 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_outer_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the outer border color of non-urgent and unfocused tabs; if empty, the colors are taken from the tab&#8217;sclient decoration settings.
4359 </p>
4360 </li>
4361 <li>
4362 <p>
4363 <em><span class="datatype">MaybeULong</span></em> <strong><code><span class="entryname">tab_outer_width</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the outer border width of non-urgent and unfocused tabs
4364 </p>
4365 </li>
4366 <li>
4367 <p>
4368 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_title_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the title color of non-urgent and unfocused tabs
4369 </p>
4370 </li>
4371 <li>
4372 <p>
4373 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">tight_decoration</span></code></strong> <span class="defaultvalue">= false</span>: specifies whether the size hints also affect the window decoration or only the window contents of tiled clients (requires enabled sizehints_tiling)
4374 </p>
4375 </li>
4376 <li>
4377 <p>
4378 <em><span class="datatype">TextAlign</span></em> <strong><code><span class="entryname">title_align</span></code></strong> <span class="defaultvalue">= left</span>: the horizontal alignment of the title within the tab or title bar. The value is one of: left, center, right
4379 </p>
4380 </li>
4381 <li>
4382 <p>
4383 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">title_color</span></code></strong> <span class="defaultvalue">= black</span>
4384 </p>
4385 </li>
4386 <li>
4387 <p>
4388 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">title_depth</span></code></strong> <span class="defaultvalue">= 0</span>: the space below the baseline of the window title
4389 </p>
4390 </li>
4391 <li>
4392 <p>
4393 <em><span class="datatype">font</span></em> <strong><code><span class="entryname">title_font</span></code></strong> <span class="defaultvalue">= fixed</span>
4394 </p>
4395 </li>
4396 <li>
4397 <p>
4398 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">title_height</span></code></strong> <span class="defaultvalue">= 0</span>
4399 </p>
4400 </li>
4401 <li>
4402 <p>
4403 <em><span class="datatype">TitleWhen</span></em> <strong><code><span class="entryname">title_when</span></code></strong> <span class="defaultvalue">= always</span>: when to show the window title: always, never, if the the client is in a tabbed scenario like a max frame (<code>one_tab</code>), if there are <code>multiple_tabs</code> to be shown.
4404 </p>
4405 </li>
4406 <li>
4407 <p>
4408 <strong><code><span class="entryname">active</span></code></strong>: configures the decoration of the focused client. <a id="doc_cls_decorationscheme"></a>
4409 </p>
4410 <div class="ulist"><ul>
4411 <li>
4412 <p>
4413 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">background_color</span></code></strong> <span class="defaultvalue">= black</span>: color behind window contents visible on resize
4414 </p>
4415 </li>
4416 <li>
4417 <p>
4418 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">border_width</span></code></strong> <span class="defaultvalue">= 0</span>: the base width of the border
4419 </p>
4420 </li>
4421 <li>
4422 <p>
4423 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">color</span></code></strong> <span class="defaultvalue">= black</span>: the basic background color of the border
4424 </p>
4425 </li>
4426 <li>
4427 <p>
4428 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">inner_color</span></code></strong> <span class="defaultvalue">= black</span>: color of the inner border
4429 </p>
4430 </li>
4431 <li>
4432 <p>
4433 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">inner_width</span></code></strong> <span class="defaultvalue">= 0</span>: width of the border around the clients content
4434 </p>
4435 </li>
4436 <li>
4437 <p>
4438 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">outer_color</span></code></strong> <span class="defaultvalue">= black</span>: color of the outer border
4439 </p>
4440 </li>
4441 <li>
4442 <p>
4443 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">outer_width</span></code></strong> <span class="defaultvalue">= 0</span>: width of an border close to the edge
4444 </p>
4445 </li>
4446 <li>
4447 <p>
4448 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_bottom</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the bottom
4449 </p>
4450 </li>
4451 <li>
4452 <p>
4453 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_left</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the left
4454 </p>
4455 </li>
4456 <li>
4457 <p>
4458 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_right</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the right
4459 </p>
4460 </li>
4461 <li>
4462 <p>
4463 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_top</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the top
4464 </p>
4465 </li>
4466 <li>
4467 <p>
4468 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">reset</span></code></strong>: writing this resets all attributes to a default value
4469 </p>
4470 </li>
4471 <li>
4472 <p>
4473 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the color of non-urgent and unfocused tabs
4474 </p>
4475 </li>
4476 <li>
4477 <p>
4478 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_outer_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the outer border color of non-urgent and unfocused tabs; if empty, the colors are taken from the tab&#8217;sclient decoration settings.
4479 </p>
4480 </li>
4481 <li>
4482 <p>
4483 <em><span class="datatype">MaybeULong</span></em> <strong><code><span class="entryname">tab_outer_width</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the outer border width of non-urgent and unfocused tabs
4484 </p>
4485 </li>
4486 <li>
4487 <p>
4488 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_title_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the title color of non-urgent and unfocused tabs
4489 </p>
4490 </li>
4491 <li>
4492 <p>
4493 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">tight_decoration</span></code></strong> <span class="defaultvalue">= false</span>: specifies whether the size hints also affect the window decoration or only the window contents of tiled clients (requires enabled sizehints_tiling)
4494 </p>
4495 </li>
4496 <li>
4497 <p>
4498 <em><span class="datatype">TextAlign</span></em> <strong><code><span class="entryname">title_align</span></code></strong> <span class="defaultvalue">= left</span>: the horizontal alignment of the title within the tab or title bar. The value is one of: left, center, right
4499 </p>
4500 </li>
4501 <li>
4502 <p>
4503 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">title_color</span></code></strong> <span class="defaultvalue">= black</span>
4504 </p>
4505 </li>
4506 <li>
4507 <p>
4508 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">title_depth</span></code></strong> <span class="defaultvalue">= 0</span>: the space below the baseline of the window title
4509 </p>
4510 </li>
4511 <li>
4512 <p>
4513 <em><span class="datatype">font</span></em> <strong><code><span class="entryname">title_font</span></code></strong> <span class="defaultvalue">= fixed</span>
4514 </p>
4515 </li>
4516 <li>
4517 <p>
4518 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">title_height</span></code></strong> <span class="defaultvalue">= 0</span>
4519 </p>
4520 </li>
4521 <li>
4522 <p>
4523 <em><span class="datatype">TitleWhen</span></em> <strong><code><span class="entryname">title_when</span></code></strong> <span class="defaultvalue">= always</span>: when to show the window title: always, never, if the the client is in a tabbed scenario like a max frame (<code>one_tab</code>), if there are <code>multiple_tabs</code> to be shown.
4524 </p>
4525 </li>
4526 </ul></div>
4527 </li>
4528 <li>
4529 <p>
4530 <strong><code><span class="entryname">floating</span></code></strong>: behaves analogously to <code>tiling</code>. <a id="doc_cls_dectriple"></a>
4531 </p>
4532 <div class="ulist"><ul>
4533 <li>
4534 <p>
4535 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">background_color</span></code></strong> <span class="defaultvalue">= black</span>: color behind window contents visible on resize
4536 </p>
4537 </li>
4538 <li>
4539 <p>
4540 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">border_width</span></code></strong> <span class="defaultvalue">= 0</span>: the base width of the border
4541 </p>
4542 </li>
4543 <li>
4544 <p>
4545 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">color</span></code></strong> <span class="defaultvalue">= black</span>: the basic background color of the border
4546 </p>
4547 </li>
4548 <li>
4549 <p>
4550 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">inner_color</span></code></strong> <span class="defaultvalue">= black</span>: color of the inner border
4551 </p>
4552 </li>
4553 <li>
4554 <p>
4555 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">inner_width</span></code></strong> <span class="defaultvalue">= 0</span>: width of the border around the clients content
4556 </p>
4557 </li>
4558 <li>
4559 <p>
4560 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">outer_color</span></code></strong> <span class="defaultvalue">= black</span>: color of the outer border
4561 </p>
4562 </li>
4563 <li>
4564 <p>
4565 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">outer_width</span></code></strong> <span class="defaultvalue">= 0</span>: width of an border close to the edge
4566 </p>
4567 </li>
4568 <li>
4569 <p>
4570 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_bottom</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the bottom
4571 </p>
4572 </li>
4573 <li>
4574 <p>
4575 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_left</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the left
4576 </p>
4577 </li>
4578 <li>
4579 <p>
4580 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_right</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the right
4581 </p>
4582 </li>
4583 <li>
4584 <p>
4585 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">padding_top</span></code></strong> <span class="defaultvalue">= 0</span>: additional border width on the top
4586 </p>
4587 </li>
4588 <li>
4589 <p>
4590 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">reset</span></code></strong>: writing this resets all attributes to a default value
4591 </p>
4592 </li>
4593 <li>
4594 <p>
4595 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the color of non-urgent and unfocused tabs
4596 </p>
4597 </li>
4598 <li>
4599 <p>
4600 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_outer_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the outer border color of non-urgent and unfocused tabs; if empty, the colors are taken from the tab&#8217;sclient decoration settings.
4601 </p>
4602 </li>
4603 <li>
4604 <p>
4605 <em><span class="datatype">MaybeULong</span></em> <strong><code><span class="entryname">tab_outer_width</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the outer border width of non-urgent and unfocused tabs
4606 </p>
4607 </li>
4608 <li>
4609 <p>
4610 <em><span class="datatype">MaybeColor</span></em> <strong><code><span class="entryname">tab_title_color</span></code></strong> <span class="defaultvalue">= Inherit</span>: if non-empty, the title color of non-urgent and unfocused tabs
4611 </p>
4612 </li>
4613 <li>
4614 <p>
4615 <em><span class="datatype">bool</span></em> <strong><code><span class="entryname">tight_decoration</span></code></strong> <span class="defaultvalue">= false</span>: specifies whether the size hints also affect the window decoration or only the window contents of tiled clients (requires enabled sizehints_tiling)
4616 </p>
4617 </li>
4618 <li>
4619 <p>
4620 <em><span class="datatype">TextAlign</span></em> <strong><code><span class="entryname">title_align</span></code></strong> <span class="defaultvalue">= left</span>: the horizontal alignment of the title within the tab or title bar. The value is one of: left, center, right
4621 </p>
4622 </li>
4623 <li>
4624 <p>
4625 <em><span class="datatype">color</span></em> <strong><code><span class="entryname">title_color</span></code></strong> <span class="defaultvalue">= black</span>
4626 </p>
4627 </li>
4628 <li>
4629 <p>
4630 <em><span class="datatype">int</span></em> <strong><code><span class="entryname">title_depth</span></code></strong> <span class="defaultvalue">= 0</span>: the space below the baseline of the window title
4631 </p>
4632 </li>
4633 <li>
4634 <p>
4635 <em><span class="datatype">font</span></em> <strong><code><span class="entryname">title_font</span></code></strong> <span class="defaultvalue">= fixed</span>
4636 </p>
4637 </li>
4638 <li>
4639 <p>
4640 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">title_height</span></code></strong> <span class="defaultvalue">= 0</span>
4641 </p>
4642 </li>
4643 <li>
4644 <p>
4645 <em><span class="datatype">TitleWhen</span></em> <strong><code><span class="entryname">title_when</span></code></strong> <span class="defaultvalue">= always</span>: when to show the window title: always, never, if the the client is in a tabbed scenario like a max frame (<code>one_tab</code>), if there are <code>multiple_tabs</code> to be shown.
4646 </p>
4647 </li>
4648 <li>
4649 <p>
4650 <strong><code><span class="entryname">active</span></code></strong>: configures the decoration of the focused client. For attributes and children, see <a href="#doc_cls_decorationscheme"><code>theme.active</code></a>
4651 </p>
4652 </li>
4653 <li>
4654 <p>
4655 <strong><code><span class="entryname">normal</span></code></strong>: the default decoration scheme for clients. For attributes and children, see <a href="#doc_cls_decorationscheme"><code>theme.active</code></a>
4656 </p>
4657 </li>
4658 <li>
4659 <p>
4660 <strong><code><span class="entryname">urgent</span></code></strong>: configures the decoration of urgent clients. For attributes and children, see <a href="#doc_cls_decorationscheme"><code>theme.active</code></a>
4661 </p>
4662 </li>
4663 </ul></div>
4664 </li>
4665 <li>
4666 <p>
4667 <strong><code><span class="entryname">fullscreen</span></code></strong>: configures clients in fullscreen state. For attributes and children, see <a href="#doc_cls_dectriple"><code>theme.floating</code></a>
4668 </p>
4669 </li>
4670 <li>
4671 <p>
4672 <strong><code><span class="entryname">minimal</span></code></strong>: configures clients with minimal decorations triggered by <code>smart_window_surroundings</code>. For attributes and children, see <a href="#doc_cls_dectriple"><code>theme.floating</code></a>
4673 </p>
4674 </li>
4675 <li>
4676 <p>
4677 <strong><code><span class="entryname">normal</span></code></strong>: the default decoration scheme for clients. For attributes and children, see <a href="#doc_cls_decorationscheme"><code>theme.active</code></a>
4678 </p>
4679 </li>
4680 <li>
4681 <p>
4682 <strong><code><span class="entryname">tiling</span></code></strong>: configures the decoration of tiled clients, setting one of its attributes propagates the respective attribute of the <code>active</code>, <code>normal</code> and <code>urgent</code> child objects. For attributes and children, see <a href="#doc_cls_dectriple"><code>theme.floating</code></a>
4683 </p>
4684 </li>
4685 <li>
4686 <p>
4687 <strong><code><span class="entryname">urgent</span></code></strong>: configures the decoration of urgent clients. For attributes and children, see <a href="#doc_cls_decorationscheme"><code>theme.active</code></a>
4688 </p>
4689 </li>
4690 </ul></div>
4691 </div>
4692 <div class="sect2">
4693 <h3 id="_types_a_id_doc_cls_typesdoc_a">types: <a id="doc_cls_typesdoc"></a></h3>
4694 <div class="paragraph"><p>This lists the types that are used for attributes and command arguments.</p></div>
4695 <div class="ulist"><ul>
4696 <li>
4697 <p>
4698 <strong><code><span class="entryname">bool</span></code></strong>: Type representing boolean values, i.e. an <em>on</em> or <em>off</em> state, with aliases <em>true</em> and <em>false</em>. When writing to a boolean value, one can also specify <em>toggle</em> in order to alter its value. <a id="doc_cls_typedesc"></a>
4699 </p>
4700 <div class="ulist"><ul>
4701 <li>
4702 <p>
4703 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">fullname</span></code></strong>: the full and unique name of this type
4704 </p>
4705 </li>
4706 <li>
4707 <p>
4708 <em><span class="datatype">string</span></em> <strong><code><span class="entryname">shortname</span></code></strong>: A short (one-character long) name of this type which is used in the output of the <em>attr</em> command
4709 </p>
4710 </li>
4711 </ul></div>
4712 </li>
4713 <li>
4714 <p>
4715 <strong><code><span class="entryname">color</span></code></strong>: Type representing colors.
4716 A color can be defined in one of the following formats:
4717 </p>
4718 <div class="olist arabic"><ol class="arabic">
4719 <li>
4720 <p>
4721 #RRGGBB where R, G, B are hexidecimal digits (0-9, A-F),
4722 and RR, GG, BB represent the values for red, green, blue.
4723 </p>
4724 </li>
4725 <li>
4726 <p>
4727 #RRGGBBAA represents a color with alpha-value AA.
4728 The alpha value 00 is fully transparent and FF is fully
4729 opaque/intransparent.
4730 </p>
4731 </li>
4732 <li>
4733 <p>
4734 a common color name like <em>red</em>, <em>blue,</em> <em>orange</em>, etc. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4735 </p>
4736 </li>
4737 </ol></div>
4738 </li>
4739 <li>
4740 <p>
4741 <strong><code><span class="entryname">decimal</span></code></strong>: Fixed precision decimal numbers, e.g. 0.34. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4742 </p>
4743 </li>
4744 <li>
4745 <p>
4746 <strong><code><span class="entryname">font</span></code></strong>: A font specification (font family with modifiers regarding size, weight, etc.) in one of the following formats:<br />
4747 <br />
4748 </p>
4749 <div class="ulist"><ul>
4750 <li>
4751 <p>
4752 Fontconfig description. This supports antialiased fonts,
4753 for example:
4754 </p>
4755 <div class="ulist"><ul>
4756 <li>
4757 <p>
4758 <em>Dejavu Sans:pixelsize=12</em>
4759 </p>
4760 </li>
4761 <li>
4762 <p>
4763 <em>Bitstream Vera Sans:size=12:bold</em><br />
4764 <br />
4765 </p>
4766 </li>
4767 </ul></div>
4768 </li>
4769 <li>
4770 <p>
4771 X logical font description (XLFD), as provided by the
4772 xfontsel tool. No antialiasing is supported here, but this
4773 is usually superior for bitmap fonts. For example:
4774 </p>
4775 <div class="ulist"><ul>
4776 <li>
4777 <p>
4778 <em>-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*</em> for a standard
4779 bitmap font available on most systems. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4780 </p>
4781 </li>
4782 </ul></div>
4783 </li>
4784 </ul></div>
4785 </li>
4786 <li>
4787 <p>
4788 <strong><code><span class="entryname">int</span></code></strong>: Type representing signed integers.
4789 When overwriting an integer, you can increase or decrease its value relatively by writing <em>+=N</em> or <em>-=N</em> where N is an integer. So for example, writing <em>+=3</em> to an attribute increases its value by 3. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4790 </p>
4791 </li>
4792 <li>
4793 <p>
4794 <strong><code><span class="entryname">names</span></code></strong>: A fixed set of names, depending on the context, e.g. names of layout algorithms or the split type of a non-leaf frame (which is only <em>horizontal</em> or <em>vertical</em>). For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4795 </p>
4796 </li>
4797 <li>
4798 <p>
4799 <strong><code><span class="entryname">rectangle</span></code></strong>: A rectangle on the screen consisting of a size and the position on the screen. The format is WxH+X+Y where W is the width, H is the height, and X and Y are the coordinates of the top left corner of the rectangle: X is the number of pixels to the left screen edge and Y is the number of pixels to the top screen edge. (if X or Y is negative, then the + turns into -). For example: 800x600+800+0 or 400x200-10+30. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4800 </p>
4801 </li>
4802 <li>
4803 <p>
4804 <strong><code><span class="entryname">regex</span></code></strong>: A POSIX extended regular expression. Note that when passing a regex on the command line, additional quoting can be necessary. For explanations and examples, see section 9.4.6 of the documentation: <a href="https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04_06">https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09_04_06</a>. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4805 </p>
4806 </li>
4807 <li>
4808 <p>
4809 <strong><code><span class="entryname">string</span></code></strong>: Type representing normal text. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4810 </p>
4811 </li>
4812 <li>
4813 <p>
4814 <strong><code><span class="entryname">uint</span></code></strong>: Type representing unsigned (i.e. non-negative) integers.
4815 When overwriting an integer, you can increase or decrease its value relatively by writing <em>+=N</em> or <em>-=N</em> where N is an integer. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4816 </p>
4817 </li>
4818 <li>
4819 <p>
4820 <strong><code><span class="entryname">windowid</span></code></strong>: The window id is the number of a window. This can be a managed window (i.e. client) or an unmanaged window (e.g. a panel, a menu, or a desktop window).
4821 The default format is 0xHEX where HEX is a hexadecimal number (digits 0-9 and a-f) but it can also be specified in the decimal system (base 10), or as an octal number (with prefix 0 and base 8).
4822 When a window id is printed, it is always printed in the 0xHEX format and without any leading zeroes. For attributes and children, see <a href="#doc_cls_typedesc"><code>types.bool</code></a>
4823 </p>
4824 </li>
4825 </ul></div>
4826 </div>
4827 <div class="sect2">
4828 <h3 id="_watchers_a_id_doc_cls_watchers_a">watchers: <a id="doc_cls_watchers"></a></h3>
4829 <div class="ulist"><ul>
4830 <li>
4831 <p>
4832 <em><span class="datatype">uint</span></em> <strong><code><span class="entryname">count</span></code></strong>: the number of attributes that are watched
4833 </p>
4834 </li>
4835 </ul></div>
4836 </div>
4837 </div>
4838 </div>
4839 <div class="sect1">
4840 <h2 id="AUTOSTART">AUTOSTART FILE</h2>
4841 <div class="sectionbody">
4842 <div class="paragraph"><p>There is no configuration file but an autostart file, which is executed on
4843 startup. It is also executed on command <em>reload</em>. If not specified by the
4844 <strong>--autostart</strong> argument, autostart file is located at
4845 <em>$XDG_CONFIG_HOME/herbstluftwm/autostart</em> or at
4846 <em>~/.config/herbstluftwm/autostart</em>. Normally it consists of a few <strong>herbstclient</strong>
4847 calls. If executing the autostart file in a user&#8217;s home fails the global
4848 autostart file (mostly placed at /etc/xdg/herbstluftwm/autostart) is executed as
4849 a fallback.</p></div>
4850 <div class="paragraph"><p>For a quick install, copy the default autostart file to
4851 <em>~/.config/herbstluftwm/</em>.</p></div>
4852 </div>
4853 </div>
4854 <div class="sect1">
4855 <h2 id="_hooks">HOOKS</h2>
4856 <div class="sectionbody">
4857 <div class="paragraph"><p>On special events, herbstluftwm emits some hooks (with parameters). You can
4858 receive or wait for them with <a href="herbstclient.html"><strong>herbstclient</strong>(1)</a>. Also custom hooks can be
4859 emitted with the <strong>emit_hook</strong> command. The following hooks are emitted by
4860 herbstluftwm itself:</p></div>
4861 <div class="dlist"><dl>
4862 <dt class="hdlist1">
4863 attribute_changed <em>PATH</em> <em>OLDVALUE</em> <em>NEWVALUE</em>
4864 </dt>
4865 <dd>
4866 <p>
4867 The attribute <em>PATH</em> was changed from <em>OLDVALUE</em> to <em>NEWVALUE</em>. Requires
4868 that the attribute <em>PATH</em> has been passed to <a href="#watch">the <code>watch</code> command</a>
4869 before.
4870 </p>
4871 </dd>
4872 <dt class="hdlist1">
4873 fullscreen [on|off] <em>WINID</em>
4874 </dt>
4875 <dd>
4876 <p>
4877 The fullscreen state of window <em>WINID</em> was changed to [on|off].
4878 </p>
4879 </dd>
4880 <dt class="hdlist1">
4881 tag_changed <em>TAG</em> <em>MONITOR</em>
4882 </dt>
4883 <dd>
4884 <p>
4885 The tag <em>TAG</em> was selected on <em>MONITOR</em>.
4886 </p>
4887 </dd>
4888 <dt class="hdlist1">
4889 focus_changed <em>WINID</em> <em>TITLE</em>
4890 </dt>
4891 <dd>
4892 <p>
4893 The window <em>WINID</em> was focused. Its window title is <em>TITLE</em>.
4894 </p>
4895 </dd>
4896 <dt class="hdlist1">
4897 window_title_changed <em>WINID</em> <em>TITLE</em>
4898 </dt>
4899 <dd>
4900 <p>
4901 The title of the <strong>focused</strong> window was changed. Its window id is <em>WINID</em> and
4902 its new title is <em>TITLE</em>.
4903 </p>
4904 </dd>
4905 <dt class="hdlist1">
4906 tag_flags
4907 </dt>
4908 <dd>
4909 <p>
4910 The flags (i.e. urgent or filled state) have been changed.
4911 </p>
4912 </dd>
4913 <dt class="hdlist1">
4914 tag_added <em>TAG</em>
4915 </dt>
4916 <dd>
4917 <p>
4918 A tag named <em>TAG</em> was added.
4919 </p>
4920 </dd>
4921 <dt class="hdlist1">
4922 tag_removed <em>TAG</em>
4923 </dt>
4924 <dd>
4925 <p>
4926 The tag named <em>TAG</em> was removed.
4927 </p>
4928 </dd>
4929 <dt class="hdlist1">
4930 tag_renamed <em>OLD</em> <em>NEW</em>
4931 </dt>
4932 <dd>
4933 <p>
4934 The tag name changed from <em>OLD</em> to <em>NEW</em>.
4935 </p>
4936 </dd>
4937 <dt class="hdlist1">
4938 urgent [on|off] <em>WINID</em>
4939 </dt>
4940 <dd>
4941 <p>
4942 The urgent state of client with given <em>WINID</em> has been changed to [on|off].
4943 </p>
4944 </dd>
4945 <dt class="hdlist1">
4946 rule <em>NAME</em> <em>WINID</em>
4947 </dt>
4948 <dd>
4949 <p>
4950 A window with the id <em>WINID</em> appeared which triggered a rule with the
4951 consequence hook=<em>NAME</em>.
4952 </p>
4953 </dd>
4954 </dl></div>
4955 <div class="paragraph"><p>There are also other useful hooks, which never will be emitted by herbstluftwm
4956 itself, but which can be emitted with the <strong>emit_hook</strong> command:</p></div>
4957 <div class="dlist"><dl>
4958 <dt class="hdlist1">
4959 quit_panel
4960 </dt>
4961 <dd>
4962 <p>
4963 Tells a panel to quit. The default panel.sh quits on this hook. Many
4964 scripts are using this hook.
4965 </p>
4966 </dd>
4967 <dt class="hdlist1">
4968 reload
4969 </dt>
4970 <dd>
4971 <p>
4972 Tells all daemons that the <em>autostart</em> file is reloaded&#8201;&#8212;&#8201;and tells them
4973 to quit. This hook <strong>should</strong> be emitted in the first line of every <em>autostart</em>
4974 file.
4975 </p>
4976 </dd>
4977 </dl></div>
4978 </div>
4979 </div>
4980 <div class="sect1">
4981 <h2 id="STACKING">STACKING</h2>
4982 <div class="sectionbody">
4983 <div class="paragraph"><p>Every tag has its own stack of clients that are on this tag. Similar to the EWMH
4984 specification each tag stack contains several layers, which are from top to
4985 bottom:</p></div>
4986 <div class="ulist"><ul>
4987 <li>
4988 <p>
4989 the focused client (if raise_on_focus_temporarily is enabled)
4990 </p>
4991 </li>
4992 <li>
4993 <p>
4994 clients in fullscreen
4995 </p>
4996 </li>
4997 <li>
4998 <p>
4999 normal clients
5000 </p>
5001 </li>
5002 <li>
5003 <p>
5004 frame decorations
5005 </p>
5006 </li>
5007 </ul></div>
5008 <div class="paragraph"><p>All monitors are managed in one large stack which only consists of the stacks of
5009 the visible tags put above each other. The stacking order of these monitors is
5010 independent from their indices and can be modified using the <strong>raise_monitor</strong>
5011 command. The current stack is illustrated by the <strong>stack</strong> command.</p></div>
5012 </div>
5013 </div>
5014 <div class="sect1">
5015 <h2 id="EWMH">EWMH and X11 Properties</h2>
5016 <div class="sectionbody">
5017 <div class="paragraph"><p>As far as possible, herbstluftwm tries to be EWMH compliant. That includes:</p></div>
5018 <div class="ulist"><ul>
5019 <li>
5020 <p>
5021 Information about tag names and client lists is provided.
5022 </p>
5023 </li>
5024 <li>
5025 <p>
5026 Desktop windows from desktop environments are not managed and kept below the
5027 other windows.
5028 </p>
5029 </li>
5030 <li>
5031 <p>
5032 Client requests like getting focused are only processed if the setting
5033 <em>focus_stealing_prevention</em> is disabled.
5034 </p>
5035 </li>
5036 </ul></div>
5037 <div class="paragraph"><p>Moreover, herbstluftwm sets the X11 properties <em>HLWM_FLOATING_WINDOW</em> and
5038 <em>HLWM_TILING_WINDOW</em> to indicate whether a window is in floating or tiling mode,
5039 that is, the value of the client&#8217;s <em>floating_effectively</em> attribute.</p></div>
5040 </div>
5041 </div>
5042 <div class="sect1">
5043 <h2 id="_environment_variables">ENVIRONMENT VARIABLES</h2>
5044 <div class="sectionbody">
5045 <div class="dlist"><dl>
5046 <dt class="hdlist1">
5047 DISPLAY
5048 </dt>
5049 <dd>
5050 <p>
5051 Specifies the <em>DISPLAY</em> to use.
5052 </p>
5053 </dd>
5054 </dl></div>
5055 </div>
5056 </div>
5057 <div class="sect1">
5058 <h2 id="_files">FILES</h2>
5059 <div class="sectionbody">
5060 <div class="paragraph"><p>The following files are used by herbstluftwm:</p></div>
5061 <div class="ulist"><ul>
5062 <li>
5063 <p>
5064 <em>autostart</em>, see section <a href="#AUTOSTART"><strong>AUTOSTART FILE</strong></a>.
5065 </p>
5066 </li>
5067 </ul></div>
5068 </div>
5069 </div>
5070 <div class="sect1">
5071 <h2 id="_exit_status">EXIT STATUS</h2>
5072 <div class="sectionbody">
5073 <div class="paragraph"><p>Returns <strong>0</strong> on success. Returns <code>EXIT_FAILURE</code> if it cannot startup or if
5074 <em>wmexec</em> fails.</p></div>
5075 </div>
5076 </div>
5077 <div class="sect1">
5078 <h2 id="_bugs">BUGS</h2>
5079 <div class="sectionbody">
5080 <div class="paragraph"><p>See the <strong>herbstluftwm</strong> Github issues: <a href="https://github.com/herbstluftwm/herbstluftwm/issues">https://github.com/herbstluftwm/herbstluftwm/issues</a></p></div>
5081 </div>
5082 </div>
5083 <div class="sect1">
5084 <h2 id="_community">COMMUNITY</h2>
5085 <div class="sectionbody">
5086 <div class="paragraph"><p>Feel free to join the IRC channel <em>#herbstluftwm</em> on <em>irc.libera.chat</em>.</p></div>
5087 </div>
5088 </div>
5089 <div class="sect1">
5090 <h2 id="_author">AUTHOR</h2>
5091 <div class="sectionbody">
5092 <div class="paragraph"><p><strong>herbstluftwm</strong> was written by Thorsten Wißmann. All contributors are listed in
5093 the <strong>herbstluftwm</strong> distribution AUTHORS file.</p></div>
5094 </div>
5095 </div>
5096 <div class="sect1">
5097 <h2 id="_resources">RESOURCES</h2>
5098 <div class="sectionbody">
5099 <div class="paragraph"><p>Homepage: <a href="http://herbstluftwm.org">http://herbstluftwm.org</a></p></div>
5100 <div class="paragraph"><p>Github page: <a href="http://github.com/herbstluftwm/herbstluftwm">http://github.com/herbstluftwm/herbstluftwm</a></p></div>
5101 <div class="paragraph"><p>Patch submission and bug reporting:</p></div>
5102 <div class="literalblock">
5103 <div class="content">
5104 <pre><code>[email protected]</code></pre>
5105 </div></div>
5106 </div>
5107 </div>
5108 <div class="sect1">
5109 <h2 id="_copying">COPYING</h2>
5110 <div class="sectionbody">
5111 <div class="paragraph"><p>Copyright 2011-2020 Thorsten Wißmann. All rights reserved.</p></div>
5112 <div class="paragraph"><p>This software is licensed under the "Simplified BSD License". See LICENSE for
5113 details.</p></div>
5114 </div>
5115 </div>
5116 </div>
5117 <div id="footnotes"><hr /></div>
5118 <div id="footer">
5119 <div id="footer-text">
5120 Last updated
5121 2022-07-20 10:55:52 CEST
5122 </div>
5123 </div>
5124 </body>
5125 </html>