1
0
mirror of https://github.com/emersion/kanshi synced 2024-11-26 05:55:27 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
Jason Francis
afab6397ed Add optional varlink interface.
We don't want to fallback to libwayland's defaults, so WAYLAND_DISPLAY
needs to be set in env. Since IPC in the future is going to use
XDG_RUNTIME_DIR, we also require it.

Because these functions will be used in other parts of the code as well,
we rework the build system slightly to accommodate it.

Co-authored-by: Érico Nogueira <erico.erc@gmail.com>
2021-07-24 08:34:35 +02:00
Jason Francis
123a2f43f3 Add signal handlers to reload the config.
Signaling kanshi with SIGHUP will now reload the config.

Co-authored-by: Érico Nogueira <erico.erc@gmail.com>
2021-07-24 08:34:35 +02:00
Jason Francis
bec47f49e3 Factor out event loop.
This rework is necessary because it will allow us to add signal handlers
via signalfd and a varlink interface for IPC.

Co-authored-by: Érico Nogueira <erico.erc@gmail.com>
2021-07-24 08:34:35 +02:00
Guillaume Maudoux
5a30abdf0b Add exec to execute commands when a configuration is matched 2019-09-20 12:59:04 +03:00
Guillaume Maudoux
15029bd28b Allow names to distinguish configurations 2019-09-20 12:59:04 +03:00
Simon Ser
3a845a04ec Apply profile 2019-06-01 13:25:09 +03:00
Simon Ser
3de4464f23 Match profiles 2019-06-01 13:25:09 +03:00
Simon Ser
7952a0b691 Listen to output-management events 2019-06-01 13:25:09 +03:00
Simon Ser
9d11810e44 Parse output keys 2019-06-01 13:25:09 +03:00
Simon Ser
ddb8682b9e Add basic parser 2019-06-01 13:25:09 +03:00