Publicaciones Etiquetadas ‘Conky’

Mi conkyrc versión 2

Anteriormente ya había posteado la configuración de conky que utilizaba, la unica diferencia que tienen esa versión y la que posteo ahora, es que ya no utilizo amarok, sino que ryhthmbox.

Primero, deben instalar Fortunes, si es que desean que les aparezcan frases al azar en su conky ;) (como se ve en la foto).

sudo aptitude install fortunes fortunes-es

Aquí les dejo mi configuración: conkyrc

Simplemente tienen que descomprimir los dos archivos dentro de su carpeta home, luego editar el archivo .conkyrc para adaptarlo a sus necesidades ;)!

PD: conkyrythmbox.py es un simple script en python que permite generar la barra de progreso para Rythmbox ;)

Mi Conkyrc

El otro día tenía que hacer la hora, asi que me puse a jugar con Conky. Aquí les dejo mi conkyrc:

# Configuracion Conky
use_xft yes
xftfont Monospace:size=8
update_interval 1
alignment top_right
xftalpha 0.8
own_window yes
own_window_type override
own_window_transparent yes
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
use_spacer none
no_buffers yes
uppercase no
alignment top_right
cpu_avg_samples 2
override_utf8_locale yes

TEXT
$alignc$sysname $kernel on $machine
$alignc${exec whoami} @ $nodename
$stippled_hr
Fecha: ${time %A,%d %B}
Hora:  ${time %k:%M:%S}${alignr}Uptime: $uptime
$stippled_hr
$alignc Memoria
RAM: $memperc%  $mem/$memmax $membar
Swap: $swapperc% $swap/$swapmax ${swapbar}
$stippled_hr
${alignc}CPU
${execi 1000 cat /proc/cpuinfo | grep -m 1 ‘model name’ | sed -e ‘s/model name.*: //’}
${freq}MHz Load: ${loadavg} Temp: ${acpitemp}°C
CPU0: ${cpu cpu0}% ${cpubar cpu0}
CPU1: ${cpu cpu1}% ${cpubar cpu1}
$stippled_hr
${alignc}Bateria
${battery} ${battery_bar}
${battery_time}
$stippled_hr
${alignc}Systema de Ficheros
Raiz  ${fs_used_perc /}%   ${fs_used /}/${fs_size /}   ${fs_bar /}
Datos ${fs_used_perc /media/datos/}% ${fs_used /media/datos/}/${fs_size /media/datos/} ${fs_bar /media/datos/}
${if_mounted /media/usb}USB   ${fs_used_perc /media/usb/}% ${fs_used /media/usb/}/${fs_size /media/usb/} ${fs_bar /media/usb/}$endif
$stippled_hr
${if_up wlan0}${alignc}Wireless
ESSID: ${wireless_essid wlan0} ${wireless_link_qual_perc wlan0}% ${wireless_link_bar wlan0}
IP: ${addrs wlan0}
Down:  ${downspeed wlan0}k/s Up:   ${upspeed wlan0}k/s
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}$endif
$stippled_hr
${alignc}Procesos
Total: $processes    Running: $running_processes
Uso CPU         PID      CPU%      MEM%
${top name 1}    ${top pid 1}    ${top cpu 1}    ${top mem 1}
${top name 2}    ${top pid 2}    ${top cpu 2}    ${top mem 2}
${top name 3}    ${top pid 3}    ${top cpu 3}    ${top mem 3}
${top name 4}    ${top pid 4}    ${top cpu 4}    ${top mem 4}
$stippled_hr${if_running amarokapp}
${alignc}Now Playing
${alignc}${execi 10 ~/.conky/amarok artist}
${alignc}${execi 10 ~/.conky/amarok title}
${execibar 1 ~/.conky/amarok progress}
${alignc}”${execi 10 ~/.conky/amarok album}”
${alignc}${execi 10 ~/.conky/amarok year} – ${alignc}${execi 10 ~/.conky/amarok genre}
$stippled_hr
${alignc}Collection Information
Artists: ${execi 10 ~/.conky/amarok totalArtists} ${alignr}Compilations: ${execi 10 ~/.conky/amarok totalCompilations}
Albums:  ${execi 10 ~/.conky/amarok totalAlbums} ${alignr}Genres: ${execi 10 ~/.conky/amarok totalGenres}
Tracks:  ${execi 10 ~/.conky/amarok totalTracks}
$stippled_hr$endif
${alignc}Fortune
${execi 120 fortune -s | fold -w50}
$stippled_hr

