#!/bin/sh

[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile

session=${1:-qtile}

case $session in
    i3|i3wm ) exec i3;;
    kde ) exec startkde;;
    qtile ) exec qtile start;;
    awesome ) exec awesome;;
    xfce|xfce4 ) exec startxfce4;;
    # No known session, try to run it as command
    * ) exec $1;;
esac