Показать сообщение отдельно

Старый 25.12.2009, 00:44   #5
narmo
Tech GM
 
Регистрация: 23.09.2007
Сообщения: 537
narmo , несомненно, знает многое, чему стоит поучиться...narmo , несомненно, знает многое, чему стоит поучиться...
Вес репутации: 36
По умолчанию

Цитата:
Сообщение от Троль Посмотреть сообщение
Нарма, у тебя конфиг от конки лежал в хоме сразу или сам так сделал? А то я эту прилабуду поставил, мне понравилось, а вот что конфиг в /etc/conky/ не айс..
Хотелось бы баш скрипт для проверки апа О.о
man conky
Код:
FILES
       ${sysconfdir}/conky/conky.conf
              Default   system-wide   configuration   file.    The   value  of
              ${sysconfdir} depends on the compile-time options  (most  likely
              /etc).

       ~/.conkyrc
              Default personal configuration file.
но у меня так:
Код:
narma@narma ~/.conkyrc.d  $ la
итого 28
drwxr-x---   4 narma narma 2048 Дек 18 07:25 .
drwxr-xr-x 129 narma narma 8192 Дек 25 11:39 ..
-rw-r--r--   1 narma narma  443 Дек 18 06:01 conkyrc-center
-rw-r--r--   1 narma narma 3999 Дек 18 07:25 conkyrc-left
-rwxr-xr-x   1 narma narma  647 Дек 13  2005 emerge-current.sh
-rwxr-xr-x   1 narma narma  765 Дек 14  2005 emerge-progress.sh
-rwxr-xr-x   1 narma narma 1586 Дек 13  2005 emerge-status.sh
-rwxr-xr-x   1 narma narma  212 Дек 18 05:11 lastsync.py
drwxr-xr-x   2 narma narma 2048 Дек 18 05:23 weather
drwxr-xr-x   2 narma narma 2048 Дек 18 06:09 wow
в автозагрузку своей WM поставил conky -c ~/.conkyrc.d/conkyrc-left -y 30

conkyrc-left:
Код:
background yes

use_xft yes # Use Xft?
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Terminus:size=9
xftalpha 1 # Text alpha when using Xft

update_interval 2 # Update interval in seconds

total_run_times 0

own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

double_buffer yes # Use double buffering (reduces flicker, may not work for everyone)

maximum_width 330
short_units no

draw_shades no
draw_outline no
draw_borders no
stippled_borders 8

border_inner_margin 4
border_width 1

default_color 565656
default_shade_color black
default_outline_color 686868

alignment top_left

gap_x 1
gap_y 1

no_buffers yes
uppercase no

cpu_avg_samples 4
net_avg_samples 5

override_utf8_locale yes

use_spacer right # Add spaces to keep things from moving about?  This only affects certain objects.

top_cpu_separate yes
imap  ***

TEXT

${offset 10}${image /home/narma/media/pictures/avatars/current}
${offset 160}live.mail: ${imap_unseen} new
${offset 160}WoW: ${execi 30 ~/.conkyrc.d/wow/status.py wowacadem.org}
${voffset 110}

${offset 10}${color slate grey}${time %Z}:${color }${time %a, %e %B %G %H:%M:%S}
${offset 10}${color slate grey}UpTime: ${color }$uptime
${offset 10}${color slate grey}Kern:${color }$kernel
${offset 10}${color slate grey}CPU0:${color } ${cpu cpu1}% | ${freq_g 1}Ghz | ${exec sensors | grep 'Core 0' | awk '{print $3}'}
${offset 10}${color slate grey}CPU1:${color } ${cpu cpu2}% | ${freq_g 2}Ghz | ${exec sensors | grep 'Core 1' | awk '{print $3}'}
${offset 10}${cpugraph cpu1 20,130 000055 ff0000}
${offset 10}${cpugraph cpu2 20,130 000055 ff0000}

${offset 10}${color slate grey}Highest CPU:
${offset 10}${color cc9900} ${top name 1}${top cpu 1}
${offset 10}${color darkgrey} ${top name 2}${top cpu 2}
${offset 10}${color darkgrey} ${top name 3}${top cpu 3}
${offset 10}${color darkgrey} ${top name 4}${top cpu 4}
${offset 10}${color darkgrey} ${top name 5}${top cpu 5}
${offset 10}${color darkgrey} ${top name 6}${top cpu 6}
${offset 10}${color darkgrey} ${top name 7}${top cpu 7}
${offset 10}${color darkgrey} ${top name 8}${top cpu 8}
${offset 10}${color darkgrey} ${top name 9}${top cpu 9}

${offset 10}${color slate grey}Highest MEM:
${offset 10}${color cc9900} ${top_mem name 1}${top_mem mem 1}
${offset 10}${color darkgrey} ${top_mem name 2}${top_mem mem 2}
${offset 10}${color darkgrey} ${top_mem name 3}${top_mem mem 3}
${offset 10}${color darkgrey} ${top_mem name 4}${top_mem mem 4}
${offset 10}${color darkgrey} ${top_mem name 5}${top_mem mem 5}
${offset 10}${color darkgrey} ${top_mem name 6}${top_mem mem 6}
${offset 10}${color darkgrey} ${top_mem name 7}${top_mem mem 7}
${offset 10}${color darkgrey} ${top_mem name 8}${top_mem mem 8}
${offset 10}${color darkgrey} ${top_mem name 9}${top_mem mem 9}

${offset 10}${color slate grey}MEM:  ${color } $memperc% $mem/$memmax
${offset 10}${membar 3,100}
${offset 10}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${offset 10}${swapbar 3,100}

${offset 10}${color slate grey}/:    ${color }${fs_used /}/${fs_size /}
${offset 10}${fs_bar 3,100 /}
${offset 10}${color slate grey}/home:  ${color }${fs_used /home}/${fs_size /home}
${offset 10}${fs_bar 3,100 /home}
${offset 10}${diskiograph 20,130 000000 ffffff}

${offset 10}${color slate grey}NET: ${color}Up: ${color }${upspeed eth1}${color}            Down: ${color }${downspeed eth1}
${offset 10}${upspeedgraph eth1 20,130 000000 ffffff} ${downspeedgraph eth1 20,130 000000 ffffff}

${offset 10}Portage:
${offset 10}${color slate grey}Last Sync:   ${execi 300 ~/.conkyrc.d/lastsync.py}
${offset 10}Progress: ${execibar 30 ~/.conkyrc.d/emerge-progress.sh}
${offset 10}Package: ${execi 30 ~/.conkyrc.d/emerge-current.sh}
${offset 10}Status: ${execi 30 ~/.conkyrc.d/emerge-status.sh}${color}

${offset 10}Gentoo security:
${offset 10}${color slate grey}${rss http://www.gentoo.org/rdf/en/glsa-index.rdf?num=5 5 item_titles}${color}
narmo вне форума   Ответить с цитированием