summaryrefslogtreecommitdiff
path: root/.xinitrc
blob: d93adebe2f5b533d88bc9f6808ea2aca33c28c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ "$DISPLAY_SESSION" = "dwm" ]; then
    session_line=dwm
elif [ "$DISPLAY_SESSION" = "openbox" ]; then
    session_line=openbox-session
else
    echo "DISPLAY_SESSION not specified. Exiting..."
    exit 1
fi

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

exec "$session_line"