!! mon .conkyrc # Conky configuration background no use_xft no xftfont Monospace:size=9 xftalpha 0.8 out_to_console no update_interval 2 total_run_times 0 own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 330 10 maximum_width 330 draw_shades no draw_outline no draw_borders no draw_graph_borders yes stippled_borders 5 border_margin 4 border_width 1 default_color grey default_shade_color black default_outline_color black alignment top_right gap_x 10 gap_y 47 no_buffers no uppercase no cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes use_spacer no TEXT ${color white}$alignc$sysname $kernel on $nodename $color$stippled_hr ${color}Date: ${color white}${time %A %d %B} ${color}Time: ${color white}${time %H:%M:%S}${alignr}${color}Uptime: ${color white}$uptime $color$stippled_hr $color$stippled_hr ${color}System : ${color} Load: ${color white}$loadavg ${color} CPU: ${color white}${cpu cpu1}% ${cpubar cpu1} $alignc${color grey}${cpugraph 0 32, 320 104E8B 0077ff} ${color} RAM: ${color white}$memperc% $mem/$memmax $membar ${color} Swap: ${color white}$swapperc% $swap/$swapmax ${swapbar} $color$stippled_hr ${color}File systems : ${color} Gentoo${color white} ${fs_used_perc /}% ${fs_used /}/${fs_size /} ${fs_bar /} ${color} Winux ${color white} ${fs_used_perc /mnt/winux/}% ${fs_used /mnt/winux/}/${fs_size /mnt/winux/} ${fs_bar /mnt/winux/} $color$stippled_hr $color$stippled_hr ${color}AmaroK : ${if_running amarokapp}${color} Status:${color white} ${execi 10 ~/.conky/amarok status} ${color white} ${color} Artist: ${color white}${execi 10 ~/.conky/amarok artist} ${color} Title: ${color white}${execi 10 ~/.conky/amarok title} ${color} Time: ${color white}${execi 10 ~/.conky/amarok time} ${execibar 1 ~/.conky/amarok progress} ${color} Album: ${color white}"${execi 10 ~/.conky/amarok album}" ${color} Year: ${color white}${execi 10 ~/.conky/amarok year} ${alignr}${color}Genre: ${color white}${alignc}${execi 10 ~/.conky/amarok genre} $color ${alignc}Collection Information Artists: ${color white}${execi 10 ~/.conky/amarok totalArtists} $color${alignr}Compilations: ${color white}${execi 10 ~/.conky/amarok totalCompilations}$color Albums: ${color white}${execi 10 ~/.conky/amarok totalAlbums} $color${alignr}Genres: ${color white}${execi 10 ~/.conky/amarok totalGenres}$color Tracks: ${color white}${execi 10 ~/.conky/amarok totalTracks} $endif$color$stippled_hr $color$stippled_hr ${color}Portage: ${color} Last Sync: ${color white}${execi 300 ~/.conky/portage lastsync} ${color} Last Emerge: ${color white}${execi 10 ~/.conky/portage lastemerge} ${color} Current Emerge: ${color white}${execi 10 ~/.conky/portage currentemerge} ${color} ${alignr}-> Elapsed Time: ${color white}${execi 10 ~/.conky/portage currentemergeElapsed} ${color}$stippled_hr !! amarok #!/bin/bash # amaroK info display script by eirc # # 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 GR OUP 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 = t 2.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 GR OUP 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 = t 2.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 artis t 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 F ROM 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 FR OM 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;' ;; #status status) STATUS=`dcop amarok player status` case "$STATUS" in 0) echo "stopped" ;; 1) echo "paused" ;; 2) echo "playing" ;; esac ;; time) TOTAL=`dcop amarok player totalTime` TIME=`dcop amarok player currentTime` echo "$TIME/$TOTAL" esac !! portage #!/bin/bash case "$1" in #lastsync lastsync) TMP=`qlop -C --sync | tail -n 1` POS=2 MOIS=`echo $TMP | cut -f $POS -d " "` POS=3 JOUR=`echo $TMP | cut -f $POS -d " "` POS=4 if [ "$JOUR" -eq " " ]; then JOUR=`echo $TMP | cut -f $POS -d " "` POS=5 fi HEURE=`echo $TMP | cut -f $POS -d " "` echo "$JOUR/$MOIS $HEURE" ;; #lastemerge lastemerge) TMP=`qlop -Cl | tail -n 1` JOUR=`echo $TMP | cut -f 3 -d " "` POS=7 if [ "$JOUR" == " " ]; then POS=8 fi RESULT=`echo $TMP | cut -f $POS -d " "` echo "$RESULT" ;; currentemerge) TMP=`qlop -Cc | grep '*' | cut -f 3 -d " "` if [ "$TMP" == "" ];then RESULT="nothing now" else RESULT=$TMP fi echo "$RESULT" ;; currentemergeElapsed) TMP=`qlop -Cc | grep "elapsed" | cut -f 2- -d ":"` if [ "$TMP" == "" ];then TMP="no emerge in progress" fi echo "$TMP" ;; esac