summaryrefslogtreecommitdiff
path: root/.xinitrc
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-11-30 20:02:27 +0400
committerAndrew <saintruler@gmail.com>2020-11-30 20:02:27 +0400
commit5a68d0d68032b33af5d433cde1d93c6f6cfb0f11 (patch)
tree642bac10a424b63d73ec0f88e9cadcb71d298323 /.xinitrc
parent2ffe1d22e9ab40f205f0cfa70ebb0712bb36c115 (diff)
Changes to autostart of X11 session
* Removed autostarting of X11 from .profile * Moved variables used in graphical session to .xprofile * Removed junk from .xinitrc * Added xmonad configurations
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