Forgot to mention that the following must be added to .bashrc: export SCREEN_WIDTH=$(xrandr|grep current|cut -d, -f2|cut -d' ' -f3) export SCREEN_DEPTH=$(xrandr|grep current|cut -d, -f2|cut -d' ' -f5) Igor