i3blocks and mpd
#1
I'm having some trouble getting mpd to show artist name and song title on i3blocks.

I'm using this module, but all I get is (null) - (null) in the bar.

This is what my module looks like:

Code:
[mediaplayer]
instance=mpd
interval=4
signal=10

Anyone else run into this problem? I'm using Arch Linux.
Reply
#2
You don't have script path specified. You need the have the line command=$SCRIPT_DIR/mediaplayer before the "instance=mpd" line.

Or you can make your own module. The following is really simple but does the job. If I was using i3blocks, I would write a script to display file name when no artist or title name is present.
Code:
[mpd]
command=mpc current -f '%artist% - %title%'
interval=once
signal=2
separator=false
min_width=450
align=left
—————————
Free software acts as a virus. Free systems have the potency to wipe out any other protocol or design, including any superior ones (unless they are also free). A example is the various Unix systems and protocols has done huge irreversible damage to society. ~ Aids
Reply


[-]
Quick Reply
Message
Type your reply to this message here.


Forum Jump:


Users browsing this thread: 1 Guest(s)