-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinit
37 lines (31 loc) · 974 Bytes
/
.xinit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
# -- Launch
# ---------
[ -f ~/.xprofile ] && . ~/.xprofile
[[ -f ~/.Xresources ]] && xrdb -merge "${HOME}/.Xresources"
setxkbmap -model abnt2 -layout br -variant abnt2
(sleep 2s && dunst) &
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# -- Startx session
# -----------------
session=${A:-awesome}
case $session in
awesome ) exec awesome;;
bspwm ) exec bspwm;;
gnome ) exec gnome-session;;
dwm ) exec dwm;;
2bwm ) exec 2bwm;;
i3 ) exec i3;;
openbox ) exec openbox-session;;
xfce|xfce4 ) exec startxfce4;;
kde ) exec startkde;;
plasma ) exec startplasma-x11;;
dde ) exec startdde;;
lxde ) exec startlxde;;
*) exec "$A";;
esac