summaryrefslogtreecommitdiffstats
path: root/handlers
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2014-08-22 11:53:46 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2014-08-22 11:53:46 +0200
commitf0167e83c71879ec2e64c389e59819c9ff8d170a (patch)
treec75095e6b2e5cf961c61361110c784cc3f7509c6 /handlers
downloaddisplay_autoset-f0167e83c71879ec2e64c389e59819c9ff8d170a.tar.xz
Initial commit
Diffstat (limited to 'handlers')
-rwxr-xr-xhandlers/acpi_event_handler.sh4
-rwxr-xr-xhandlers/udev_event_handler.sh2
2 files changed, 6 insertions, 0 deletions
diff --git a/handlers/acpi_event_handler.sh b/handlers/acpi_event_handler.sh
new file mode 100755
index 0000000..21ba395
--- /dev/null
+++ b/handlers/acpi_event_handler.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+#~/bin/displays/autodetect.sh
+su -c "DISPLAY=:0.0 arandr" robin;
diff --git a/handlers/udev_event_handler.sh b/handlers/udev_event_handler.sh
new file mode 100755
index 0000000..8b7541e
--- /dev/null
+++ b/handlers/udev_event_handler.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+su -c "DISPLAY=:0.0 ~/bin/displays/autodetect.sh" robin;