From c20bd2ec6bc651baf0f7b96de0eca5efdaaf5213 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 19 Feb 2014 14:49:11 +0100 Subject: Adding monitor hotplug script to be used in conjunction with udev rule detecting change on drm --- bin/monitor-hotplug | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/monitor-hotplug (limited to 'bin/monitor-hotplug') 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 & -- cgit v1.2.3-70-g09d2