From 4d608162f5ec66089dd1536d08c1a7f3aba82b28 Mon Sep 17 00:00:00 2001 From: Timo Bingmann Date: Sun, 20 Jul 2014 13:05:05 +0200 Subject: [PATCH] Add 'horizontal' and 'vertical' stacked virtual profiles. Small fixes to virtual profile code. --- autorandr | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 4 deletions(-) diff --git a/autorandr b/autorandr index 37f6eed..e507515 100755 --- a/autorandr +++ b/autorandr @@ -50,7 +50,9 @@ XDPYINFO=/usr/bin/xdpyinfo PROFILES=~/.autorandr/ CONFIG=~/.autorandr.conf RESERVED_PROFILE_NAMES=`cat < setting largest common mode" + echo " -> setting largest common mode in cloned mode" common_cfg_xrandr + elif [ $PROFILE = "horizontal" ]; then + echo " -> stacking all outputs horizontally at their largest modes" + STACK="horizontal" stack_cfg_xrandr + elif [ $PROFILE = "vertical" ]; then + echo " -> stacking all outputs vertically at their largest modes" + STACK="vertical" stack_cfg_xrandr fi fi @@ -326,7 +373,7 @@ Usage: $SCRIPTNAME [options] instead of "xrandr" to detect, configure and save the display configuration. If xrandr is used, the following virtual configurations are available: - ${RESERVED_PROFILE_NAMES} +${RESERVED_PROFILE_NAMES} EOH exit -- 2.39.2