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

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

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

exec "$session_line"