blob: ab6575564676e0ab2847e7d1f4abad4228d9a05f (
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
|
#!/bin/bash
function update_mowedline_mpd ()
{
while read action; do
if [ "$action" == "player" ]; then
IFS='' read -ra INFO <<< "`mpc status | tr '\n' `"
if [ "${INFO[1]}" == "" ]; then
mowedline-client -update mpd ""
else
TXT=" ${INFO[0]}"
ST="`echo ${INFO[1]} | sed 's/\[\(.*\)\] .*/\1/'`"
if [ "$ST" == "paused" ]; then
TXT="$TXT (paused)"
fi
mowedline-client -update mpd " $TXT"
fi
fi
done
}
xmodmap ~/.Xmodmap
# Source scripts in /etc/X11/xinit/xinitrc.d/
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
redshift -l 51.1180:4.0012 &
unclutter &
mowedline &
xcompmgr -n -r 0 &
feh --bg-tile ~/pictures/wallpapers/wallpaper-864137.jpg
{
mpc idleloop | update_mowedline_mpd
} &
test -n "$1" && wm=$1 || wm="xmonad"
exec $wm
|