/
xinitrc
46 lines (36 loc) · 899 Bytes
/
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
44
45
46
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Set wallpaper bg
if [[ -x /usr/bin/feh && -f "${HOME}/.fehbg" ]]; then
eval $(cat "${HOME}/.fehbg")
fi
#Permite restart x con ctr+at+backspace
setxkbmap -option terminate:ctrl_alt_bksp
# Iniciar mpd, con configuraciones en ~/.mpd/mpd.conf
if [[ -x /usr/bin/mpd && -f "${HOME}/.mpd/mpd.conf" ]]; then
mpd "${HOME}/.mpd/mpd.conf"
fi
# merge Xresources
if [[ -f "${HOME}/.Xresources" ]]; then
xrdb -merge "${HOME}/.Xresources"
fi
# Iniciar urxvt daemon
if [[ -x /usr/bin/urxvtd ]]; then
urxvtd -q -o -f
fi
#Source xmodmap
if [[ -f "${HOME}/.Xmodmap" ]]; then
(sleep 5s && xmodmap "${HOME}/.Xmodmap") &
fi
(sleep 2s && tint2) &
(sleep 2s && conky) &
exec openbox-session