-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
executable file
·59 lines (40 loc) · 1.39 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
#!/bin/sh
# this file is executed when calling startx
# to start a different WM, set session="WM" below, or in console run:
# startx ~/.xinitrc WM
# session to run if none passed as first arg ($1)
session="${1:-bspwm}"
# 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 /etc/X11/xinit/.Xmodmap ] && xmodmap /etc/X11/xinit/.Xmodmap
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
[ -f ~/.xprofile ] && source ~/.xprofile
# display timeout and sleep
xset s 3600 3600
xset dpms 3600 3700 4000
# keyboard repeat rate
xset r rate 400 50
kbdrate -d 400 -r 50
# dbus
dbus-update-activation-environment --all
dbus-launch
# do NOT put commands below the exec lines
case $session in
bspwm) exec bspwm ;;
spectrwm) flashfocus & exec spectrwm ;;
dwm) flashfocus & ~/.config/dwm/autostart.sh & ~/.config/dwm/startdwm.sh ;;
hlwm) flashfocus & exec herbstluftwm --locked ;;
frwm) flashfocus & ~/.config/frankenwm/autostart & exec frankenwm ;;
awwm) flashfocus & compton -b & exec awesome ;;
stumpwm) flashfocus & compton -b & exec stumpwm ;;
berry) flashfocus & exec berry ;;
*) exec "$session" # Unknown, try running it
esac