]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Add support for local configfile
authorAlexander Wirt <formorer@debian.org>
Mon, 8 Nov 2010 21:19:18 +0000 (22:19 +0100)
committerAlexander Wirt <formorer@debian.org>
Mon, 8 Nov 2010 21:19:18 +0000 (22:19 +0100)
autorandr

index 8ed9277ae5af6c3248c1d46e33a261bded52faac..3c77d96dbe90fd624798ceb3ce8c16ce3eaa7c37 100755 (executable)
--- a/autorandr
+++ b/autorandr
 
 XRANDR=/usr/bin/xrandr
 PROFILES=~/.autorandr/
+CONFIG=~/.autorandr.conf
 
 CHANGE_PROFILE=0
 DEFAULT_PROFILE=""
 SAVE_PROFILE=""
 
+test -f $CONFIG && . $CONFIG 
+
 setup_fp_xrandr_edid() {
        $XRANDR -q --verbose | awk '
        /^[^ ]+ (dis)?connected / { DEV=$1; }