SHARE
TWEET

test

a guest Dec 6th, 2008 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i in 0 1 2 3 4 5 6 7 8; do
  2.     eval XRANDR_MODE=\$XRANDR_MODE_${i}
  3.     XRANDR_MODE=`echo $XRANDR_MODE | sed "s/ .*//g"`
  4.     if [ -n "$XRANDR_MODE" ]; then
  5.         VERTICAL=`echo $XRANDR_MODE | cut -d x -f 1`
  6.         HORIZONTAL=`echo $XRANDR_MODE | cut -d x -f 2`
  7.         R_VERT=$(( $R_VERT + $VERTICAL ))
  8.         R_HORIZ=$(( $R_HORIZ + $HORIZONTAL ))
  9.     fi
  10. done
  11. (
  12. cat << 'EOF'
  13. Section "Screen"
  14.     Identifier  "Default Screen"
  15.     SubSection "Display"
  16. EOF
  17. ) >> /etc/X11/xorg.conf
  18. echo "       Virtual ${R_VERT} ${R_HORIZ}" >> /etc/X11/xorg.conf
  19. (
  20. cat << 'EOF'
  21.     EndSubSection
  22. EndSection
  23. EOF
  24. ) >> /etc/X11/xorg.conf
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top