#!/bin/bash

function start_x_window {
    if [ -f /tmp/.X5-lock ]; then
	startx -- :6
    elif [ -f /tmp/.X4-lock ]; then
	startx -- :5
    elif [ -f /tmp/.X3-lock ]; then
	startx -- :4
    elif [ -f /tmp/.X2-lock ]; then
	startx -- :3
    elif [ -f /tmp/.X1-lock ]; then
	startx -- :2
    elif [ -f /tmp/.X0-lock ]; then
	startx -- :1
    else
	startx
    fi    
}
