blob: 7a0ee89cd9a117a1918bbec2197e80eadb44b722 (
plain)
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
|
#!/usr/bin/env bash
# use .Xmodmap
if [[ -f ~/.Xmodmap ]]; then
/usr/bin/xmodmap ~/.Xmodmap &
fi
# use .Xresources
if [[ -f ~/.Xresources ]];then
/usr/bin/xrdb ~/.Xresources &
fi
# set X settings
if [ -x /usr/bin/xset ]; then
# disable bell
xset -b
# disable screensaver and dpms
xset s off
xset dpms 0 0 0
fi
# start lxpolkit to have polkit authentication
if [ -x /usr/bin/lxpolkit ]; then
/usr/bin/lxpolkit &
fi
# setup screens on login using autorandr
if [ -x "$HOME/bin/setup_screens" ]; then
$HOME/bin/setup_screens &
fi
# start xautolock
if [ -x /usr/bin/xautolock -a -x /usr/bin/i3lock ]; then
/usr/bin/xautolock -time 10 \
-corners "0-00" \
-killtime 10 \
-killer "/usr/bin/xset dpms force off" \
-locker "/usr/bin/i3lock -n -e -c 000000 -f" &
fi
## start compton
## TODO: configuration file needs to be revised, messes with xrandr
#if [ -x /usr/bin/compton -a -a /sys/kernel/realtime ]; then
# /usr/bin/compton -b -d "$DISPLAY" &
#fi
# start conky
if [ -x /usr/bin/conky ]; then
/usr/bin/conky -X "$DISPLAY" -c .config/conky/$(hostname)-network.conf &
/usr/bin/conky -X "$DISPLAY" -c .config/conky/$(hostname)-general.conf &
fi
# start redshift
if [ -x /usr/bin/redshift ]; then
/usr/bin/redshift -c .config/redshift.conf &
/usr/bin/redshift-gtk &
fi
# start a termite terminal
if [ -x /usr/bin/termite ]; then
termite &
fi
|