View previous topic :: View next topic |
Author |
Message |
Electromaniac n00b
Joined: 02 Mar 2011 Posts: 27
|
Posted: Thu Nov 14, 2013 8:28 am Post subject: [SOLVED] conky does not display mpd status |
|
|
While being on Arch I had this line to display mpd status in conky:
TEXT
$if_mpd_playing ${mpd_smart}$endif
But on Gentoo if_mpd_playing and mpd_smart are unrecognized commands
Instead, I tried
TEXT
$if_running mpd ${mpd_artist}$endif
And I get
Conky:if_running needs an argument
Segmentation fault
And then it freezes conky, which will not load on next startx
When tried ${if_running mpd} $mpd_artist ${endif}
I get
Conky: unknown variable mpd_artist
${mpd_artist} | 2% / 1% / 2% / 1% | full | 50c | 11% (372MiB) | 0B 0B | Thu Nov 14 09:29am
What else should I try?
Last edited by Electromaniac on Fri Nov 15, 2013 12:10 pm; edited 1 time in total |
|
Back to top |
|
|
Maitreya Guru
Joined: 11 Jan 2006 Posts: 441
|
Posted: Thu Nov 14, 2013 11:23 am Post subject: |
|
|
Did you try:
${if_running mpd} ${mpd_artist} ${endif}
So the function and var are within { } |
|
Back to top |
|
|
Electromaniac n00b
Joined: 02 Mar 2011 Posts: 27
|
Posted: Thu Nov 14, 2013 11:59 am Post subject: |
|
|
I have just tried. Same thing. It says unknown variable mpd_artist and prints ${mpd_artist} |
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
|
Back to top |
|
|
Electromaniac n00b
Joined: 02 Mar 2011 Posts: 27
|
Posted: Thu Nov 14, 2013 12:06 pm Post subject: |
|
|
I have just remerged conky with USE="mpd"
Now it seems to support mpd
It displays now ${if_running mpd} ${mpd_artist} ${endif} as
Conky: MPD error: host "localhost" not found: Name or service not known
Thanks. |
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Thu Nov 14, 2013 12:14 pm Post subject: |
|
|
Check your mpd configuration for host, mine is
Code: | #bind_to_address "127.0.0.1" |
So make sure it is correct or commented out.
Then check your /etc/hosts just in case you set it up wrong, mine for example:
Code: | 127.0.0.1 gentoo.mastodon gentoo localhost
::1 localhost |
|
|
Back to top |
|
|
Electromaniac n00b
Joined: 02 Mar 2011 Posts: 27
|
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Thu Nov 14, 2013 1:12 pm Post subject: |
|
|
You're welcome, and it looks pretty sweet, nice! |
|
Back to top |
|
|
|