Difference between revisions of "User talk:AshleySueMas"

From FreekiWiki
Jump to navigation Jump to search
(Blanked the page)
Line 1: Line 1:
<code>#!/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
 
</code>
 

Revision as of 17:53, 23 August 2013