-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xinitrc
47 lines (29 loc) · 801 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
43
44
45
46
47
#====[ Fonts ]====
xset +fp /usr/share/fonts/local
xset fp rehash
#====[ X ]====
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
[[ -s ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
#====[ Detect external monitor changes ]====
IN="eDP1"
EXT="HDMI1"
while [ 1 ]; do
if (xrandr | grep "$EXT disconnected"); then
xrandr --output $IN --auto --output $EXT --off
else
xrandr --output $IN --auto --primary --output $EXT --auto --right-of $IN
fi
sleep 5
done &
#====[ Status bar ]====
conky | while read -r; do xsetroot -name "$REPLY"; done &
#====[ Notifications ]====
dunst &
#====[ Sound ]====
/usr/bin/start-pulseaudio-x11
#====[ Volume keys ]====
xbindkeys
#====[ System tray ]====
stalonetray &
#====[ Window Manager ]====
/usr/bin/dwm