Not running as daemon

One of the value proposition of kanshi is the nice profile detection and configuration. I'd like to use that without relying on kanshi to detect the changes. Similar to how autorandr --change works, could you implement a one-shot way to run kanshi?

Assigned to
1 year, 3 months ago
1 year, 3 months ago
No labels applied.

~emersion 1 year, 3 months ago

Hm, how would that work exactly? Who would be responsible for invoking the one-shot mode? Would the user manually do that? Why is the daemon approach not suitable for you?

~diaoul 1 year, 3 months ago*

  • Hyprland provides a way (through IPC) to listen to monitoradded/monitorremoved events and perform actions following those, I use that with a couple of shell scripts to circumvent https://todo.sr.ht/~emersion/kanshi/54#event-235509
  • If you don't want an instant switch for some reason and keep control of when that happens
  • Or if you want to activate another profile than the one that is detected (e.g. you want to stay on laptop monitor even though plugged in to another display)
  • I had a 144Hz monitor that was very slow to light up, causing issues with autorandr (not sure it would've been the case with kanshi, don't have that monitor anymore)

Overall, my main usage matches the daemon way of running it. It's just a bit harder to handle other less typical usages.

Register here or Log in to comment, or comment via email.