balik pro terminal: xfce4-terminal, jde tam nastavit pruhlednost i odstraneni okraju, jinak k rozmistovani oken pouzivam devilspie.
configy jsou vygoogleny a upraveny, nejsou uplne programatorsky vyladeni, ale na funkcnosti jim to neubira, tak doufam ze primhourite oko:)
~.conkyrc:own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft yes
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
minimum_size 150 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no
draw_borders no
#font anorexia
xftfont anorexia:size=8
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 3
# border margins
border_margin 2
# border width
border_width 1
# Default colors and also border colors, grey90 == #e5e5e5
default_color grey
own_window_colour brown
own_window_transparent yes
# 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
gap_x 5
gap_y 5
# stuff after 'TEXT' will be formatted on screen
#${color f70b0b}BATERY PERCENT/TIME ${hr 1} $color
#${color ffffff}${alignc} REMAINING: ${battery_percent}% ${alignr} $battery_time
#${color f70b0b}UPTIME ${hr 1} $color
#${color ffffff}TIME: ${addr wlan0} ${addr eth0} ${acpiacadapter}
#${if_mounted /media/ANNIE}${color ffffff}SD: ${fs_free /media/ANNIE} ${alignr} ${fs_used /media/ANNIE} / ${fs_size /media/ANNIE}
#${fs_bar 6 /media/ANNIE}$color $endif
#${if_mounted /media/BENDER}${color ffffff}BENDER: ${fs_free /media/BENDER} ${alignr} ${fs_used /media/BENDER} / ${fs_size /media/BENDER}
#${fs_bar 6 /media/BENDER}$color $endif
TEXT
${color ffffff}${font ae_AlMothnna:size=16}${alignc}${time %H:%M:%S %a %d/%m/%y}
${color f70b0b}${font anorexia:size=8}CPU ${hr 1}$color
${color ffffff}CPU1: ${cpu cpu0}% ${freq cpu0}MHz ${alignr} CPU2: ${cpu cpu1}% ${freq cpu1}MHz
${cpubar cpu0 10,170}${alignr}${cpubar cpu0 10,170}
${cpugraph cpu0 30,170 000000 f70b0b }${alignr}${cpugraph cpu1 30,170 000000 f70b0b}
${color ffffff}ACPI TEMPERATURE: ${acpitemp}°C ${alignr} UPTIME: $uptime
${color f70b0b}MEMORY / SWAP ${hr 1}$color
${color ffffff}RAM: ${alignc} $mem ${alignr} max: $memmax
${color ffffff}${membar 6}$color
${color ffffff}Swap: ${alignc} $swap ${alignr} max: $swapmax
${color ffffff}${swapbar 6}
${if_up wlan0}${color f70b0b}NET ${hr 1}
${color ffffff}wlan0 sig: ${wireless_link_qual wlan0}% ${wireless_essid wlan0}${alignr}AP: ${wireless_ap wlan0}
Net Down: ${downspeed wlan0} k/s ${color ffffff}Net Up: ${upspeed wlan0} k/s ${alignr} ${addr wlan0}
${color ffffff}${downspeedgraph wlan0 30,170 000000 0077ff} $alignr${color ffffff}${upspeedgraph wlan0 30,170 000000 f70b0b}
${else}${color f70b0b}NET ${hr 1}
${color ffffff}eth0 Net Down: ${downspeed eth0} k/s ${color ffffff}Net Up: ${upspeed eth0} k/s ${alignr} ${addr eth0}
${color ffffff}${downspeedgraph eth0 30,170 000000 0077ff} $alignr${color ffffff}${upspeedgraph eth0 30,170 000000 f70b0b}$endif
${color f70b0b}HDD${hr 1}$color
${color ffffff}System: ${fs_free /} ${alignr} ${fs_used /} / ${fs_size /}
${fs_bar 6 /}$color
${color ffffff}Data: ${fs_free /media/sda3} ${alignr} ${fs_used /media/sda3} / ${fs_size /media/sda3}
${fs_bar 6 /media/sda3}$color
${color f70b0b}PROCESSES${hr 1}$color
${color ffffff}Name ${alignr}PID CPU% MEM%
${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
${color ffffff}Mem usage
${top_mem name 1} ${alignr}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${alignr}${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${alignr}${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${top_mem name 4} ${alignr}${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${if_running amarokapp}
${color f70b0b}AMAROK${hr 1}
${alignc}${color}${color ffffff}${font ae_AlMothnna:size=12}${execi 10 ~/.conky/amarok title} ${font anorexia:size=8}(${execi 10 ~/.conky/amarok ttime}:${execi 10 ~/.conky/amarok ctime})
${execibar 1 ~/.conky/amarok progress}
${color}${font anorexia:size=8}By ${color ffffff}${font ae_AlMothnna:size=12}${execi 10 ~/.conky/amarok artist} ${color}${alignc}${font anorexia:size=8}on ${color ffffff}${font ae_AlMothnna:size=12}${execi 10 ~/.conky/amarok album}$endif
${color f70b0b}${font anorexia:size=8}TODO${hr 1}${color ffffff}
${tail /media/sda3/doc/notes.txt 5}
~.conky/amarok:#!/bin/bash
# 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 ;;
ttime)
cu=`dcop amarok player trackTotalTime`
expr $cu / 60
;;
ctime)
ca=`dcop amarok player trackTotalTime`
d=$(($ca/60))
sec=$(($ca - $d * 60))
expr $sec
;;
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