tNew options for xrandr actions - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit d0fa7807f860102a6be23aa92065d55e9468508b
(DIR) parent dd74860608c08f879da4870f18f36e9d01f91670
(HTM) Author: z3bra <willy@mailoo.org>
Date: Mon, 7 Apr 2014 08:13:19 +0200
New options for xrandr actions
Diffstat:
M dualhead | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/dualhead b/dualhead
t@@ -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