Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Display Settings
- HDMI1=`xrandr -q | grep 'HDMI1' | awk '{ print $2 }'`
- if [ $HDMI1 "=" connected ];
- then
- xrandr --output HDMI1 --mode 1920x1080 --primary --auto
- xrandr --output LVDS1 --off
- else
- xrandr --output LVDS1 --auto
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement