X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=README;h=43f47a65018c84b26cba2ead95687b15e73a835c;hb=fee1436325adf287933695f0f746c042f823409a;hp=1af78561e70c0ec59b32debc188f144587796de4;hpb=723682024dcd39e5814eb240d3cd8d1a92b71e0f;p=dispcfg.git 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 ----