#!/bin/bash echo "exec wmii" > .xinitrc if [ -z "$(ps h -C X)" ] then startx else startx -- :1 fi echo "exec startkde" > .xinitrc exit 0