Каким системным монитором вы пользуетесь, виджетами плазмы или возможно superkaramba? Сегодня хочу поделиться с вами своим личным конфигом для программы conky. Что собственно такое Conky? Conky — это программа для системного мониторинга, она поддерживает linux, freeBSD. Данная программа хороша тем что потребляет мало ресурсов но имеет широкий спектр функций и настроек. Собственно для себя я выбрал эту программу именно по этой причине. Как именно выглядит моя настройка сonky, вы можете увидеть ниже.

Постовой: При поломке или каких либо проблемах с компьютером лучше сразу заказать обслуживание компьютеров тогда в сможете в короткие сроки вернутся к работе на вашем ПК.

Установка conky:

apt-get install conky

настройка самого конфига:

vi /etc/conky/conky.conf

или если вы хотите запускать conky от имени пользователя с его настройками тогда:

cp /etc/conky/conky.conf ~/.conkyrc

Также conkyможет читать rss ленты, для этого можна добавить одну строчку к приведённому ниже конфигу:

${rss http://interio-tech.com/feed 1 item_titles 10 }

Если вы хотите проверять ваш почтовый ящик на Gmail тогда создайте файл с именем gmail.py в удобном месте (в этом примере используется ~/.scripts/) со следующим кодом Python:

import os
import string

#Введите ващи имя_пользователя и пароль в двойных кавычках ниже
# напр. username="имя_пользователя" и password="пароль"
username="****"
password="****"
com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"

temp=os.popen(com)
msg=temp.read()
index=string.find(msg,"<fullcount>")
index2=string.find(msg,"</fullcount>")
fc=int(msg[index+11:index2])

if fc==0:
   print "0 new"
else:
   print str(fc)+" new"

И добавьте следующую строку к вашему .conkyrc (или conky.conf) чтобы проверять вашу почтовый ящик gmail на новые письма каждые 5 минут (300 секунд) и отображать: # new

${execi 300 python ~/.scripts/gmail.py}

Итак собственно мой конфиг:

# conky configuration

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5×7
#font 6×10
#font 7×13
#font 8×13
#font 9×15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Sans:size=8

# Text alpha when using Xft
xftalpha 0.8

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 2.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# 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

# Minimum size of text area
minimum_size 1000 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# 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
# same thing as passing -x at command line
gap_x -570
gap_y 10

# Subtract file system buffers from used memory?
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

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

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

TEXT

${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G}
${offset 240}${color slate grey}${time %Z,    }${color }${time %H:%M:%S}
${offset 240}${color slate grey}UpTime: ${color }$uptime
${offset 240}${color slate grey}Kern:${color }$kernel
${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
${offset 240}${cpugraph 20,130 000000 ffffff}
${offset 240}${color slate grey}Load: ${color }$loadavg
${offset 240}${color slate grey}Processes: ${color }$processes
${offset 240}${color slate grey}Running:   ${color }$running_processes

${offset 240}${color slate grey}Highest CPU:
${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
${offset 240}${color lightgrey} ${top name 2}${top cpu 2}
${offset 240}${color lightgrey} ${top name 3}${top cpu 3}
${offset 240}${color lightgrey} ${top name 4}${top cpu 4}

${offset 240}${color slate grey}Highest MEM:
${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}

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

${offset 240}${color slate grey}ROOT:    ${color }${fs_free /}/${fs_size /}
${offset 240}${fs_bar 3,100 /}
${offset 240}${color slate grey}HOME:  ${color }${fs_free /home}/${fs_size /home}
${offset 240}${fs_bar 3,100 /home}
${offset 240}${color slate grey}HDD_4:  ${color }${fs_free /media/HDD_4}/${fs_size /media/HDD_4}
${offset 240}${fs_bar 3,100 /media/HDD_4}
${offset 240}${color slate grey}NET:
${offset 240}${color}Up: ${color }${upspeed eth1} k/s
${offset 240}${upspeedgraph eth1 20,130 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed eth1}k/s${color}
${offset 240}${downspeedgraph eth1 20,130 000000 ffffff}

#${color slate grey}/var/log/messages:
#${color}${exec tail -n20 /var/log/messages}

При использовании KDE достаточно поместить ссылку на conky в каталог ~/.kde/Autostart, для icewm, придётся отредактировать общий стартовый файл (обычно: /usr/X11/share/icewm/startup, хотя это и не аксиома для всех дистрибутивов). Файл должен содержать строку:

conky -d

Для добавления в автозапуск gnome нужно прописать следующее в система — параметры — запускаемые приложения:

sh -c ‘sleep 10s && conky’

Также вы можете увидеть примеры настроек здесь:  http://conky.sourceforge.net/screenshots.html

http://conky.sourceforge.net/screenshots.html
Понравилось? Поделись с друзьями!