Skip to content

Commit

Permalink
Merge remote-tracking branch 'paulharris/master'
Browse files Browse the repository at this point in the history
Conflicts:
	README
  • Loading branch information
phillipberndt committed Dec 2, 2013
2 parents 4db3b2c + 37052d0 commit fb01d5e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,14 @@ are adjusted accordingly.

To install autorandr call `make install`, define your setup and then call
`make hotplug` to install hotplug scripts.

For Debian using auto-disper:
To make the screen auto-configure when your computer wakes up,
* Copy auto-disper into /usr/local/bin/
* Copy pm-utils/40auto-disper into /etc/pm/sleep.d/
* (Assuming gnome) Run gnome-keybinding-properties and ADD a shortcut,
I called it "Run auto-disper", I set it to CTRL-F7, and the command is:
`auto-disper -c --default default`
* Create a default disper setting... eg for laptop: unplug all monitors,
set up the screen nicely on the laptop display.
Then run `auto-disper --save laptop`
5 changes: 2 additions & 3 deletions pm-utils/40autorandr
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ exec > /var/log/autorandr.log 2>&1
FORM=${0##*40}
case $FORM in
auto-disper)
AUTORANDR="auto-disper -c"
AUTORANDR="auto-disper -c --default default"
;;
*)
AUTORANDR="autorandr -c"
AUTORANDR="autorandr -c --default default"
;;
esac

Expand All @@ -25,7 +25,6 @@ detect_display()
/bin/su -c "${AUTORANDR}" "$user"
fi
done
echo "Done"
}

case "$1" in
Expand Down

0 comments on commit fb01d5e

Please sign in to comment.