-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathxinitrc
80 lines (53 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/sh
# fixes issue: slow start of gtk apps
# https://bbs.archlinux.org/viewtopic.php?id=224787
if command -v dbus-update-activation-environment >/dev/null; then
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
fi
if [ -f ~/.Xresources ]; then
xrdb -load ~/.Xresources
fi
# RUN VIRTUALBOX GUEST ADDITIONS
#
if command -v VBoxClient-all >/dev/null; then
VBoxClient-all || true
else
VBoxClient --clipboard || true
VBoxClient --checkhostversion || true
VBoxClient --display || true # for VBoxClient --version 5.*.*
VBoxClient --vmsvga || true # for VBoxClient --version 6.*.*
VBoxClient --seamless || true
VBoxClient --draganddrop || true
fi
pkill 'aw-watcher-*'
pkill 'aw-server-*'
if command -v aw-qt >/dev/null && ! pgrep -x aw-qt >/dev/null; then
{
while ! pgrep py3status; do
sleep 1
done &
sleep 10 && aw-qt
} &
fi
if command -v arbtt-capture >/dev/null && ! pgrep -x arbtt-capture >/dev/null; then
arbtt-capture &
fi
if command -v dunst >/dev/null && ! pgrep -x dunst >/dev/null; then
dunst &
fi
if command -v compton >/dev/null && ! pgrep -x compton >/dev/null; then
compton &
fi
if command -v i3 >/dev/null; then
exec i3
elif command -v spectrwm >/dev/null; then
exec spectrwm
elif command -v dwm >/dev/null; then
while true; do
xsetroot -name "$( date +"%F %R" )"
sleep 1m
done &
exec dwm
else
echo 'ERROR: No i3, spectrwm or dwm found!'
fi