commit - ab919ee878ae802f4f0a05f9f05e6697f2e0b9bf
commit + 0b2693ea5b37862e2b02c5e1313ec82d5b197298
blob - 5ba7c8de3b4b7c32be3214249b6f0955294cb4c4
blob + a9e1b249b00101c566c0d775643ad49c68720dfa
--- dtoogle
+++ dtoogle
# 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)
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 "
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