emersion / kanshi

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

Feature Request: Variables/workspace support #79

Closed faesthing closed 4 years ago

faesthing commented 4 years ago

It would be useful to support variables/workspaces to achieve something like the below.

profile 1440p-left {
    set $one "Dell Inc. DELL U2715H 6VY7R72K020S"
    set $two "eDP-1"
    output $two enable mode 1920x1080 position 0,0
    output $one mode 2560x1440 position 1920,0

    workspace 1 $one
    workspace 3 $one
    workspace 5 $one
    workspace 7 $one
    workspace 9 $one
    workspace 0 $one

    workspace 2 $two
    workspace 4 $two
    workspace 6 $two
    workspace 8 $two
}

Ideally it would be ideal to have mostly interchangeable config support between sway config and kanshi config.

I don't know how kanshi works under the hood and don't know how difficult this would be.

ammen99 commented 4 years ago

Seems like a duplicate issue of https://github.com/emersion/kanshi/issues/7 ? (Which is already implemented).

emersion commented 4 years ago

Yes, please use a script for this.