db_file "~/.config/mpd/database"
log_file "~/.config/mpd/log"
-# Optional
music_directory "/mnt/data/music"
playlist_directory "~/.config/mpd/playlists"
pid_file "~/.config/mpd/pid"
input {
plugin "curl"
-# proxy "proxy.isp.com:8080"
-# proxy_user "user"
-# proxy_password "password"
}
audio_output {
type "pulse"
name "My Pulse Output"
-# server "remote_server" # optional
-# sink "remote_server_sink" # optional
+}
+
+audio_output {
+ type "cgi-output"
+ name "CGI Output"
+ command "/home/mrl/projects/mpdcgilog/mpdcgilog.py"
}
audio_output {
file="$(mpc --format /mnt/data/music/%file% current)"
printf "\e]20;;100x100+1000+1000\a"
for c in "${file%/*}/cover."*; do
- printf "\e]20;$c;30x30+1+94:op=keep-aspect\a"
+ printf "\e]20;$c;50x50+1+94:op=keep-aspect\a"
done