mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-08 15:37:39 +00:00
Merge remote-tracking branch 'helterscelter/master'
Conflicts: pm-utils/40autorandr
This commit is contained in:
commit
4db3b2ca3a
1
pm-utils/40auto-disper
Symbolic link
1
pm-utils/40auto-disper
Symbolic link
@ -0,0 +1 @@
|
||||
40autorandr
|
@ -3,7 +3,16 @@
|
||||
# 40autorandr: Change autorandr profile on thaw/resume
|
||||
exec > /var/log/autorandr.log 2>&1
|
||||
|
||||
AUTORANDR="autorandr -c"
|
||||
# detect if we are being called as 40auto-disper or 40autorandr
|
||||
FORM=${0##*40}
|
||||
case $FORM in
|
||||
auto-disper)
|
||||
AUTORANDR="auto-disper -c"
|
||||
;;
|
||||
*)
|
||||
AUTORANDR="autorandr -c"
|
||||
;;
|
||||
esac
|
||||
|
||||
detect_display()
|
||||
{
|
||||
@ -16,6 +25,7 @@ detect_display()
|
||||
/bin/su -c "${AUTORANDR}" "$user"
|
||||
fi
|
||||
done
|
||||
echo "Done"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
Loading…
Reference in New Issue
Block a user