Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands in display section #4

Open
domsle opened this issue Jun 2, 2018 · 1 comment
Open

Commands in display section #4

domsle opened this issue Jun 2, 2018 · 1 comment

Comments

@domsle
Copy link

domsle commented Jun 2, 2018

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

@mortie
Copy link
Owner

mortie commented Jun 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants