aboutsummaryrefslogtreecommitdiff
path: root/bin/auto-autorandr.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/auto-autorandr.sh')
-rwxr-xr-xbin/auto-autorandr.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/auto-autorandr.sh b/bin/auto-autorandr.sh
index c97e90a..d0ae791 100755
--- a/bin/auto-autorandr.sh
+++ b/bin/auto-autorandr.sh
@@ -1,4 +1,8 @@
#!/bin/bash
sleep 1
-autorandr --change
+export DISPLAY=:0
+export XAUTHORITY=`ls /run/user/1000/gdm/Xauthority`
+su -c 'autorandr --change >> /tmp/autorandr.log 2>&1' jakob >> /tmp/auto_autorandr.log 2>&1
+sleep 1
+su -c 'wallpaper.sh' jakob