Conky
Перейти до навігації
Перейти до пошуку
Статья не завершена. Нужно добавить правильный(х) конфиг(ов)
Системный монитор для Linux.
sudo apt-get install conky
Создать конфигурационный файл:
cp /etc/conky/conky.conf ~/.conkyrc
Отредактировать конфигурационный файл:
vim ~/.conkyrc
Перезапустить conky:
killall -SIGUSR1 conky
Установка датчиков температуры:
sudo apt-get install lm-sensors sudo sensors-detect sudo apt-get install hddtemp
Чтобы запустить conky на рабочем столе, а не в виде отдельного окна, а также задать шрифт побольше и убрать задний фон, нужно отредактировать ~/.conkyrc:
own_window_type desktop own_window_transparent yes
Правда, не факт, что сработает. Можно еще попробовать такой вариант:
own_window yes own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_class Conky own_window_type normal
Чтобы убрать мигание conky при обновлении, нужно, во-первых, добавить в ~/.conkyrc опцию double_buffer yes:
vim ~/.conkyrc double_buffer yes
и во-вторых, добавить в /etc/X11/xorg.conf в блок Section "Module" строку Load "dbe":
sudo vim /etc/X11/xorg.conf Load "dbe"
Если фон все равно выглядит коряво, нужно выполнить следующую команду, вставив в нее путь к файлу с вашим фоном рабочего стола (подробнее здесь):
feh --bg-scale /usr/share/wallpapers/Air/contents/images/1920x1200.jpg
#Aligned position on screen, may be top_left, top_right, bottom_left, bottom_right, or none
alignment top_right
#Boolean value, if true, Conky will be forked to background when started
background yes
#Border margin in pixels
border_margin 5
#Border width in pixels
border_width 5
#Color variables for use inside TEXT segments ( source: http://htmlhelp.com/cgi-bin/color.cgi )
color0 F8F8FF # Ghost white
color1 483D8B # Dark slate blue
color2 B8860B # Dark goldenrod
color3 4682B4 # Steelblue
color4 8B0000 # Dark red
color5 FFFFFF # White
#The number of samples to average for CPU monitoring
cpu_avg_samples 2
#Default color and border color
default_color F8F8FF # Ghost white
#Default outline color
default_outline_color 483D8B # Dark slate blue
#Default shading color and border's shading color
default_shade_color 000000 # Black
#Use the Xdbe extension? (eliminates flicker)
#It is highly recommended to use own window with this one so double buffer won't be so big.
double_buffer yes
#Draw borders around text?
draw_borders no
#Draw borders around graphs?
draw_graph_borders yes
#Draw outlines?
draw_outline no
#Draw shades?
draw_shades no
#Gap, in pixels, between right or left border of screen, same as passing -x at command line, e.g. gap_x 10
gap_x 12
#Gap, in pixels, between top or bottom border of screen, same as passing -y at command line, e.g. gap_y 10.
gap_y 60
#Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)
max_specials 512
#Maximum size of user text buffer, i.e. layout below TEXT line in config file (default is 16384 bytes)
max_user_text 20000
#Size of the standard text buffer (default is 1280 bytes).
text_buffer_size 2000
#Maximum width of window
maximum_width 300
#Minimum size of window
minimum_size 800
#The number of samples to average for net data
net_avg_samples 2
#Substract (file system) buffers from used memory?
no_buffers yes
##Boolean, create own window to draw?
own_window yes
##Manually set the WM_CLASS name. Defaults to "Conky". own_window_class
##If own_window_transparent no, set a specified background colour (defaults to black).
##Takes either a hex value (#ffffff) or a valid RGB name (see /usr/lib/X11/rgb.txt)
own_window_colour 000000
##If own_window is yes, you may use these window manager hints to affect the way Conky displays.
##Notes: Use own_window_type desktop as another way to implement many of these hints implicitly.
##If you use own_window_type override, window manager hints have no meaning and are ignored.
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
##Manually set the window name. Defaults to " - conky".
#own_window_title
##Boolean, set pseudo-transparency?
own_window_transparent yes
##if own_window is yes, you may specify type normal, desktop or override (default: normal).
##Desktop windows are special windows that have no window decorations; are always visible on your desktop; do not appear in your pager or taskbar; and are sticky across all workspaces.
##Override windows are not under the control of the window manager. Hints are ignored. This type of window can be useful for certain situations.
own_window_type normal
##Pad percentages to this many decimals (0 = no padding)
pad_percents 0
short_units yes
##Border stippling (dashing) in pixels
stippled_borders 3
##Total number of times for Conky to update before quitting. Zero makes Conky run forever
total_run_times 0
##Update interval in seconds
update_interval 1.0
##Boolean value, if true, text is rendered in upper case
uppercase no
##Adds spaces after certain objects to stop them from moving other things around.
##Note that this only helps if you are using a mono font, such as Bitstream Vera Sans Mono.
use_spacer right
##Use Xft (anti-aliased font and stuff)
use_xft yes
##Alpha of Xft font. Must be a value at or between 1 and 0.
xftalpha 0.9
##Xft font to use.
xftfont Liberation Sans:size=10
#xftfont terminus:size=10
TEXT
${font Bold}$nodename - $sysname $kernel on $machine$font
${color grey}Uptime:$color $uptime
${color grey}$hr
${color grey}File systems: $color${fs_free /}/${fs_size /} ${fs_bar 6 /}
${color grey}Сеть: download$color ${downspeed eth0}кб/с, ${color grey}upload$color ${upspeed eth0}кб/с
${color grey}$hr
${color grey}RAM$color $memmax ${color grey}исп.$color $mem — $memperc% ${membar 4}
${color grey}Swap$color $swapmax ${color grey}исп.$color $swap — $swapperc% ${swapbar 4}
${color grey}CPU $color $freq_g GHz, $color ${execi 10 cat /proc/acpi/thermal_zone/THRM/temperature | cut -b26-27}°C. ${color grey}Нагрузка$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
${color grey}$hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
- Официальный сайт
- Conky howto (рус.) — здесь же примеры скриптов
- Adding_ping_information (eng.)
- Устанавливаем conky в Ubuntu
- Conky и немного философии
- CrunchBang Linux Forums » Tips, Tricks & Scripts » My Conky Config