enable swallow for every client #346
Replies: 1 comment 2 replies
-
Maybe read through https://dwm.suckless.org/patches/swallow/? If you create client rules that marks a client as a "terminal" then that client will be able to swallow windows. As you say this would be great for file managers like nautilus as an example, but the swallow functionality depends on two things:
If you open an image or a document from nautilus then this will open as an orphan, as in the opened window has nothing to do with nautilus. As such swallowing will not work in this case because the opened window is not a descendant of the file manager. Most programs launching other program will work this way and terminal emulators is more like an exception in this context. That would the reason why the client rule indicates a "terminal" rather than something more generic like "can swallow". The Rule struct controls the options when it comes to client rules: Lines 535 to 574 in fcbe686 An example rule could be: RULE(.class = "st-256color", .terminal = 1) |
Beta Was this translation helpful? Give feedback.
-
i'm not sure how to allow every window to be able to swallow windows, this can be useful for file managers and various terminals i use, plus i am not sure how to enable swallowing as there is no template'd rule for such a thing
Beta Was this translation helpful? Give feedback.
All reactions