aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-02-19 14:49:11 +0100
committerDavid Runge <david.runge@frqrec.com>2014-02-19 14:49:11 +0100
commitc20bd2ec6bc651baf0f7b96de0eca5efdaaf5213 (patch)
treef07864930fdc1721ee693737f6e3ec9ce3e3b986
parente98f4d74e650561a57fede6895601813ee2eae07 (diff)
downloaddotfiles-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-xbin/monitor-hotplug7
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 &