dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit f73898f45b149f19f21aefc263dbf9bd0acc1485
parent 8b409d39f1f29bcccaf613eaef4e46f486bed581
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Sun, 10 Sep 2023 21:00:25 -0500

Update xinitrc for several desktop environments

Diffstat:
M.config/X11/xinitrc | 19++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc @@ -4,6 +4,7 @@ [[ -f $XDG_CONFIG_HOME/X11/Xresources ]] && xrdb -merge "$XDG_CONFIG_HOME/X11/Xresources" [[ -f $XDG_OONFIG_HOME/X11/Xmodmap ]] && xmodmap "$XDG_CONFIG_HOME/X11/Xmodmap" + # start some nice programs if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/?*; do @@ -12,7 +13,23 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then unset f fi + # Source xprofile source "$XDG_CONFIG_HOME/X11/xprofile" -exec bspwm + +# Here bspwm is kept as default +session=${1:-bspwm} + +case $session in +bspwm) + exec bspwm + ;; +kde) + export DESKTOP_SESSION=plasma + exec startplasma-x11 + ;; +*) + exec $1 + ;; +esac