-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
98 lines (80 loc) · 1.78 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/sh
userresources=$HOME/.Xresources
# merge in defaults
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
# sensible defaults
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
# set keyboard rate
xset r rate 350 60
# set screen brightness
xrandr --output LVDS --brightness 1.2
# start compton and background it
/usr/bin/compton -b
# Enforce correct locales from the beginning:
# LC_ALL is unset since it overwrites everything
# LANG=en_GB.UTF-8 is used, except for:
# LC_MESSAGES=C never translates program output
unset LC_ALL
export LANG=en_GB.UTF-8
export LC_MESSAGES=C
# Use XToolkit in java applications
export AWT_TOOLKIT=XToolkit
# restore background image
/home/neil/.fehbg
# Enable core dumps in case something goes wrong
ulimit -c unlimited
# setup keymap modifiers for Emacs (with caps-lock -> HYPER modifier)
#xmodmap ~/.Xmodmap
# Enable zapping (C-A-<Bksp> kills X)
setxkbmap -option terminate:ctrl_alt_bksp -option altwin:left_meta_win -option ctrl:nocaps
xsetroot -cursor_name left_ptr
# adjust display temperature daytime/nighttime
#redshift &
# Start window manager like this, e.g.:
# % WM=awesome startx
# if WM isn't defined in environment, default to xmonad.
[[ -z "$WM" ]] && WM="xmonad"
logmsg ()
{
echo ">>>>>> Starting $WM on $(date)"
}
case $WM in
awesome)
logmsg
exec /usr/bin/awesome
;;
i3)
logmsg
exec /usr/bin/i3 -V
;;
ratpoison)
logmsg
exec /usr/bin/ratpoison
;;
spectrwm)
logmsg
exec /usr/bin/spectrwm
;;
xmonad)
logmsg
PATH=$PATH:$HOME/.xmonad/bin
# tray &
exec /usr/bin/xmonad
;;
lxqt)
logmsg
exec /usr/bin/startlxqt
;;
*)
logmsg
# could put xterm here...
exec /usr/bin/twm
;;
esac