-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxinitrc
62 lines (52 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/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
# Read Xressources
xrdb .Xresources
xset r rate 200 40
# Launch X applications
compton &
#xscreensaver -nosplash &
# Launch desktop daemons
mpd
pgrep -x lightsOn.sh > /dev/null || $HOME/bin/lightsOn.sh 120 &
numlockx &
# Offlineimap
#pgrep -x offlineimap > /dev/null || offlineimap -l ~/.offlineimap/logs/offlineimap.log &
# Background
#./.fehbg
# Reload gpg agent
gpg-connect-agent reloadagent /bye &
session=${1:-awesome}
case $session in
awesome ) session=awesome;;
bspwm ) session=bspwm;;
catwm ) session=catwm;;
cinnamon ) session=cinnamon-session;;
dwm ) session=dwm;;
enlightenment ) session=enlightenment_start;;
ede ) session=startede;;
fluxbox ) session=startfluxbox;;
gnome ) session=gnome-session;;
gnome-classic ) session="gnome-session --session=gnome-classic";;
i3|i3wm ) session=i3;;
icewm ) session=icewm-session;;
jwm ) session=jwm;;
kde ) session=startkde;;
mate ) session=mate-session;;
monster|monsterwm ) session=monsterwm;;
notion ) session=notion;;
openbox ) session=openbox-session;;
unity ) session=unity;;
xfce|xfce4 ) session=startxfce4;;
xmonad ) session=xmonad;;
esac
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session ${session}