Hello.
I am working on a patch that adds a UNIX socket to the list of file descriptors that wlsunset polls. The path to the UNIX socket is "/run/user/$UID/wlsunset.sock", and it accepts the control signals "suspend", "continue", and "toggle". The "suspend" and "continue" control signals are helpful in situations where wlsunset's state is unknown.
This feature is optional and enabled with the argument '-u'.
Would you be interested in this feature? If so, let me know, and I'll submit a patch for review.