commit 0b2693ea5b37862e2b02c5e1313ec82d5b197298 from: the xhr date: Wed May 28 11:11:52 2014 UTC Reformat usage, beautify -m and change default displays commit - ab919ee878ae802f4f0a05f9f05e6697f2e0b9bf commit + 0b2693ea5b37862e2b02c5e1313ec82d5b197298 blob - 5ba7c8de3b4b7c32be3214249b6f0955294cb4c4 blob + a9e1b249b00101c566c0d775643ad49c68720dfa --- dtoogle +++ dtoogle @@ -19,8 +19,8 @@ function choose_profile() # Work profile: Internal off, both external displays on work) INTERN="LVDS1" - EXTERN[0]="HDMI3" - EXTERN[1]="HDMI2" + EXTERN[1]="HDMI3" + EXTERN[0]="HDMI2" ;; # Projector profile: Internal on, external VGA extended vga) @@ -106,7 +106,7 @@ function usage() echo "`basename $0` [-ceix] [-hmnv] [-lr] -p profile" echo echo "Display Options:" - echo " -c Clone screen on all displays" + echo " -c Mirror screen on all displays" echo " -e Enable external display(s) and disable internal" echo " -i Enable only the internal display" echo -n " -x Extend screen to all displays " @@ -190,7 +190,14 @@ while getopts "ciehmnrlp:vx" opt; do RIGHTOF=0 ;; m) - exec xrandr -q + # From ArchLinux wiki + connectedOutputs=$(xrandr | grep " connected" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/") + pg "Connected Displays" + echo -n " " + echo $connectedOutputs + pg "Available Modes" + echo -n " " + exec xrandr -q ;; x) # Do nothing here since its the default