User talk:AshleySueMas

From FreekiWiki
Revision as of 15:37, 23 August 2013 by AshleySueMas (talk | contribs)
Jump to navigation Jump to search

#!/bin/bash

monitor_choice=$(zenity --list --radiolist --column ' ' --column 'Monitor Setting' True "Main Monitor Left" \ False "Main Monitor Right" \ False "Second Monitor Off")

echo $monitor_choice if $monitor_choice =~ "Left" ; then

 xrandr --output DVI-0 --auto --left-of LVDS-0 --rotate normal
 xrandr --output DVI-0 --auto --left-of LVDS-0 --rotate normal

elif $monitor_choice =~ "Right" ; then

 xrandr --output DVI-0 --auto --right-of LVDS-0 --rotate normal
 xrandr --output DVI-0 --auto --right-of LVDS-0 --rotate normal

elif $monitor_choice =~ "Off" ; then

 xrandr --output DVI-0 --off 
 xrandr --output DVI-0 --off

fi