No olviden modificar la información de su sistema de ficheros.  Y también agrego el script para Amarok que saqué de la pagina oficial de conky.

#!/bin/bash
# amaroK info display script by eirc <eirc.eirc@gmail.com>
#
# requirements: amaroK (!)
# for Collection stats to work amarok must be using
# mySQL to store it’s collection

case “$1″ in

# Now Playing Info
artist) dcop amarok player artist ;;
title)  dcop amarok player title ;;
album)  dcop amarok player album ;;
year)   dcop amarok player year ;;
genre)  dcop amarok player genre ;;
progress)
curr=`dcop amarok player trackCurrentTime`
tot=`dcop amarok player trackTotalTime`
if (( $tot )); then
expr $curr \* 100  / $tot
fi
;;

# Collection Info
totalArtists)      dcop amarok collection totalArtists ;;
totalAlbums)       dcop amarok collection totalAlbums ;;
totalTracks)       dcop amarok collection totalTracks ;;
totalGenres)       dcop amarok collection totalGenres ;;
totalCompilations) dcop amarok collection totalCompilations ;;

# Collection Stats
most_songs_by_artist) dcop amarok collection query ‘SELECT t1.name FROM artist t1 INNER JOIN tags t2 ON t1.id = t2.artist GROUP BY t2.artist ORDER BY COUNT(t2.artist) DESC LIMIT 1;’ ;;
most_songs_by_artist_n) dcop amarok collection query ‘SELECT count(t2.artist) FROM artist t1 INNER JOIN tags t2 ON t1.id = t2.artist GROUP BY t2.artist ORDER BY COUNT(t2.artist) DESC LIMIT 1;’ ;;
most_songs_are_genre) dcop amarok collection query ‘SELECT t1.name FROM genre t1 INNER JOIN tags t2 ON t1.id = t2.genre GROUP BY t2.genre ORDER BY COUNT(t2.genre) DESC LIMIT 1;’ ;;
most_songs_are_genre_n) dcop amarok collection query ‘SELECT count(t2.genre) FROM genre t1 INNER JOIN tags t2 ON t1.id = t2.genre GROUP BY t2.genre ORDER BY COUNT(t2.genre) DESC LIMIT 1;’ ;;
most_songs_during_year) dcop amarok collection query ‘SELECT t1.name FROM year t1 INNER JOIN tags t2 ON t1.id = t2.year GROUP BY t2.year ORDER BY COUNT(t2.year) DESC LIMIT 1;’ ;;
most_songs_during_year_n) dcop amarok collection query ‘SELECT count(t2.year) FROM year t1 INNER JOIN tags t2 ON t1.id = t2.year GROUP BY t2.year ORDER BY COUNT(t2.year) DESC LIMIT 1;’ ;;
most_albums_by_artist) dcop amarok collection query ‘SELECT name FROM artist WHERE id=(SELECT t1.artist from (SELECT artist FROM tags GROUP BY album) AS t1 GROUP BY t1.artist ORDER BY count(artist) DESC LIMIT 1);’ ;;
most_albums_by_artist_n) dcop amarok collection query ‘SELECT count(artist) from (SELECT artist FROM tags GROUP BY album) AS t1 GROUP BY t1.artist ORDER BY count(artist) DESC LIMIT 1;’ ;;
most_albums_are_genre) dcop amarok collection query ‘SELECT name FROM genre WHERE id=(SELECT t1.genre from (SELECT genre FROM tags GROUP BY album) AS t1 GROUP BY t1.genre ORDER BY count(genre) DESC LIMIT 1);’ ;;
most_albums_are_genre_n) dcop amarok collection query ‘SELECT count(genre) from (SELECT genre FROM tags GROUP BY album) AS t1 GROUP BY t1.genre ORDER BY count(genre) DESC LIMIT 1;’ ;;
most_albums_during_year) dcop amarok collection query ‘SELECT name FROM year WHERE id=(SELECT t1.year from (SELECT year FROM tags GROUP BY album) AS t1 GROUP BY t1.year ORDER BY count(year) DESC LIMIT 1);’ ;;
most_albums_during_year_n) dcop amarok collection query ‘SELECT count(year) from (SELECT year FROM tags GROUP BY album) AS t1 GROUP BY t1.year ORDER BY count(year) DESC LIMIT 1;’ ;;

esac

Este debemos  guardarlo en el directorio .conky que debemos crear en unestro home.

Y finalmente este es el resultado:

conky

Volver a arriba
 
FireStats icon Con la potencia de FireStats