How to make Conky read out music from Rhythmbox

Message
Author
Solid
Posts: 7
Joined: Tue Mar 12, 2019 12:05 am

How to make Conky read out music from Rhythmbox

#1 Post by Solid »

Can anyone help out? I ditched Clementine for Rhythmbox and I am wondering how can I make it work with Conky like Clementine did?

--------------

MOD: I removed the two capitalized words from the subject line that are misleading and do not follow Forum norms. Thanks for understanding.

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: [HELP] How to make Conky read out music from Rhythmbox [UNSOLVED]

#2 Post by skidoo »

FYI, results of a quick websearch "conky rhythmbox" finds plenty of howto instructions

User avatar
asqwerth
Developer
Posts: 7232
Joined: Sun May 27, 2007 5:37 am

Re: [HELP] How to make Conky read out music from Rhythmbox [UNSOLVED]

#3 Post by asqwerth »

Which conky are you using?

Also, there is no necessity to have "UNSOLVED" in your title when you only just posted your initial request for help. That makes it appear as if no one could solve it after many attempts.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Gerson
Posts: 876
Joined: Sun Nov 12, 2017 10:58 am

Re: [HELP] How to make Conky read out music from Rhythmbox [UNSOLVED]

#4 Post by Gerson »

I ask that you remove the [UNSOLVED] one of the title by solution you have and many.
No todos ignoramos las mismas cosas. :confused:

Solid
Posts: 7
Joined: Tue Mar 12, 2019 12:05 am

Re: How to make Conky read out music from Rhythmbox

#5 Post by Solid »

Sorry everyone I was asleep at the time so I couldn't change the title at the time.

Solid
Posts: 7
Joined: Tue Mar 12, 2019 12:05 am

Re: [HELP] How to make Conky read out music from Rhythmbox [UNSOLVED]

#6 Post by Solid »

asqwerth wrote: Sat Mar 23, 2019 1:14 am Which conky are you using?

Also, there is no necessity to have "UNSOLVED" in your title when you only just posted your initial request for help. That makes it appear as if no one could solve it after many attempts.
Currently using 1.10.6 of Conky.

User avatar
asqwerth
Developer
Posts: 7232
Joined: Sun May 27, 2007 5:37 am

Re: How to make Conky read out music from Rhythmbox

#7 Post by asqwerth »

Not the version of conky, but which conky config are you trying to run? If you paste it here, we can have a look.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Solid
Posts: 7
Joined: Tue Mar 12, 2019 12:05 am

Re: [HELP] How to make Conky read out music from Rhythmbox [UNSOLVED]

#8 Post by Solid »

skidoo wrote: Sat Mar 23, 2019 12:25 am FYI, results of a quick websearch "conky rhythmbox" finds plenty of howto instructions
Not really, at least not for me. I have been doing that for an hour and a half and to no luck and the most I have found is them talking about the Rhythmbox man page that doesn't really help. And other sources I find either shill there badly made scripts to me that don't work or don't really show me or help me actually make stuff work. I even tried multiple search engines as well and to no avail... :frown:

Solid
Posts: 7
Joined: Tue Mar 12, 2019 12:05 am

Re: How to make Conky read out music from Rhythmbox

#9 Post by Solid »

asqwerth wrote: Sat Mar 23, 2019 2:48 pm Not the version of conky, but which conky config are you trying to run? If you paste it here, we can have a look.

Code: Select all

### conky ###

    background yes
    update_interval 2

    cpu_avg_samples 1
    net_avg_samples 2
    temperature_unit celsius

    double_buffer yes
    no_buffers yes
    text_buffer_size 2048

gap_x -500
gap_y 90
minimum_size 250
    maximum_width 300
    own_window yes
    own_window_type normal  #desktop
    #own_window_type panel # Just use with KWin for example in Xfce
own_window_transparent yes
own_window_argb_visual no
    own_window_class conky-semi
    own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
    border_inner_margin 10
    border_outer_margin 10
alignment top_right

    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no

    override_utf8_locale yes
    use_xft yes
#    xftfont caviar dreams:size=8
    xftfont Open Sans:size=9
    xftalpha 0.5
    uppercase no
    imlib_cache_size 0

    # Colours
    # 1 - Default Color
default_color FFFFFF
color1 dcdcdc
#2 - DarkSlateGray (horizontal lines)
color2 dcdcdc
    # 3 - Most progress bars, text
