nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
336 stars 22 forks source link

Kanshi Support #2

Open jameswalmsley opened 2 years ago

jameswalmsley commented 2 years ago

Hey this looks great.

It would be cool if this tool could generate kanshi profiles.

If you do that then if you save a config as a profile in kanshi config, then of you dock or move to a different desk then kanshi will detect the profile and automatically switch for you.

nwg-piotr commented 2 years ago

I've never felt a need to use a tool like kanshi, so I know hardly anything about it. I'll need to take a look at the docs.

tajnymag commented 7 months ago

I'd like to bump the feature. Nwg-displays is great at setting up a static workstation profile. What it lacks is dynamic profile matching, which is, understandably, not in scope of this project.

To support kanshi, nwg-displays would need to allow "saving as" of the current profile as a kanshi formatted file. Kanshi supports wildcards in its configs, so it would be on user whether they overwrite their existing config or add a separate one.

Vladimir-csp commented 3 weeks ago

Kanshi supports wildcards in its configs, so it would be on user whether they overwrite their existing config or add a separate one.

Maybe a "kanshi mode" where kanshi config is edited directly by adding or removing profiles? image

anarcat commented 2 weeks ago

equivalent feature request on kanshi's side: https://todo.sr.ht/~emersion/kanshi/81

cvoges12 commented 4 days ago

With kanshi support, you could get support for other wlroots based compositors without any extra support.

cvoges12 commented 4 days ago

I can take a wack at this while I'm working on #30 . I'm familiar with how kanshi profiles are set up.