#!/bin/sh . /etc/init.d/rc.functions xrandr -q | grep connected | cut -d " " -f 1 | { read screen1 read screen2 if [ -n "$MULTISCREEN_SCREEN_POS" -a -n "$screen1" -a -n "$screen2" ]; then xrandr --output $screen2 --$MULTISCREEN_SCREEN_POS $screen1 killall -s SIGHUP icewm-lite fi }