ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.3k stars 62 forks source link

Add close and open functions to swaync-client #49

Closed nightly-brew closed 2 years ago

nightly-brew commented 2 years ago

swaync-client --toggle-panel is great for toggling the center with a simple keybind, but from a scripting point of view it is not possible to force the control center in one of the two statuses directly though the client.

I'm envisioning something like swaync-client --open-panel swaync-client --close-panel

Unless the program itself doesn't have a feedback on the status of the panel, which I don't think is the case, this sounds relatively easy to implement.

I can try my hand at it tomorrow if you like the idea.

ErikReider commented 2 years ago

98c5fb7e09fdae295c150798334cf7684138fe8f adds --open-panel / -op and --close-panel / -cp

nightly-brew commented 2 years ago

Thanks, works great!