~diaoul

France

https://antoine.bertin.io


#86 Not running as daemon 1 year, 3 months ago

Comment by ~diaoul on ~emersion/kanshi

  • 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.

#86 Not running as daemon 1 year, 3 months ago

Ticket created by ~diaoul on ~emersion/kanshi

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?

#54 Profile not matched 1 year, 3 months ago

Comment by ~diaoul on ~emersion/kanshi

I have the exact same issue. I am using a docking station that adds 2 monitors. When unplugging, kanshi cannot find the profile, yet it can if I trigger a reload with kanshictl reload.

When I plug again, sometimes it works sometimes it does not and I get no profile matched twice (below it worked)

I think there is a timing issue when you plug/unplug more than 1 monitor at the same time.

applying profile 'docked'
applying profile output 'eDP-1' on connected head 'eDP-1'
applying profile output 'Monitor B' on connected head 'DP-7'
applying profile output 'Monitor A' on connected head 'DP-4'
running commands for configuration 'docked'
configuration for profile 'docked' applied
no profile matched <- dock unplugged
reloading config <- reload triggered
applying profile 'mobile'
applying profile output 'eDP-1' on connected head 'eDP-1'
running commands for configuration 'mobile'
configuration for profile 'mobile' applied
no profile matched <- dock plugged (assuming this is coming from the first monitor)
applying profile 'docked' <- probably second monitor triggered this
applying profile output 'Monitor A' on connected head 'DP-4'
applying profile output 'Monitor B 'DP-7'
applying profile output 'eDP-1' on connected head 'eDP-1'
running commands for configuration 'docked'
configuration for profile 'docked' applied```