This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
executable file
·43 lines (38 loc) · 1.51 KB
/
.xinitrc
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
38
39
40
41
42
43
#!/bin/sh
## ----------------------------------------------------------------------------##
## Launch
## ----------------------------------------------------------------------------##
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
## ----------------------------------------------------------------------------##
## Update
## ----------------------------------------------------------------------------##
[[ -f ~/.Xresources ]] && xrdb -merge "${HOME}/.Xresources"
#[ ! -s ~/.config/mpd/pid ] && mpd
## ----------------------------------------------------------------------------##
## Settings
## ----------------------------------------------------------------------------##
nitrogen --restore &
(sleep 2s && dunst) &
compton --config ~/.config/compton.conf -b &> /tmp/compton.log
## ----------------------------------------------------------------------------##
## Startx session, Here i3 is kept as default
## ----------------------------------------------------------------------------##
session=${A:-bspwm}
case $session in
awesome ) exec awesome;;
bspwm ) exec bspwm;;
dwm ) exec dwm;;
2bwm ) exec 2bwm ;;
i3 ) exec i3;;
openbox ) exec openbox-session;;
xfce|xfce4 ) exec startxfce4;;
kde ) exec startkde;;
dde ) exec startdde;;
# No known session, try to run it as command
*) exec "$A";;
esac