From 5a68d0d68032b33af5d433cde1d93c6f6cfb0f11 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 30 Nov 2020 20:02:27 +0400 Subject: 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 --- .xinitrc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to '.xinitrc') 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 -- cgit v1.2.3