diff options
author | David Runge <david.runge@frqrec.com> | 2014-02-19 14:49:11 +0100 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-02-19 14:49:11 +0100 |
commit | c20bd2ec6bc651baf0f7b96de0eca5efdaaf5213 (patch) | |
tree | f07864930fdc1721ee693737f6e3ec9ce3e3b986 | |
parent | e98f4d74e650561a57fede6895601813ee2eae07 (diff) | |
download | dotfiles-c20bd2ec6bc651baf0f7b96de0eca5efdaaf5213.tar.gz dotfiles-c20bd2ec6bc651baf0f7b96de0eca5efdaaf5213.tar.bz2 dotfiles-c20bd2ec6bc651baf0f7b96de0eca5efdaaf5213.tar.xz dotfiles-c20bd2ec6bc651baf0f7b96de0eca5efdaaf5213.zip |
Adding monitor hotplug script to be used in conjunction with udev rule detecting change on drm
-rwxr-xr-x | bin/monitor-hotplug | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/monitor-hotplug b/bin/monitor-hotplug new file mode 100755 index 0000000..6c2d1d6 --- /dev/null +++ b/bin/monitor-hotplug @@ -0,0 +1,7 @@ +#!/bin/bash +# Script to be called upon hotplug (change) udev event, to acquire correct resolution for connected screens + +export DISPLAY=:0 +export XAUTHORITY=/home/dave/.Xauthority + +/usr/bin/autorandr -c & |