#!/bin/bash
function pan-mode {
echo `xrandr --prop | grep "current"`
}
function pan-enable {
echo Enabling VGA output
xrandr --output LVDS1 --panning 1024x768
}
function pan-disable {
echo Disabling VGA output
xrandr --output LVDS1 --panning 1024x600
}
### MAIN ###
case $1 in
on) pan-enable ;;
off) pan-disable ;;
status) pan-mode ;;
*) echo "*usage: $0 on|off|status" ;;
esac
Create an executable shell script in the bin dir:- gedit ~/bin/panning (then paste the script into the file and save)
- chmod a+x ~/bin/panning
Now you can switch with panning on or panning off in the console.
If you want to make the panning default create or edit the file ~/.xprofile and add the following line to it:
If you want to make the panning default create or edit the file ~/.xprofile and add the following line to it:
xrandr --output LVDS1 --panning 1024x768Next time you reboot or restart X the screen will be in panning mode.
