diff options
| author | Andrew <saintruler@gmail.com> | 2020-11-30 20:02:27 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-11-30 20:02:27 +0400 |
| commit | 5a68d0d68032b33af5d433cde1d93c6f6cfb0f11 (patch) | |
| tree | 642bac10a424b63d73ec0f88e9cadcb71d298323 /.xinitrc | |
| parent | 2ffe1d22e9ab40f205f0cfa70ebb0712bb36c115 (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-- | .xinitrc | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -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 |