Need help with udev-monitor-hotplug?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

codingtony
133 Stars 40 Forks 11 Commits 2 Opened issues

Description

Script that get triggered when monitors are plugged in or out in Linux

Services available

!
?

Need anything else?

Contributors list

# 265,612
Shell
Scala
HTML
3 commits
# 594,002
Shell
1 commit
# 227,658
Sass
Angular
bug-tra...
swagger...
1 commit
# 43,868
Go
Amazon ...
Terrafo...
HTML
1 commit

Description

I was tired of having to configure manually the disposition of my monitors when I plugged them in.

So I decided to write this script that define custom behaviour when monitor are plugged in

You might want to adapt the script to your needs ./usr/local/bin/monitor-hotplug.sh

I was inspired by http://stackoverflow.com/questions/5469828/how-to-create-a-callback-for-monitor-plugged-on-an-intel-graphics

Installation

  • clone the repo
  • sudo cp usr/local/bin/monitor-hotplug.sh /usr/local/bin/
  • sudo cp etc/udev/rules.d/99-monitor-hotplug.rules /etc/udev/rules.d/
  • sudo service udev restart

Debuging

  • sudo service udev stop
  • sudo udevd --debug 2>&1 | tee /tmp/udev.log
  • check what's happening when you plug/unplug your monitor

License

I'm not responsible of the effect of this script on your computer

Feel free to do whatever you want with it :-)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.