2012-10-16 10:17:25 +02:00
|
|
|
|
#!/bin/bash
|
2013-03-04 11:12:45 +01:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2012-10-07 15:16:58 +02:00
|
|
|
|
xmodmap ~/.Xmodmap
|
|
|
|
|
|
2012-10-16 10:17:25 +02:00
|
|
|
|
# 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
|
|
|
|
|
|
2013-03-03 00:16:14 +01:00
|
|
|
|
redshift -l 51.1180:4.0012 &
|
2013-02-15 00:49:00 +01:00
|
|
|
|
unclutter &
|
|
|
|
|
mowedline &
|
|
|
|
|
xcompmgr -n -r 0 &
|
|
|
|
|
feh --bg-tile ~/pictures/wallpapers/wallpaper-864137.jpg
|
2013-03-22 13:32:42 +01:00
|
|
|
|
# xbindkeys
|
2012-11-05 21:02:18 +01:00
|
|
|
|
|
2013-03-04 11:12:45 +01:00
|
|
|
|
{
|
|
|
|
|
mpc idleloop | update_mowedline_mpd
|
|
|
|
|
} &
|
|
|
|
|
|
2013-03-22 13:32:49 +01:00
|
|
|
|
test -n "$1" && wm=$1 || wm="stumpwm"
|
2012-10-10 09:11:32 +02:00
|
|
|
|
exec $wm
|