2007-02-11

changing xorg resolution

Simple script to change resolution.
#!/bin/bash
# change resolution to or from 1280x1024 (monitor to laptop LCD)
#set -x
RESOLUTION=`xdpyinfo | awk '$0 ~ /dimensions/ {print $2}'`

if [ "$RESOLUTION" = "1280x1024" ];then
xrandr -s 0
else
xrandr -s 1
fi

No comments: