summaryrefslogtreecommitdiff
path: root/.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '.xinitrc')
-rw-r--r--.xinitrc16
1 files changed, 5 insertions, 11 deletions
diff --git a/.xinitrc b/.xinitrc
index af658dd..da34fa7 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,16 +1,10 @@
#!/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
+# This file is sourced only when starting X11 session with startx.
+# Otherwise, display manager should set up this variable and
+# source the xprofile.
+
+export DESKTOP_SESSION="xmonad"
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile