Difference between revisions of "User talk:AshleySueMas"
Jump to navigation
Jump to search
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...") |
AshleySueMas (talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | #!/bin/bash | + | <code>#!/bin/bash |
monitor_choice=$(zenity --list --radiolist --column ' ' --column 'Monitor Setting' True "Main Monitor Left" \ | monitor_choice=$(zenity --list --radiolist --column ' ' --column 'Monitor Setting' True "Main Monitor Left" \ | ||
| Line 16: | Line 16: | ||
xrandr --output DVI-0 --off | xrandr --output DVI-0 --off | ||
fi | fi | ||
| + | </code> | ||
Revision as of 14:37, 23 August 2013
#!/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