dedaemon icon indicating copy to clipboard operation
dedaemon copied to clipboard

Commands in display section

Open domsle opened this issue 7 years ago • 1 comments

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 :)

domsle avatar Jun 02 '18 07:06 domsle

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.

mortie avatar Jun 07 '18 22:06 mortie