]> oss.titaniummirror.com Git - dispcfg.git/commitdiff
Update README master
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 31 Jan 2015 23:31:20 +0000 (16:31 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 31 Jan 2015 23:31:20 +0000 (16:31 -0700)
README

diff --git a/README b/README
index 1af78561e70c0ec59b32debc188f144587796de4..43f47a65018c84b26cba2ead95687b15e73a835c 100644 (file)
--- a/README
+++ b/README
@@ -7,12 +7,16 @@ configure_displays should be ran here:
 The simple /etc/pm/sleep.d/50_configure-displays script:
 ----
 #!/bin/sh
-
 # Configure displays on resume and thaw
 
 case "$1" in
        resume|thaw)
-               /usr/local/bin/configure_displays
+               if [ -f /usr/local/bin/dispcfg ]; then
+                       user=$(ps -fp $((pgrep -x i3 && pgrep -x xfwm4) | tail -1) | awk '{ print $1 }' | tail -1)
+                       export DISPLAY=:0
+                       export XAUTHORITY=/home/$user/.Xauthority
+                       /usr/local/bin/dispcfg
+               fi
                ;;
 esac
 ----