xinitrc (397B)
1 #!/bin/sh 2 3 # start some nice programs 4 if [ -d /etc/X11/xinit/xinitrc.d ]; then 5 for f in /etc/X11/xinit/xinitrc.d/?*; do 6 [ -x "$f" ] && . "$f" 7 done 8 unset f 9 fi 10 11 12 # Source xprofile 13 source "$XDG_CONFIG_HOME/X11/xprofile" 14 15 16 # Here bspwm is kept as default 17 session=${1:-bspwm} 18 19 case $session in 20 bspwm) 21 exec bspwm 22 ;; 23 i3) 24 exec i3 25 ;; 26 dwm) 27 exec dwm 28 ;; 29 emacs) 30 exec emacs 31 ;; 32 *) 33 exec $1 34 ;; 35 esac