scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit d0fa7807f860102a6be23aa92065d55e9468508b
parent dd74860608c08f879da4870f18f36e9d01f91670
Author: z3bra <willy@mailoo.org>
Date:   Mon Apr  7 08:13:19 +0200

New options for xrandr actions

Diffstat:
dualhead | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/dualhead b/dualhead @@ -1,13 +1,17 @@ #!/bin/sh case "$1" in - "left") + left) xrandr --output VGA1 --primary --auto --output LVDS1 --auto --right-of VGA1;; - "right") + right) xrandr --output VGA1 --primary --auto --output LVDS1 --auto --left-of VGA1;; - "dup") + dup) xrandr --output VGA1 --same-as LVDS1 --output LVDS1 --primary;; - "only") + screen) xrandr --output VGA1 --primary --auto --output LVDS1 --off;; - *) echo `basename $0` '{left|right|same|only}';; + laptop) + xrandr --output LVDS1 --primary --auto --output VGA1 --off;; + list) + xrandr | grep '\<connected\>' | cut -d\ -f1;; + *) echo `basename $0` '{left|right|same|screen|laptop|list}';; esac