X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=README;h=43f47a65018c84b26cba2ead95687b15e73a835c;hb=HEAD;hp=390ab854de424b956af37e711362335da3a2064b;hpb=b819ae3d803bc45f2084513d356b9e6369c582fe;p=dispcfg.git diff --git a/README b/README index 390ab85..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) - 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 ----