Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Conky + MPD

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
inukaze
Posts: 12
Joined: 2011-02-20 15:48

Conky + MPD

#1 Post by inukaze »

Hi there, i wanna know if someone can help me to put inside my Conky

1 - Cover (from local files, where cantata put cover files?) below the Progress bar
2 - Buttons for Control "Music Player Daemon" . i just need 3 Buttons. Back , Play/Pause , Foward . below the cover

This is my Conky :
Image

This is my configuration (~/.conkyrc) :

Code: Select all



#==============================================================================
#                               conkyrc_seamod
# Date    : 05/02/2012
# Author  : SeaJey
# Version : v0.1
# License : Distributed under the terms of GNU GPL version 2 or later
# 
# This version is a modification of conkyrc_lunatico wich is modification of conkyrc_orange
# 
# conkyrc_orange:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
# conkyrc_lunatico:  http://gnome-look.org/content/show.php?content=142884
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 1
gap_y 1
minimum_size 300 900
maximum_width 172
own_window yes
own_window_type desktop
#own_window_type panel # Just use with KWin for example in Xfce
own_window_transparent no
own_window_argb_visual yes
own_window_class conky-semi
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
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
xftalpha 0.5
uppercase no
imlib_cache_size 0

# Definiendo Colores

# 1 - Color Predeterminado
default_color FFFFFF

# 2 - Sombras
color1 DDDDDD
color2 AAAAAA
color3 888888

# 3 - Color de Separador
color4 0081FF

# 4 - Color de Titulo
color5 00BCD5

# 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 153
own_window_colour 000000
TEXT
${voffset 05}
${offset 05}${font Droid Sans:size=10,weight:bold}${color5}SISTEMA
${offset 10}${font Droid Sans:size=9,weight:normal}${color1}Nucleo            ${font Courier 10 Pitch:size=9,weight:bold}${alignr}$sysname 
${offset 10}${font Droid Sans:size=9,weight:normal}${color1}Nombre         ${font Courier 10 Pitch:size=9,weight:bold}${alignr}Inukaze 
${offset 10}${font Droid Sans:size=9,weight:normal}${color1}Actividad      ${font Courier 10 Pitch:size=9,weight:bold}${alignr}$uptime 
${offset 10}${font Droid Sans:size=9,weight:normal}${color1}Version ${font Courier 10 Pitch:size=9,weight:bold}${alignr}$kernel 
${offset 10}${font Droid Sans:size=9,weight:normal}${color1}Distro & Version${font Courier 10 Pitch:size=9,weight:bold}${alignr}${exec cat /etc/issue | cut -d ' ' -f01,03 | head -1} 
# Showing CPU Graph
${font Droid Sans:size=9,weight:bold}${color4}${hr 2}
${offset 120}${cpugraph 25,183 666666 666666}${voffset -18}
${offset 05}${font Droid Sans:size=9,weight:bold}${color5}PROCESAMIENTO
# Showing TOP 5 CPU-consumers
${offset 10}${font Courier 10 Pitch:size=9,weight:bold}${color4}${top name 1}${alignr}${top cpu 1}%  
${offset 10}${font Courier 10 Pitch:size=9,weight:bold}${color1}${top name 2}${alignr}${top cpu 2}%  
${offset 10}${font Courier 10 Pitch:size=9,weight:bold}${color2}${top name 3}${alignr}${top cpu 3}%  

#Showing memory part with TOP 3
${voffset 05}
${offset 05}${font Droid Sans:size=9,weight:bold}${color5}MEMORIA
${offset 10}${font Courier 10 Pitch:size=9,weight:bold}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%  
${offset 10}${font Courier 10 Pitch:size=9,weight:bold}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%  
${offset 10}${font Courier 10 Pitch:size=9,weight:bold}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%  

# Music Player Daemon 
${if_mpd_playing}${font Droid Sans:size=9,weight:bold}${color4}${hr 2}
${voffset 05}
${offset 35}${font Droid Sans:size=9,weight:bold}${color5}MusicPlayerDaemon
${offset 64}$mpd_status

Pista     ${mpd_title 15}
Album  $mpd_album
Artista  $mpd_artist
Tiempo  $mpd_elapsed / $mpd_length
${mpd_bar 5,170}

# En algun momento cuando sepa agregar
# 1 : Botones : Atras , Reproducir/Pausar , Adelante
# 2 : Caratula


# Showing disk partitions: root, home and Data
${font Droid Sans:size=9,weight:bold}${color4}${hr 2}
${offset 5}${font Droid Sans:size=10,weight:bold}${color5}PARTICIONADO
${offset 05}${diskiograph 16,183 0062FF 00BCD5}${voffset -30}
${voffset 30}
${offset 05}${alignc}${font Droid Sans:size=9,weight:normal}${color5}  Particion : /
${offset 05}${color2}${alignc}${font Droid Sans:size=9,weight:bold}Libre : ${font Sans:size=8,weight:normal}${fs_free /} | Usado : ${font Sans:size=8,weight:normal}${fs_used /}
${voffset 10}
${offset 05}${alignc}${font Droid Sans:size=9,weight:normal}${color5}Particion : /media/Compartido
${offset 05}${color2}${alignc}${font Droid Sans:size=9,weight:bold}Libre : ${font Sans:size=8,weight:normal}${fs_free /media/Compartido} | Usado : ${font Sans:size=8,weight:normal}${fs_used /media/Compartido}

# Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
${font Droid Sans:size=9,weight:bold}${color4}${hr 2}
${offset 05}${font Droid Sans:size=9,weight:bold}${color5}CONEXION A INTERNET
${voffset 1}
${offset 05}${color1}${font Droid Sans:size=9,weight:bold}Subida: ${alignr}${font Droid Sans:size=9,weight:normal}$color2${upspeed eth0} / ${totalup eth0}
${offset 05}${upspeedgraph eth0 10,285 00BCD5 0062FF 100 -l}
${voffset 1}
${offset 05}${color1}${font Droid Sans:size=9,weight:bold}Descarga: ${alignr}${font Droid Sans:size=9,weight:normal}$color2${downspeed eth0} / ${totaldown eth0}
${offset 05}${downspeedgraph eth0 10,285 0062FF 00BCD5 100 -l}
${font Droid Sans:size=9,weight:bold}
Someone can help me ???

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Conky + MPD

#2 Post by Bulkley »

Prowl through this Crunchbang thread: Tips, Tricks & Scripts, Howto: MPD. I never used MPD directly, preferring to use MPV instead. I mentioned this because I have seen posts on line about using MPV in Conky although I haven't tried it.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Conky + MPD

#3 Post by debiman »

ikunaze, conky is not interactive, so no buttons.
as for the cover, yes, if cantata puts the cover, say, under /tmp/cantata/cover.jpg, then you can add that path to your conky, e.g.:

Code: Select all

${image /tmp/cantata/cover.jpg -p 0,0 -s 200x200 -n}
just an example.

http://conky.sourceforge.net/variables.html

inukaze
Posts: 12
Joined: 2011-02-20 15:48

Re: Conky + MPD

#4 Post by inukaze »

Thanks

Post Reply