~emersion/kanshi#81: 
save profile

It would be nice if I could tell kanshi "this, right here, is how I want things setup, please save this profile as name 'external-monitor'".

This is something autorandr does I really appreciate, because I could set the profile the way I want graphically (with arandr then, but with wdisplays now) and not have to mess around with questions like "wait, how large is this monitor again?" to figure out how to place things around...

thanks, this thing works otherwise surprisingly well. :)

Status
REPORTED
Submitter
~anarcat
Assigned to
No-one
Submitted
2 months ago
Updated
2 months ago
Labels
enhancement

~emersion 2 months ago

Interesting idea!

Where does autorandr save the profile? kanshi has a main configuration file, and doesn't include any other file by default. Appending is risky, because saving the same profile twice will result in it appearing twice in the config file.

Antoine Beaupré 2 months ago · edit

On 2023-03-06 15:30:22, outgoing@sr.ht wrote:

Interesting idea!

Where does autorandr save the profile?

In ~/.config/autorandr/PROFILENAME

kanshi has a main configuration file, and doesn't include any other file by default. Appending is risky, because saving the same profile twice will result in it appearing twice in the config file.

Oh, right, of course!

Hmm.. that's a good point, I guess I have already cargo-culted / forward-ported autorandr's way of doing things. My ~/.config/kanshi/config is simply:

include ~/.config/kanshi/*.conf

.. and then each profile is in its own individual file.

You might find perusing the autorandr manpage interesting:

https://manpages.debian.org/bullseye/autorandr/autorandr.1.en.html

... it has a crude CRUD interface there (well, load/save/remove) there.

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