Skip to content

Commit 62a1430

Browse files
committed
faq: improve guidance on setting decorations
1 parent 28ceb4e commit 62a1430

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/faq.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,26 @@ In true `sway` style:
7272

7373
### Q: Is it possible to completely remove windows' title-bars?
7474

75-
Yes. Action `ToggleDecoration`, but it removes borders too.
75+
Yes.
76+
77+
Action `SetDecorations` can be used for this. This action can be used with
78+
key/mousebinds or with window rules like this:
79+
80+
```
81+
<windowRules>
82+
<windowRule identifier="*">
83+
<action name="SetDecorations" decorations="border" />
84+
</windowRule>
85+
</windowRules>
86+
```
87+
88+
With window rules it can be achieve more simply as in the example below, but
89+
that will remove borders too:
7690

7791
```
78-
<windowRule title="*" >
79-
<action name="ToggleDecoration"/>
80-
</windowRule>
92+
<windowRules>
93+
<windowRule identifier="*" serverDecoration="no" />
94+
</windowRules>
8195
```
8296

8397
### Q: I'd like to be able to remove the client-menu button. How can this be done?

0 commit comments

Comments
 (0)