Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/bin/bash
  2. export DISPLAY=:0
  3. export XAUTHORITY=/home/chip/.Xauthority
  4. C=`xrandr | grep 480x272 | grep "*"`
  5. if [ "$C" = "" ]; then :
  6. echo "composite active, switch back"
  7. xrandr --output Composite-1 --off
  8. xrandr --output None-1 --mode 480x272
  9. else :
  10. echo "display active, switching to composite"
  11. xrandr --output None-1 --off
  12. xrandr --output Composite-1 --mode NTSC5
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement