emersion / kanshi

Dynamic display configuration (mirror)
https://wayland.emersion.fr/kanshi/
MIT License
652 stars 46 forks source link

Kanshi doesn't apply display position configuration after disabling display #69

Closed Jpfonseca closed 4 years ago

Jpfonseca commented 4 years ago

I have been trying to use kanshi to control my displays. I expected kanshi to switch between these modes by itself upon realising that eDP-1 was inactive. My current config is :

{
    output eDP-1 enable position 0,0
    output "Goldstar wtv" enable mode 1920x1080  position 1366,0    
}
{
        output eDP-1 disable
        output "Goldstar wtv" enable mode 1920x1080  position 0,0
}

Upon running swaymsg -t get_outputs, after turning off eDP-1, I get that the position of the "GoldStar wtv" is 1366,0 instead of 0,0.

On the wayland-session.log, I get the following messages:

2020-02-18 13:52:53 - [swaybg-1.0/main.c:168] Destroying output eDP-1 
applying profile

Am I doing something wrong ? Or is this an expected behaviour?

emersion commented 4 years ago

Both of these profile blocks specify the same set of outputs. Thus only one of them will be applied.

You need to specify profile blocks with different sets of outputs.

Jpfonseca commented 4 years ago

Both of these profile blocks specify the same set of outputs. Thus only one of them will be applied.

I thought I could use 2 profile blocks for the same set of outputs, given their current status(active or inactive), which would allow the configuration of my setup for different scenarios.

emersion commented 4 years ago

No, this isn't supported yet. The plan is to add support for switching between profiles with kanshictl switch <profile>.

Closing as a duplicate of https://github.com/emersion/kanshi/issues/10