Commands in display section
Hello,
Is it possible to add optional commands that would be executed when different monitors are detected?
Right now adding commands subsection causes an error so I think it was not predicted as a possible use case :)
I think that would be a great idea, but I don't think implementing it will be entirely nontrivial. The udev event which fires when a display is added or removed doesn't actually just say whether the display was added or removed, just that something changes. The current solution is to just have a function which runs every time something changes, which figures out which displays are currently connected, and constructs an xrandr co,mand based on the current state and the configuration.
I can think of some ways of solving it, but I'd probably have to spend some time to mess with it to make it reliable.