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

Trigger automatic action when (un)plugging screens #34

Open
ayekat opened this issue Feb 28, 2021 · 1 comment
Open

Trigger automatic action when (un)plugging screens #34

ayekat opened this issue Feb 28, 2021 · 1 comment
Labels

Comments

@ayekat
Copy link
Owner

ayekat commented Feb 28, 2021

I frequently attach and detach screens, and it would be nice if there was a way to automatically configure the external screen (at least in known cases/for known screens).

https://tyler.vc/auto-monitor-detection-on-linux describes how to tap into udev for detecting screen (un)plug events. Although I would certainly implement my handler differently (permission and environment handling), I think it's worth trying out something similar there (though potentially that will mostly happen in a dedicated tool, i.e. not in this dotfiles repo).

But the basics are there.

@ayekat ayekat added the X11 label Feb 28, 2021
@kriansa
Copy link

kriansa commented May 1, 2023

You could use autorandr if you're on X11.

Shameless plug: you could also try wmcompanion

@ayekat ayekat mentioned this issue Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants