]> oss.titaniummirror.com Git - dispcfg.git/blobdiff - README
Update README
[dispcfg.git] / README
diff --git a/README b/README
index 390ab854de424b956af37e711362335da3a2064b..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)
-               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
 ----