-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
42 lines (32 loc) · 870 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
#!/bin/bash
# start some nice programs
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
# base Xressources, standard DPI
[[ -f ~/.Xresources ]] && xrdb -load ~/.Xresources
# local system configuration
if [ -d "$DOTFILES_LOCAL" ] ; then
shopt -s nullglob
for f in "${DOTFILES_LOCAL}"/xinitrc*; do
source "$f"
done
unset f
fi
# keyboard speed
(sleep 3 && xset r rate 200 80) &
# make CapsLock behave like Ctrl:
(sleep 3 && xcape -e 'Control_L=Escape') &
# xautolock should be attached to x, not i3 or systemd
xautolock -time 120 -locker "systemctl suspend" -notify 20 -notifier "xset dpms force off" &
# transparency
picom -b
# startup
# TODO: service
/usr/bin/caffeine
/usr/bin/seafile
/usr/bin/setterm -blank 1 -powersave powerdown
exec i3