Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: ConkyRhythmbox help

  1. #1
    Join Date
    Apr 2013
    Beans
    13

    ConkyRhythmbox help

    I'm trying to get Conky to display the now playing information from Rhythmbox, using the conkyRhythmbox script, but every field just outputs "unknown".

    This is what I have in my conky config file:

    Code:
    Title:${execp conkyRhythmbox --datatype=TI}Artist:${execp conkyRhythmbox --datatype=AR}
    Album:${execp conkyRhythmbox --datatype=AL}
    I'm probably missing something really simple, but I can't think what!

    Anyone able to help please?

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: ConkyRhythmbox help

    What version of Rhythmbox are you using?

    Due to changes in Rhythmbox the script doesn't work with the latest versions.
    Cheesemill

  3. #3
    Join Date
    Apr 2013
    Beans
    13

    Re: ConkyRhythmbox help

    It's version 2.97

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: ConkyRhythmbox help

    Thought so.

    The conkyRhythmbox script won't work with that version.
    The last version it worked with was 2.9.0 I believe.
    Cheesemill

  5. #5
    Join Date
    Apr 2005
    Location
    EU - UK
    Beans
    3,345
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ConkyRhythmbox help

    Is there a conky script that displays track info using MPRIS? You could use that.

  6. #6
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,870
    Distro
    Ubuntu Development Release

    Re: ConkyRhythmbox help

    Quote Originally Posted by kostkon View Post
    Is there a conky script that displays track info using MPRIS? You could use that.
    Here's what I came up with (with scrolling)...

    SOURCE: http://ubuntuforums.org/showthread.p...1#post12600562

    Code:
    ##################################
    ##  RHYTHMBOX 2 (Experimental)  ##
    ##################################
    ${if_running rhythmbox}
    ${voffset -13}${font DroidSans:bold:size=8}${color4}RHYTHMBOX${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 2}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""}}${font}${else}${alignc}${execi 2 qdbus org.mpris.MediaPlayer2.rhythmbox /\org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title | cut -c 14-""}${font}${endif}${endif}
    All I wanted is the "Title", but this code (above) shows the MPRIS entry point for Rhythmbox , so you can extrapolate from there.
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  7. #7
    Join Date
    Apr 2013
    Beans
    13

    Re: ConkyRhythmbox help

    Thanks! That's just about working perfectly!

  8. #8
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: ConkyRhythmbox help

    Another option is to use the rhythmbox-client program that's part of Rhythmbox to extract the required data...
    Code:
    man rhythmbox-client
    Code:
    ${if_running rhythmbox}${lua conky_draw_bg}${execpi 20 ~/.conky/getAlbumArt.sh}${image ~/.conky/albumart -s 75x75}${voffset 6}${goto 96}${font Ubuntu:size=10}${execp rhythmbox-client --no-start --no-present --print-playing-format=%tt}${font}
    ${voffset 6}${goto 96}${execp rhythmbox-client --no-start --no-present --print-playing-format=%ta}
    ${goto 96}${execp rhythmbox-client --no-start --no-present --print-playing-format=%at}
    ${voffset 6}${goto 96}${execp rhythmbox-client --no-start --no-present  --print-playing-format=%te} / ${execpi 3 rhythmbox-client --no-start --no-present  --print-playing-format=%td}${alignr}${execpi 3 rhythmbox-client --no-start --no-present  --print-playing-format=%ay}${endif}
    Cheesemill

  9. #9
    Join Date
    Apr 2013
    Beans
    13

    Re: ConkyRhythmbox help

    I came across that, but apparently it's not supported anymore. The only trace of it I could find is the man page!

  10. #10
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: ConkyRhythmbox help

    Quote Originally Posted by neilnoise View Post
    I came across that, but apparently it's not supported anymore. The only trace of it I could find is the man page!
    That's strange. I use this conky on both my 12.10 and 13.04 installations and the rhythmbox-client command is working fine.
    Cheesemill

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •