river icon indicating copy to clipboard operation
river copied to clipboard

Add spawn -tags argument to allow setting inital tags

Open FoundOne opened this issue 5 years ago • 5 comments

I prefer to put my instant messengers/chats in a certain tag, which is not visble by default and just having the notifications form them when I do other stuff. Every time I start river I have to spawn them manually, which gets tedious over time. Is there a way to automate that process?

FoundOne avatar Jan 14 '21 14:01 FoundOne

Not yet, but it is planned to add a -tags argument to spawn that allows setting the tags to spawn the program with. This will work by keeping track of the pid of the spawned process and checking against the pid of new wayland clients that map a toplevel.

ifreund avatar Jan 14 '21 14:01 ifreund

@ifreund Is there any chance we can get this feature, I tried implement it myself but I don't have enough acknowledge about zig and wayland APIs

mortezadadgar avatar Oct 07 '21 08:10 mortezadadgar

With xdg-activation there is now a better, non pid based way to implement this. See this wlroots PR https://github.com/swaywm/wlroots/pull/3305

ifreund avatar Oct 31 '21 09:10 ifreund