Zainstalowałem sobie Conky na Xubuntu 12.04. znalazłem dosyć ciekawą konfigurację conky z tej stronyhttp://pukinpr.deviantart.com/art/Simpl ... onky&qo=76. nie jestem pewien czy dobrze wszystko zrobiłem bo nie wyświetla mi tego konfigu. Zrobiłem sobie katalog w katalogu domowym o nazwie (.conky).
Wrzuciłem do niego plik z poszerzeniem lua i zdjęcie z logo Minta, a w pliku conkyrc mam następujący wpis:
# Create own window instead of using desktop (required in nautilus)
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
# X font when Xft is disabled, you can pick one with program xfontsel
#font -*-*-*-r-normal--14-*-*-*-c-*-iso8859-2
font -xos4-terminus-*-r-normal-*-12-100-*-*-c-*-iso10646-1
# fiddle with window
use_spacer right
use_xft yes
# mail spool
#mail_spool $MAIL
#xftfont Bitstream Vera Sans Mono:size=9
xftfont Termius:encoding=utf-8:size=9
xftalpha 0.8
# Update interval in seconds
update_interval 0.5
total_run_times 0
# Minimum size of text area
minimum_size 250 5
# Draw shades?
draw_shades no
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font arial size=12
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 8
# border margins
border_margin 1
# border width
border_width 5
maximum_width 270
# 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 300
gap_y 10
# stuff after 'TEXT' will be formatted on screen
TEXT
${color #ddaa00} ${color orange}${font :size=10}Data: ${color white}${font :size=9}
$alignc${color orange}SYSTEM$color
Ubuntu 10.10 "Maverick Meerkat"
${execi 600 ~/home/wilk/.conky/bargraph.lua}
wilk@wilk-GA-970A-D3:~/Pulpit$ conky
Conky: /home/wilk/.conkyrc: 50: no such configuration: 'border_margin'
Conky: desktop window (1200003) is subwindow of root window (15d)
Conky: window type - override
Conky: drawing to created window (0x3400001)
Conky: drawing to double buffer
# conky configuration
####
## Use XFT? Required to Force UTF8 (see below)
#
use_xft yes
xftfont monospace:size=9
xftalpha 0.1
####
## Force UTF8? Requires XFT (see above)
## Displays degree symbol, instead of °, etc.
#
override_utf8_locale yes
####
## This buffer is used for text, single lines, output from $exec, and other variables.
## Increasing the text buffer size (too high) will drastically reduce Conky's performance.
## Decreasing the size (too low) will truncate content and cause strange display output.
## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
#
text_buffer_size 640
####
## Daemonize Conky, aka 'fork to background'.
#
background no
####
## Update interval in seconds.
#
update_interval 3.0
####
## The number of times Conky will update before quitting.
## Zero makes Conky run forever.
#
total_run_times 0
####
## Create own window instead of using desktop?
#
own_window yes
own_window_type override
own_window_transparent yes
#own_window_colour 938a86
####
## Force images to redraw when they change.
#
imlib_cache_size 0
####
## Use double buffering? Reduces flicker.
#
double_buffer yes
####
## Draw shades?
#
draw_shades no
####
## Draw outlines?
#
draw_outline no
####
## Draw borders around text?
#
draw_borders no
####
## Draw borders around graphs?
#
draw_graph_borders yes
####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no
####
## Text alignment.
#
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
####
## Minimum and maximum size of text area.
#
minimum_size 220 0
maximum_width 220
####
## Gap between text and screen borders.
#
gap_x 10 ## Left / Right
gap_y 10 ## Top / Bottom
####
## Shorten MiB/GiB to M/G in stats.
#
short_units no
####
## Pad % symbol spacing after numbers.
#
pad_percents 0
####
## Pad spacing between text and borders.
#
border_inner_margin 4
####
## Limit the length of names in "Top Processes".
#
top_name_width 15
####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
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
####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer right
# kolor pomarańczowy
#color0 FFCC00
#color1 E77320
# kolor niebieski
color0 1E90FF
color1 1E56FF
#####
## Load Lua for shading (optional)
## Set the path to your script here.
#
lua_load ~/draw_bg.lua
lua_draw_hook_pre draw_bg
####
## Load Lua for bargraphs (required)
## Set the path to your script here.
#
lua_load ~/bargraph_small.lua
lua_draw_hook_post main_bars
TEXT
${font monospace:size=9}${color0}
${alignc}$sysname $kernel
${alignc}$nodename
${alignc}uptime $uptime
${color1}$hr
${voffset 2}${font StyleBats:size=9}${color1}A${font}${font monospace:size=9}${offset 5}Procesor${color0}${alignr}Intel Pentium D
${voffset 5}${color1}CPU 0 ${color0}${cpu cpu1}%
${color1}CPU 1 ${color0}${cpu cpu2}%
${color0}Taktowanie: ${alignr}${freq_g cpu0}GHz ${freq_g cpu1}GHz
${color0}Wentylator: ${alignr} ${hwmon fan 1} RPM
${color0}Temperatura: ${alignr} ${hwmon temp 2}°C
${color1}$hr
${color1}Karta graficzna
#${color0}Geforce 7600 GT ${alignr} ${execi 30 nvidia-settings -q gpucoretemp |grep '):' | awk '{print $4}'}°C
${color0}Geforce 7600 GT ${alignr} ${execi 20 nvidia-settings -q gpucoretemp |grep '):' | cut -c46-47}°C
${voffset -5}${color1}$hr
${voffset 2}${font StyleBats:size=9}${color1}l${font}${font monospace:size=9}${color0} RAM:${offset 20}${color0}${alignc}$mem/ $memmax${alignr}$memperc%
${voffset 15}${font StyleBats:size=9}${color1}4${font}${font monospace:size=9}${color0} SWAP:${offset 13}${color0}${alignc}$swap/ $swapmax${alignr} $swapperc%
${voffset 16}${color1}$processes procesów ${alignr} PID CPU
${color0}${top name 1} ${alignr} ${top pid 1} ${top cpu 1}
${color0}${top name 2} ${alignr} ${top pid 2} ${top cpu 2}
${color0}${top name 3} ${alignr} ${top pid 3} ${top cpu 3}
${color0}${top name 4} ${alignr} ${top pid 4} ${top cpu 4}
${color0}${top name 5} ${alignr} ${top pid 5} ${top cpu 5}
${color0}${top name 6} ${alignr} ${top pid 6} ${top cpu 6}
${color0}${top name 7} ${alignr} ${top pid 7} ${top cpu 7}
${color0}${top name 8} ${alignr} ${top pid 8} ${top cpu 8}
${color1}$hr
${color1}Zużycie RAM: ${alignr} ${color1}%
${color0}${top_mem name 1}${alignr}${top_mem mem 1}
${color0}${top_mem name 2}${alignr}${top_mem mem 2}
${color0}${top_mem name 3}${alignr}${top_mem mem 3}
${color0}${top_mem name 4}${alignr}${top_mem mem 4}
${color0}${top_mem name 5}${alignr}${top_mem mem 5}
${color0}${top_mem name 6}${alignr}${top_mem mem 6}
${color0}${top_mem name 7}${alignr}${top_mem mem 7}
${color0}${top_mem name 8}${alignr}${top_mem mem 8}
${color1}$hr
${color1}${alignc}Transfer${alignr}Prędkość
${color0}Down:${offset 20}${totaldown eth0}${alignr}${downspeedf eth0}KB/s
${color0}UP:${offset 34}${totalup eth0}${alignr}${upspeedf eth0}KB/s
${color1}${upspeedgraph eth0 30,109 ff0000 fbe601}${alignr}${color1}${downspeedgraph eth0 30,109 fbe601 ff0000}
${color1}Aktywne połączenia ${alignr} ${color0}${tcp_portmon 1 65535 count}
${color0}IP wew:${alignr}${addr eth0}
#${color0}IP zew:${alignr}${pre_exec /home/morfik/ip}
${color0}IP zew:${alignr}${execpi 360 /home/morfik/ip}
${color1}$hr
${color1}Dyski twarde:
${color0}WDC WD15EARS-00MVWB0 ${alignr}${hddtemp /dev/sda}˚C
${color0}WDC WD800JB-00JJA0 ${alignr}${hddtemp /dev/sdb}˚C
${color1}$hr
${color1}Miejsce na dysku:
${color1}/media/p2p${alignr}${color0}${fs_used /media/p2p}${color1} / ${fs_size /media/p2p}
${voffset 14}${color1}/media/Dane${alignr}${color0}${fs_used /media/Dane}${color1} / ${fs_size /media/Dane}
${voffset 14}${color1}/media/Filmy${alignr}${color0}${fs_used /media/Filmy}${color1} / ${fs_size /media/Filmy}
${voffset 14}${color1}/media/Leon${alignr}${color0}${fs_used /media/Leon}${color1} / ${fs_size /media/Leon}
${voffset 14}${color1}/media/Server${alignr}${color0}${fs_used /media/Server}${color1} / ${fs_size /media/Server}
${voffset 14}${color1}/media/Gry${alignr}${color0}${fs_used /media/Gry}${color1} / ${fs_size /media/Gry}
${voffset 14}
Wygląda obecnie tak:
Co prawda jest to jeden z 10 plików konfiguracyjnych, niemniej jednak opisuje tę część po prawej stronie. Porównaj sobie wartości w plikach konfiguracyjnych z wynikami na zrzutach ekranu, a po wnikliwej analizie powinieneś bez problemu wywnioskować co jest nie tak z twoim konfigiem.