I'm running dual monitors. My laptop has two monitors attached and the actual laptop screen is disabled. This is because my laptop hardware only lets me use two screens at once (hardware limitation). To do this I have a script:
/usr/sbin/VGA_On.sh
Code: Select all
#!/bin/sh
xrandr --output LVDS --off
xrandr --output VGA-0 --auto
xrandr --output HDMI-0 --left-of VGA-0
Code: Select all
VGA_On.sh
which $CURRENTWM && exec $CURRENTWM
[ -x $CURRENTWM ] && exec $CURRENTWM
[ "$desktop" = "rox" ] && exec jwm
###END###