lunes, 6 de mayo de 2013

Conky sincronizado con moc

Bueno, a lo bruto... moc es reproductor de música que funciona desde la terminal (concepto para nada técnico, pero que da a entender la función que cumple), el cual me tiene enamorado desde que mi compa +Rogger Ortega me lo dio a conocer en un blog del extinto Pardus Linux 2011 (RIP) :'(

Y conky pues es mmm... es conky! una cosa que te dice lo que los que saben de programación quieren saber sobre su software y/o/u hardware (pffff si parezco un ateo explicando lo que es "Dios"), pero bueno, la mayoría de Linuxeros saben lo que es y lo que hace, yo solo quiero dejar publicado acá mi conky.rc para que en caso de algún misterioso caso de la naturaleza mi configuración este disponible para recuperarla y/o a alguien le parezca útil.


Como vemos en el screenshot, conky esta sincronizado con moc. Gracias a +Fernando López León 

-----------------------------------------conky.rc---------------------------------------------


# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
# Use Xft?
use_xft yes
xftfont Monospace:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 200 0
minimum_size 200 200
maximum_width 240


# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color grey
#default_shade_color black
#default_outline_color white
own_window_colour 333333

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
#gap_x 30
gap_x 12
gap_y 60

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none


TEXT
Kernel
 +
 | + $nodename ${kernel}
 +
Time
 +
 | + ${time %H:%M} ${time %d %b %Y}
 +
System
 +
 | + CPU: ${cpu cpu}%
 | + CPU: ${cpu cpu1}%
 | + RAM: $memperc%
 | + Temp: ${acpitemp}ºC 
 | + /: ${fs_free /root}/${fs_size /root} 
 | + /var: ${fs_free /var}/${fs_size /var}
 | + ~/: ${fs_free /home}/${fs_size /home}
 +
Net
 +
 | + Up: ${upspeed wlan0}kb/s (${totalup wlan0}) 
 | + Down: ${downspeed wlan0}kb/s (${totaldown wlan0})
 +
Processes
 +
 | + NAME $alignr  PID     CPU
 | + ${top name 1} $alignr ${top pid 1} ${top cpu 1}
 | + ${top name 2} $alignr ${top pid 2} ${top cpu 2}
 | + ${top name 3} $alignr ${top pid 3} ${top cpu 3}
 | + ${top name 4} $alignr ${top pid 4} ${top cpu 4}
 | + ${top name 5} $alignr ${top pid 5} ${top cpu 5}
 +
Shortcuts
 +
 | + Alt+F2$alignr Run Dialog
 | + Alt+F3$alignr Alt Menu
 | + Super+Space$alignr Main Menu
 | + Super+Tab$alignr Client Menu
 | + Super+t$alignr Terminal
 | + Super+f$alignr File Manager
 | + Super+e$alignr Editor
 | + Super+m$alignr Media Player
 | + Super+w$alignr Web Browser
 | + Super+h$alignr Task Manager
 | + Super+l$alignr Lock Screen
 | + Super+v$alignr Volume Control
 | + Super+x$alignr Logout
 | + PrtSc$alignr Screenshot
 +
Music ${if_running mocp}
 +
 | MOC ${voffset -3}${hr 2}
 |  
 | + Artista:     ${exec mocp -Q %artist}
 |  
 | + Cancion:     ${exec mocp -Q %song}
 |
 | + Duración:    ${exec mocp -Q %tt} 
 |
 | + CTime:       ${exec mocp -Q %ct}