-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinitrc
50 lines (36 loc) · 1.02 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
# ╻ ╻╻┏┓╻╻╺┳╸┏━┓┏━╸
# ┏╋┛┃┃┗┫┃ ┃ ┣┳┛┃
# ╹ ╹╹╹ ╹╹ ╹ ╹┗╸┗━╸
# Start GPG agent.
gpg-connect-agent updatestartuptty /bye
# Start keyring.
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets)
# Load the Xresources settings.
xrdb "${XDG_CONFIG_HOME}/Xresources"
# Start xiccd colord daemon.
xiccd &
# XSS Lock - handle lid close, suspend etc.
xss-lock -l -- lock &
# Start gesture handling.
libinput-gestures-setup start &
# Set background color.
xsetroot -solid '#222222'
# Set screensaver timer.
xset s 240 0
# Disable DPMS.
xset -dpms
# Start composition manager (xcompmgr).
xcompmgr -c -l 0 -t 0 -r 0 -o 0 &
# Clear playground boxes.
if [[ -d "${CODE}/playground" ]]; then
git -C "${CODE}/playground" checkout -- src
fi
# Run the scripts in xinitrc.d.
if [[ -d /etc/X11/xinit/xinitrc.d ]]; then
for file in /etc/X11/xinit/xinitrc.d/?*.sh; do
[[ -x "${file}" ]] && . "${file}"
done
unset f
fi
# Start i3.
exec i3