User talk:AshleySueMas

From FreekiWiki
Revision as of 15:36, 23 August 2013 by AshleySueMas (talk | contribs) (Created page with "#!/bin/bash monitor_choice=$(zenity --list --radiolist --column ' ' --column 'Monitor Setting' True "Main Monitor Left" \ False "Main Monitor Right" \ False "Second Monitor O...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. !/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