-
Notifications
You must be signed in to change notification settings - Fork 2
/
.xprofile
64 lines (55 loc) · 1.05 KB
/
.xprofile
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
command_exists() {
command -v "$@" >/dev/null 2>&1
}
start_pulseaudio() {
pulseaudio --check || pulseaudio --start
}
start_compositor() {
if command_exists picom; then
pidof picom || picom --experimental-backends -b
elif command_exists compton; then
pidof compton || compton -b
elif command_exists xcompmgr; then
pidof xcompmrg || xcompmgr &
fi
}
start_unclutter() {
if command_exists unclutter; then
pidof unclutter || unclutter &
fi
}
start_dwmbar() {
if command_exists dwmbar; then
pidof dwmbar || dwmbar &
fi
}
start_mpd() {
if command_exists mpd; then
pidof mpd || mpd
fi
}
start_dwmblocks() {
if command_exists dwmblocks; then
pidof dwmblocks || dwmblocks &
fi
}
start_xsautolock() {
if command_exists xsidle; then
xset s 600
pidof xsidle || xsidle slock &
fi
}
case $XDG_SESSION_DESKTOP in
dwm|bspwm|'')
start_pulseaudio
start_mpd
#start_dwmblocks
start_compositor
start_unclutter
#start_xsautolock
${HOME}/.fehbg
;;
default)
# Do nothing
;;
esac