color3 dcdcdc
    # 4 - Title Blue
color4 000000


    # Loading lua script for drawning rings
    #lua_load ./seamod_rings.lua
    #lua_load ~/musictools/conky/conky-music/player.lua
    lua_draw_hook_pre main

    ## System information using conky capabilities

    # Header with base system info
own_window_argb_value 180
own_window_colour 000000

   TEXT
${image $HOME/.conky/MX-Bridouz/sardiStart-shadow.png -p 100,0 -s 50x50}
${voffset 8}

${font Roboto-Light:bold:size=10}${color white}/ ${font Roboto-Light:bold:italic:size=10}${color white}SYSTEM ${font Roboto-Light:bold:size=10}${color white}/ ${color2} ${hr 2}
$font${color white}$sysname $kernel $alignr $machine
Uptime $alignr${uptime}
File System $alignr${fs_type}
$font${color white}/         used $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
$font${color white}/home used $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
#$font${color white}DATA  used $alignc ${fs_used /media/Data} / ${fs_size /media/Data} $alignr ${fs_used_perc /media/Data}%

${font Roboto-Light:bold:size=10}${color white}/ ${font Roboto-Light:bold:italic:size=10}${color white}PROCESSORS ${font Roboto-Light:bold:size=10}${color white}/ ${color2}${hr 2}
$font${color white}${cpubar cpu1}
${cpubar cpu2}

${font Roboto-Light:bold:size=10}${color white}/ ${font Roboto-Light:bold:italic:size=10}${color white}MEMORY ${font Roboto-Light:bold:size=10}${color white}/ ${color2}${hr 2}
$font${color white}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
$font${top_mem name 1}${alignr}${top_mem mem 1}%
$font${top_mem name 2}${alignr}${top_mem mem 2}%
$font${top_mem name 3}${alignr}${top_mem mem 3}%

${font Roboto-Light:bold:size=10}${color white}/ ${font Roboto-Light:bold:italic:size=10}${color white}NETWORK ${font Roboto-Light:bold:size=10}${color white}/ ${color2}${hr 2}
$font${color white}IP on eth0 $alignr ${addr eth0}
$font${color white}IP on wlan0 $alignr ${addr wlan0}

Down $alignr ${downspeed wlan0} kb/s
Up $alignr ${upspeed wlan0} kb/s

Downloaded: $alignr  ${totaldown wlan0}
Uploaded: $alignr  ${totalup wlan0}

${font Roboto-Light:bold:size=10}${color white}/ ${font Roboto-Light:bold:italic:size=10}${color white}MUSIC ${font Roboto-Light:bold:size=10}${color white}/ ${color2}${hr 2}
##
##Clementine using mediaplayer.py script; orig ${font Open Sans:size=9}
${if_match "${execi 10 python3 $HOME/.conky/MX-Bridouz/mediaplayer.py clementine -i}"=="yes"}
${color3}${font Open Sans:size=9}${execpi 4 python3 $HOME/.conky/MX-Bridouz/mediaplayer.py clementine -tamlr -w 45}
${if_match "${execi 4 python3 $HOME/.conky/MX-Bridouz/mediaplayer.py clementine -p}"=="Unknown"}\
Progress: ${alignr}Unknown
${else}\
Progress:
${color2}${execibar 4 python3 $HOME/.conky/MX-Bridouz/mediaplayer.py clementine -p}



${endif}\
${else}
${color3}${font Open Sans:size=9}Clementine Not Running\
${endif}
##
Also the image attached is what it looks like.
You do not have the required permissions to view the files attached to this post.

User avatar
asqwerth
Developer
Posts: 7232
Joined: Sun May 27, 2007 5:37 am

Re: How to make Conky read out music from Rhythmbox

#10 Post by asqwerth »

Have you tried replacing all instances of "clementine" with "rhythmbox" in the conky config? Try "Rhythmbox" with a capital "R" if "rhythmbox" doesn't work. I tested it with Lollypop and it required a capital "L".

The mediaplayer.py script apparently works with all media players that use the MPRIS standard. I"m assuming rhythmbox is MPRIS-compatible. In the default conky config, the command makes the script get music info from clementine. So you can change it to make the script get info from rhythmbox.

If that doesn't work, it just means that the mediaplayer python script does not work with Rhythmbox and you'll need to find another script or a different conky config that runs with Rhythmbox.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Post Reply

Return to “XFCE Desktop Environment”