mirror of
https://github.com/phillipberndt/autorandr
synced 2024-12-25 07:42:04 +00:00
Fixed script name and typo in variable name.
Renamed according to pm-utils "SLEEP HOOK ORDERING CONVENTION"
This commit is contained in:
parent
0f63a4fc23
commit
7aed96914f
@ -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
|
Loading…
Reference in New Issue
Block a user