-
Notifications
You must be signed in to change notification settings - Fork 2
/
.xinitrc
executable file
·66 lines (54 loc) · 1.55 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
63
64
65
66
#!/bin/sh
session=${1:-awesome}
# set environment wm for use in scripts
export WM="$session"
# default arch xinit scripts
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
[ -x "$f" ] && . "$f"
done
fi
# user init scripts and settings
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
[ -f ~/.xprofile ] && source ~/.xprofile
# some things to start for awesome
# other wm already have these started elsewhere
if [[ $session == "awesome" ]]; then
# gnome polkit
if [[ -x /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 ]]; then
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
fi
~/.fehbg &
killall mpd
xrdb -load "$HOME/.Xresources" &
mpd
nm-applet &
compton --config "$HOME/.config/compton.conf" \
--shadow-exclude "x<=3 && x2>= 1000 && y <= 30 && y2 >=700" \
--xrender-sync-fence \
--vsync-use-glfinish &
# --use-damage
xfsettingsd &
xfce4-power-manager &
fi
# display timeout and sleep
xset s 1200 1200
xset dpms 1200 1300 1500
# keyboard repeat rate
# xset r rate 400 100
# kbdrate -d 400 -r 50
xset r rate 200 40
kbdrate -d 200 -r 40
# urxvt deamon
urxvtd -q -f -o &
# restore wal colors
# wal -R &
# do NOT put commands below the exec lines
case $session in
i3|i3wm) exec i3 ;;
bsp|bspwm) exec bspwm ;;
xfce|xfce4) exec startxfce4 ;;
openbox) exec openbox-session ;;
awesome) exec awesome ;;
*) exec "$session" # Unknown, try running it
esac