~kennylevinsen/wlsunset-devel

1

feature request: control wlsunset instance

Details
Message ID
<9478ffb94ee7219f96ebf7e7e323858dc82be68e.camel@krasovs.ky>
DKIM signature
missing
Download raw message
I use wlsunset with sway and waybar and want to make custom module that
controls wlsunset (at least to switch it on and off) using dbus. What
do you think? Can I try to submit patches like this or you would like
to keep it as simple as you can?
Details
Message ID
<133c7267-7937-9153-922c-1fdb1973e711@kl.wtf>
In-Reply-To
<9478ffb94ee7219f96ebf7e7e323858dc82be68e.camel@krasovs.ky> (view parent)
DKIM signature
missing
Download raw message
While I would like to keep wlsunset as simple as possible (that is the 
primary differentiator from wlsunset), but I would not be opposed to 
some sort of simple wlsunsetctl for necessary dynamic use-cases.

Not sure how that should be implemented though. Simple custom IPC or 
varlink perhaps? My main gripe with dbus is that the only semi-sensible 
client implementation for C is - rather ironically - sd_bus from 
systemd, and while we did extract it in basu, it's still not great.

As a short-term solution for simple switching it on or off I usually 
just recommend killing and starting it as needed. The waybar module 
could be the one starting the process if that simplifies things, 
although start needs to be quick to avoid glitches.
Reply to thread Export thread (mbox)