Skip to content

Commit

Permalink
Fixed script name and typo in variable name.
Browse files Browse the repository at this point in the history
Renamed according to pm-utils "SLEEP HOOK ORDERING CONVENTION"
  • Loading branch information
maciex authored and wertarbyte committed Feb 22, 2012
1 parent 0f63a4f commit 7aed969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pm-utils/90autorandr → pm-utils/40autorandr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#
# 90autorandr: Change autorandr profile on thaw/resume
# 40autorandr: Change autorandr profile on thaw/resume

AUTORANDR="autorandr -c"

Expand All @@ -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
Expand Down

0 comments on commit 7aed969

Please sign in to comment.