From 7aed96914fb30dad8e084125f1dda34a5b726718 Mon Sep 17 00:00:00 2001 From: Maciej Sitarz Date: Wed, 15 Feb 2012 20:53:13 +0100 Subject: [PATCH] Fixed script name and typo in variable name. Renamed according to pm-utils "SLEEP HOOK ORDERING CONVENTION" --- pm-utils/{90autorandr => 40autorandr} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename pm-utils/{90autorandr => 40autorandr} (78%) diff --git a/pm-utils/90autorandr b/pm-utils/40autorandr similarity index 78% rename from pm-utils/90autorandr rename to pm-utils/40autorandr index 59992a8..60ca9ae 100755 --- a/pm-utils/90autorandr +++ b/pm-utils/40autorandr @@ -1,6 +1,6 @@ #!/bin/sh # -# 90autorandr: Change autorandr profile on thaw/resume +# 40autorandr: Change autorandr profile on thaw/resume AUTORANDR="autorandr -c" @@ -10,7 +10,7 @@ detect_display() D="${X##/tmp/.X11-unix/X}" user=$(who | awk -vD="$D" '$5 ~ "\\(:"D"\\)$" {print $1}') if [ x"$user" != x"" ]; then - export DISPLAY=":$displaynum" + export DISPLAY=":$D" /bin/su -c "${AUTORANDR}" "$user" fi done