From: R. Steve McKown Date: Sat, 31 Jan 2015 23:31:20 +0000 (-0700) Subject: Update README X-Git-Url: https://oss.titaniummirror.com/gitweb?p=dispcfg.git;a=commitdiff_plain;h=HEAD Update README --- diff --git a/README b/README index 1af7856..43f47a6 100644 --- 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 ----