All pastes #200127 Raw Edit

config conky cryogen

public shellscript v1 · immutable
#200127 ·published 2006-10-12 23:38 UTC
rendered paste body
!! mon .conkyrc# Conky configurationbackground nouse_xft noxftfont Monospace:size=9xftalpha 0.8out_to_console noupdate_interval 2total_run_times 0own_window yesown_window_type normalown_window_transparent yesown_window_hints undecorated,below,sticky,skip_taskbar,skip_pagerdouble_buffer yesminimum_size 330 10maximum_width 330draw_shades nodraw_outline nodraw_borders nodraw_graph_borders yesstippled_borders 5border_margin 4border_width 1default_color greydefault_shade_color blackdefault_outline_color blackalignment top_rightgap_x 10gap_y 47no_buffers nouppercase nocpu_avg_samples 2net_avg_samples 2override_utf8_locale yesuse_spacer noTEXT${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 <eirc.eirc@gmail.com>## requirements: amaroK (!)# for Collection stats to work amarok must be using# mySQL to store it's collectioncase "$1" in# Now Playing Infoartist) 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 InfototalArtists)      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 Statsmost_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;' ;;#statusstatus)        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/bashcase "$1" in#lastsynclastsync)        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"        ;;#lastemergelastemerge)        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