Технический форум
Вернуться   Технический форум > Компьютерный форум > Операционная система Windows > LINUX


Ответ
 
Опции темы Опции просмотра
Старый 14.11.2015, 14:12   #1 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию Conky

что такое:
https://ru.wikipedia.org/wiki/Conky
установка:
Код:
sudo apt-get install conky conky-all
sudo apt-get install curl lm-sensors hddtemp
добавить в автозагрузку командой conky -p 10 и имя Conky

по пути /etc/conky/ в файл conky.conf скопировать текст конфигурации:

Код:
# Use Xft?
use_xft yes
xftfont OFL Sorts Mill Goudy:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no

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

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray

# 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 35
gap_y 35

# 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 none

TEXT

             ${alignc 40}${font URW Gothic L:size=32}${time %k:%M:%S}${font}
${alignc}${time %A %d,%B %Yг}
${font Goudy Bookletter 1911:style=Bold}ОС${font} ${hr 2}
Ядро: $alignr${kernel}
ОС: ${alignr}Xubuntu Core 15.10
Архитектура: $alignr$machine
Время работы: $alignr${uptime}
Доступные обновы:$alignr${execi 360 aptitude search "~U"|wc -l|tail} шт
${font Goudy Bookletter 1911:style=Bold}ЦП${font} ${hr 2}
${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
Частота: (${cpu cpu0}%) $alignr${cpubar cpu0 8,60}
Ядро1: (${cpu cpu1}%) ${alignr}${cpubar cpu1 8,60}
Ядро2: (${cpu cpu2}%) ${alignr}${cpubar cpu2 8,60}
Ядро3: (${cpu cpu3}%) ${alignr}${cpubar cpu3 8,60}
Ядро4: (${cpu cpu4}%) ${alignr}${cpubar cpu2 8,60}
${font Goudy Bookletter 1911:style=Bold}ОЗУ${font} ${hr 2}
$mem/$memeasyfree ($memperc% зан)$alignr${membar 8,60}
${font Goudy Bookletter 1911:style=Bold}ЖД${font} ${hr 2}
System: ${fs_used /}/${fs_size /}(${fs_free_perc /}% св) ${alignr}${fs_bar 8,60 /}
Home:   ${fs_used /home}/${fs_size /home}(${fs_free_perc /home}% св) ${alignr}${fs_bar 8,60 /home}
MyDisk: ${fs_used /mnt/3C72C80172C7BDC0}/${fs_size /mnt/3C72C80172C7BDC0}(${fs_free_perc /mnt/3C72C80172C7BDC0}% св) ${alignr}${fs_bar 8,60 /mnt/3C72C80172C7BDC0}
${font Goudy Bookletter 1911:style=Bold}Трафик${font} ${hr 2}
Входящий: ${downspeed enp0s7} ${alignr}${downspeedgraph enp0s7 8,60 000000 000000}
Исходящий: ${upspeed enp0s7} ${alignr}${upspeedgraph enp0s7 8,60 000000 000000}
Закачено: ${alignr}${totaldown enp0s7}
Отдано: ${alignr}${totalup enp0s7}
${font Goudy Bookletter 1911:style=Bold}Процессы${font} ${hr 2}
Процессов:$processes Запущено $running_processes
Имя                                       ЦП%    ОЗУ%       ИД
${top name 1}${alignr}${top cpu 1}   ${top mem 1}   ${top pid 1}
${top name 2}${alignr}${top cpu 2}   ${top mem 2}   ${top pid 2}
${top name 3}${alignr}${top cpu 3}   ${top mem 3}   ${top pid 3}
${top name 4}${alignr}${top cpu 4}   ${top mem 4}   ${top pid 4}
${top name 5}${alignr}${top cpu 5}   ${top mem 5}   ${top pid 5}
в итоге получаем вот такие конки без излишеств, но с нужной инфой:

conky.png

в курсе что есть возможность оформить их под любой гламур, но мне это не нужно, цель была вывести на рабочий стол нужную мне инфу.
Технарь на форуме   Ответить с цитированием
5 пользователя(ей) сказали cпасибо:
Daniellos (14.11.2015), DiM (14.11.2015), kot da-vintik (15.11.2015), XELFAER (30.11.2015), Ваня (03.01.2016)
Старый 14.11.2015, 20:37   #2 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию

календарь с подсветкой текущего дня + уменьшение высоты шкал:

333.png

конфиг:

Код:
# Use Xft?
use_xft yes
xftfont OFL Sorts Mill Goudy:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no

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

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray

# 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 35
gap_y 35

# 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 none

TEXT

        ${alignc 40}${font URW Gothic L:size=32}${time %k:%M:%S}${font}
${font DejaVu Sans Mono:size=8}${execpi 60 DJS=`date +%_d`; ncal -C -h | sed 's/^/${goto 60}/' | sed s/"\(^\|[^0-9]\)$alignr$DJS"'\b'/'\1${color f49c04}'"$DJS"'$color'/}${font}
${font Goudy Bookletter 1911:style=Bold}ОС${font}${hr 2}
Ядро: $alignr${kernel}
ОС: ${alignr}Xubuntu Core 15.10
Архитектура: $alignr$machine
Время работы: $alignr${uptime}
Доступные обновы:$alignr${execi 360 aptitude search "~U"|wc -l|tail} шт
${font Goudy Bookletter 1911:style=Bold}ЦП${font} ${hr 2}
${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
Частота: (${cpu cpu0}%) $alignr${cpubar cpu0 6,60}
Ядро1: (${cpu cpu1}%) ${alignr}${cpubar cpu1 6,60}
Ядро2: (${cpu cpu2}%) ${alignr}${cpubar cpu2 6,60}
Ядро3: (${cpu cpu3}%) ${alignr}${cpubar cpu3 6,60}
Ядро4: (${cpu cpu4}%) ${alignr}${cpubar cpu2 6,60}
${font Goudy Bookletter 1911:style=Bold}ОЗУ${font} ${hr 2}
$mem/$memeasyfree ($memperc% зан)$alignr${membar 6,60}
${font Goudy Bookletter 1911:style=Bold}ЖД${font} ${hr 2}
System: ${fs_used /}/${fs_size /}(${fs_free_perc /}% св) ${alignr}${fs_bar 6,60 /}
Home:   ${fs_used /home}/${fs_size /home}(${fs_free_perc /home}% св) ${alignr}${fs_bar 6,60 /home}
MyDisk: ${fs_used /mnt/3C72C80172C7BDC0}/${fs_size /mnt/3C72C80172C7BDC0}(${fs_free_perc /mnt/3C72C80172C7BDC0}% св) ${alignr}${fs_bar 6,60 /mnt/3C72C80172C7BDC0}
${font Goudy Bookletter 1911:style=Bold}Трафик${font} ${hr 2}
Входящий: ${downspeed enp0s7} ${alignr}${downspeedgraph enp0s7 6,60 000000 000000}
Исходящий: ${upspeed enp0s7} ${alignr}${upspeedgraph enp0s7 6,60 000000 000000}
Закачено: ${alignr}${totaldown enp0s7}
Отдано: ${alignr}${totalup enp0s7}
${font Goudy Bookletter 1911:style=Bold}Процессы${font} ${hr 2}
Процессов:$processes Запущено $running_processes
Имя                                       ЦП%    ОЗУ%       ИД
${top name 1}${alignr}${top cpu 1}   ${top mem 1}   ${top pid 1}
${top name 2}${alignr}${top cpu 2}   ${top mem 2}   ${top pid 2}
${top name 3}${alignr}${top cpu 3}   ${top mem 3}   ${top pid 3}
${top name 4}${alignr}${top cpu 4}   ${top mem 4}   ${top pid 4}
${top name 5}${alignr}${top cpu 5}   ${top mem 5}   ${top pid 5}
Технарь на форуме   Ответить с цитированием
Старый 15.11.2015, 20:43   #3 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию

мониторинг пользовательских папок:

069.png

конфиг:

Код:
# Use Xft?
use_xft yes
xftfont OFL Sorts Mill Goudy:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no

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

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray

# 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 35
gap_y 35

# 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 none

TEXT

        ${alignc 40}${font URW Gothic L:size=32}${time %k:%M:%S}${font}
${font DejaVu Sans Mono:size=8}${execpi 60 DJS=`date +%_d`; ncal -C -h | sed 's/^/${goto 60}/' | sed s/"\(^\|[^0-9]\)$alignr$DJS"'\b'/'\1${color f49c04}'"$DJS"'$color'/}${font}
${font Goudy Bookletter 1911:style=Bold}ОС${font}${hr 2}
Ядро: $alignr${kernel}
ОС: ${alignr}Xubuntu Core 15.10
Архитектура: $alignr$machine
Время работы: $alignr${uptime}
Доступные обновы:$alignr${execi 360 aptitude search "~U"|wc -l|tail} шт
${font Goudy Bookletter 1911:style=Bold}ЦП${font} ${hr 2}
${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
Частота: (${cpu cpu0}%) $alignr${cpubar cpu0 6,60}
Ядро1: (${cpu cpu1}%) ${alignr}${cpubar cpu1 6,60}
Ядро2: (${cpu cpu2}%) ${alignr}${cpubar cpu2 6,60}
Ядро3: (${cpu cpu3}%) ${alignr}${cpubar cpu3 6,60}
Ядро4: (${cpu cpu4}%) ${alignr}${cpubar cpu2 6,60}
${font Goudy Bookletter 1911:style=Bold}ОЗУ${font} ${hr 2}
$mem/$memeasyfree ($memperc% зан)$alignr${membar 6,60}
${font Goudy Bookletter 1911:style=Bold}ЖД${font} ${hr 2}
System: ${fs_used /}/${fs_size /}(${fs_free_perc /}% св) ${alignr}${fs_bar 6,60 /}
Home:   ${fs_used /home/akb/Загрузки/}/${fs_size /home/akb/Загрузки/}(${fs_free_perc /home/akb/Загрузки/}% св) ${alignr}${fs_bar 6,60 /home/akb/Загрузки/}
MyDisk: ${fs_used /mnt/3C72C80172C7BDC0}/${fs_size /mnt/3C72C80172C7BDC0}(${fs_free_perc /mnt/3C72C80172C7BDC0}% св) ${alignr}${fs_bar 6,60 /mnt/3C72C80172C7BDC0}
${font Goudy Bookletter 1911:style=Bold}Папки${font} ${hr 2}
Документы: ${alignr}${exec du --max-depth=1 -h | grep Документы | cut -b1-5}
Загрузки: ${alignr}${exec du --max-depth=1 -h | grep Загрузки | cut -b1-5}
Изображения: ${alignr}${exec du --max-depth=1 -h | grep Изображения | cut -b1-4}
Видео: ${alignr}${exec du --max-depth=1 -h | grep Видео | cut -b1-5}
Музыка: ${alignr}${exec du --max-depth=1 -h | grep Музыка | cut -b1-5}
Корзина: ${alignr}${exec du --max-depth=3 -h | grep Trash | cut -b1-4}
${font Goudy Bookletter 1911:style=Bold}Трафик${font} ${hr 2}
Входящий: ${downspeed enp0s7} ${alignr}${downspeedgraph enp0s7 6,60 000000 000000}
Исходящий: ${upspeed enp0s7} ${alignr}${upspeedgraph enp0s7 6,60 000000 000000}
Закачено: ${alignr}${totaldown enp0s7}
Отдано: ${alignr}${totalup enp0s7}
${font Goudy Bookletter 1911:style=Bold}Процессы${font} ${hr 2}
Процессов:$processes Запущено $running_processes
Имя                                       ЦП%    ОЗУ%       ИД
${top name 1}${alignr}${top cpu 1}   ${top mem 1}   ${top pid 1}
${top name 2}${alignr}${top cpu 2}   ${top mem 2}   ${top pid 2}
${top name 3}${alignr}${top cpu 3}   ${top mem 3}   ${top pid 3}
${top name 4}${alignr}${top cpu 4}   ${top mem 4}   ${top pid 4}
${top name 5}${alignr}${top cpu 5}   ${top mem 5}   ${top pid 5}
Технарь на форуме   Ответить с цитированием
Старый 18.11.2015, 02:40   #4 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию

добавил мониторинг своп и изменил показания в разделе процессов:

1_073.png

конфиг:

Код:
# Use Xft?
use_xft yes
xftfont OFL Sorts Mill Goudy:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no

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

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray

# 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 35
gap_y 35

# 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 none

TEXT

        ${alignc 40}${font URW Gothic L:size=32}${time %k:%M:%S}${font}
${font DejaVu Sans Mono:size=8}${execpi 60 DJS=`date +%_d`; ncal -C -h | sed 's/^/${goto 60}/' | sed s/"\(^\|[^0-9]\)$alignr$DJS"'\b'/'\1${color f49c04}'"$DJS"'$color'/}${font}
${font Goudy Bookletter 1911:style=Bold}ОС${font}${hr 2}
Ядро: $alignr${kernel}
ОС: ${alignr}Xubuntu Core 15.10
Архитектура: $alignr$machine
Время работы: $alignr${uptime}
Доступные обновы:$alignr${execi 360 aptitude search "~U"|wc -l|tail} шт
${font Goudy Bookletter 1911:style=Bold}ЦП${font} ${hr 2}
${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
Частота: (${cpu cpu0}%) $alignr${cpubar cpu0 6,60}
Ядро1: (${cpu cpu1}%) ${alignr}${cpubar cpu1 6,60}
Ядро2: (${cpu cpu2}%) ${alignr}${cpubar cpu2 6,60}
Ядро3: (${cpu cpu3}%) ${alignr}${cpubar cpu3 6,60}
Ядро4: (${cpu cpu4}%) ${alignr}${cpubar cpu2 6,60}
${font Goudy Bookletter 1911:style=Bold}ОЗУ и СВОП${font} ${hr 2}
ОЗУ: $mem/$memeasyfree ($memperc% зан)$alignr${membar 6,60}
СВОП:($swapperc% зан)$alignr${swapbar 6,60}
${font Goudy Bookletter 1911:style=Bold}ЖД${font} ${hr 2}
System: ${fs_used /}/${fs_size /}(${fs_free_perc /}% св) ${alignr}${fs_bar 6,60 /}
Home:   ${fs_used /home/akb/Загрузки/}/${fs_size /home/akb/Загрузки/}(${fs_free_perc /home/akb/Загрузки/}% св) ${alignr}${fs_bar 6,60 /home/akb/Загрузки/}
MyDisk: ${fs_used /mnt/3C72C80172C7BDC0}/${fs_size /mnt/3C72C80172C7BDC0}(${fs_free_perc /mnt/3C72C80172C7BDC0}% св) ${alignr}${fs_bar 6,60 /mnt/3C72C80172C7BDC0}
${font Goudy Bookletter 1911:style=Bold}Папки${font} ${hr 2}
Документы: ${alignr}${exec du --max-depth=1 -h | grep Документы | cut -b1-4}
Загрузки: ${alignr}${exec du --max-depth=1 -h | grep Загрузки | cut -b1-4}
Изображения: ${alignr}${exec du --max-depth=1 -h | grep Изображения | cut -b1-4}
Видео: ${alignr}${exec du --max-depth=1 -h | grep Видео | cut -b1-4}
Музыка: ${alignr}${exec du --max-depth=1 -h | grep Музыка | cut -b1-4}
Корзина: ${alignr}${exec du --max-depth=3 -h | grep Trash | cut -b1-4}
${font Goudy Bookletter 1911:style=Bold}Трафик${font} ${hr 2}
Входящий: ${downspeed enp0s7} ${alignr}${downspeedgraph enp0s7 6,60 000000 000000}
Исходящий: ${upspeed enp0s7} ${alignr}${upspeedgraph enp0s7 6,60 000000 000000}
Принято: ${alignr}${totaldown enp0s7}
Отдано: ${alignr}${totalup enp0s7}
${font Goudy Bookletter 1911:style=Bold}Процессы${font} ${hr 2}
Процессов:$processes Запущено $running_processes
                                              ОЗУ                          ЦП (%)
${top_mem name 1}${goto 120}${top_mem mem_res 1} (${top_mem mem 1}%)${alignr}${top cpu 1}
${top_mem name 2}${goto 120}${top_mem mem_res 2} (${top_mem mem 2}%)${alignr}${top cpu 2}
${top_mem name 3}${goto 120}${top_mem mem_res 3} (${top_mem mem 3}%)${alignr}${top cpu 3}
${top_mem name 4}${goto 120}${top_mem mem_res 4} (${top_mem mem 4}%)${alignr}${top cpu 4}
${top_mem name 5}${goto 120}${top_mem mem_res 5} (${top_mem mem 5}%)${alignr}${top cpu 5}
Технарь на форуме   Ответить с цитированием
Старый 23.09.2017, 00:35   #5 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию

Выпилял всякие ненужности + дублирующие с треем значения:

Код:
# Use Xft?
use_xft yes
xftfont OFL Sorts Mill Goudy:size=17
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 180 
#maximum_width 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray
# 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 15
gap_y 190
# 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 none
TEXT
${font Goudy Bookletter 1911:style=Bold:size=17}ОС ${font}${hr 2}
Ядро: $alignr${kernel}
ОС: ${alignr}Xubuntu 16.04
Архитектура: $alignr$machine
Время работы: $alignr${uptime}
Доступные обновы: $alignr${execi 360 apt-get --just-print upgrade | grep '^Inst ' | wc -l} шт
${font Goudy Bookletter 1911:style=Bold:size=17}ЦП, ОЗУ${font} ${hr 2}
${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
Частота: (${cpu cpu0}%) $alignr${cpubar cpu0 17,120}
Ядро1: (${cpu cpu1}%) ${alignr}${cpubar cpu1 17,120}
Ядро2: (${cpu cpu2}%) ${alignr}${cpubar cpu2 17,120}
Ядро3: (${cpu cpu3}%) ${alignr}${cpubar cpu3 17,120}
Ядро4: (${cpu cpu4}%) ${alignr}${cpubar cpu2 17,120}
ОЗУ: $mem/$memeasyfree $alignr${membar 17,120}
${font Goudy Bookletter 1911:style=Bold:size=17}Трафик${font} ${hr 2}
Принято: ${alignr}${totaldown enp0s7}
Отдано: ${alignr}${totalup enp0s7}
${font Goudy Bookletter 1911:style=Bold:size=17}Процессы${font} ${hr 2}
Процессов: $processes Запущено $running_processes
                                      ОЗУ             ЦП
${top_mem name 1}$alignr${top_mem mem_res 1}       $alignr${top cpu 1}
${top_mem name 2}$alignr${top_mem mem_res 2}       $alignr${top cpu 2}
${top_mem name 3}$alignr${top_mem mem_res 3}       $alignr${top cpu 3}
${top_mem name 4}$alignr${top_mem mem_res 4}       $alignr${top cpu 4}
${top_mem name 5}$alignr${top_mem mem_res 5}       $alignr${top cpu 5}
В итоге:

nieiie-yedhaia_2017-09-22_23-33-43.png
Технарь на форуме   Ответить с цитированием
Ads

Яндекс

Member
 
Регистрация: 31.10.2006
Сообщений: 40200
Записей в дневнике: 0
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Репутация: 55070
Старый 28.09.2017, 17:10   #6 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию

Погоду подрубил

Код:
# Use Xft?
use_xft yes
xftfont OFL Sorts Mill Goudy:size=17
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 180 
#maximum_width 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray
# 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 15
gap_y 70
# 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 none
TEXT
${font Goudy Bookletter 1911:style=Bold:size=17}Погода в Грозном ${font}${hr 2}
${execi 600 curl curl -H "Accept-Language: ru" wttr.in/?0pq -q | sed '3,37!d' | perl -pe 's/\e\[?.*?[\@-~]//g'}
${font Goudy Bookletter 1911:style=Bold:size=17}ОС ${font}${hr 2}
Ядро: $alignr${kernel}
ОС: ${alignr}Xubuntu 16.04
Архитектура: $alignr$machine
Время работы: $alignr${uptime}
Доступные обновы: $alignr${execi 360 apt-get --just-print upgrade | grep '^Inst ' | wc -l} шт
${font Goudy Bookletter 1911:style=Bold:size=17}ЦП, ОЗУ${font} ${hr 2}
${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
Частота: (${cpu cpu0}%) $alignr${cpubar cpu0 17,120}
Ядро1: (${cpu cpu1}%) ${alignr}${cpubar cpu1 17,120}
Ядро2: (${cpu cpu2}%) ${alignr}${cpubar cpu2 17,120}
Ядро3: (${cpu cpu3}%) ${alignr}${cpubar cpu3 17,120}
Ядро4: (${cpu cpu4}%) ${alignr}${cpubar cpu2 17,120}
ОЗУ: $mem/$memeasyfree $alignr${membar 17,120}
${font Goudy Bookletter 1911:style=Bold:size=17}Трафик${font} ${hr 2}
Принято: ${alignr}${totaldown enp0s7}
Отдано: ${alignr}${totalup enp0s7}
${font Goudy Bookletter 1911:style=Bold:size=17}Процессы${font} ${hr 2}
Процессов: $processes Запущено $running_processes
                                      ОЗУ             ЦП
${top_mem name 1}$alignr${top_mem mem_res 1}       $alignr${top cpu 1}
${top_mem name 2}$alignr${top_mem mem_res 2}       $alignr${top cpu 2}
${top_mem name 3}$alignr${top_mem mem_res 3}       $alignr${top cpu 3}
${top_mem name 4}$alignr${top_mem mem_res 4}       $alignr${top cpu 4}
${top_mem name 5}$alignr${top_mem mem_res 5}       $alignr${top cpu 5}
nieiie-yedhaia_2017-09-28_16-25-26.png
Технарь на форуме   Ответить с цитированием
Старый 29.09.2017, 18:42   #7 (permalink)
rsemfreelancer
Новичок
 
Регистрация: 27.09.2017
Сообщений: 1
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Репутация: 10
По умолчанию

Спасибо за инструкцию. Я не мог настроить. Сейчас попробую.
rsemfreelancer вне форума   Ответить с цитированием
Старый 04.10.2017, 23:52   #8 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию

Были проблемы с отображением солнца:

22222.png

Плюс, убрал некоторы статические информеры.

Конфиг:

Код:
# Use Xft?
use_xft yes
xftfont DejaVu Sans Mono:size=17
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 180 
#maximum_width 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray
# 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 15
gap_y 150
# 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 none
TEXT
${font Goudy Bookletter 1911:style=Bold:size=17}Погода в Грозном ${font}${hr 2}
${execi 600 curl -s 'wttr.in/?0QTM&lang=ru'}
${font Goudy Bookletter 1911:style=Bold:size=17}ОС ${font}${hr 2}
Ядро: $alignr${kernel}
Время работы: $alignr${uptime}
Доступные обновы: $alignr${execi 360 apt-get --just-print upgrade | grep '^Inst ' | wc -l} шт
${font Goudy Bookletter 1911:style=Bold:size=17}ЦП, ОЗУ${font} ${hr 2}
Частота: (${cpu cpu0}%) $alignr${cpubar cpu0 17,120}
Ядро1: (${cpu cpu1}%) ${alignr}${cpubar cpu1 17,120}
Ядро2: (${cpu cpu2}%) ${alignr}${cpubar cpu2 17,120}
Ядро3: (${cpu cpu3}%) ${alignr}${cpubar cpu3 17,120}
Ядро4: (${cpu cpu4}%) ${alignr}${cpubar cpu2 17,120}
ОЗУ: $mem/$memeasyfree $alignr${membar 17,120}
${font Goudy Bookletter 1911:style=Bold:size=17}Трафик${font} ${hr 2}
Принято: ${alignr}${totaldown enp0s7}
Отдано: ${alignr}${totalup enp0s7}
${font Goudy Bookletter 1911:style=Bold:size=17}Процессы${font} ${hr 2}
${top_mem name 1}$alignr${top_mem mem_res 1}
${top_mem name 2}$alignr${top_mem mem_res 2}
${top_mem name 3}$alignr${top_mem mem_res 3}
${top_mem name 4}$alignr${top_mem mem_res 4}
${top_mem name 5}$alignr${top_mem mem_res 5}
${top_mem name 6}$alignr${top_mem mem_res 6}
${top_mem name 7}$alignr${top_mem mem_res 7}
Результат:

333333.png
Технарь на форуме   Ответить с цитированием
Старый 19.02.2018, 21:20   #9 (permalink)
Bish
Member
 
Аватар для Bish
 
Регистрация: 12.07.2009
Сообщений: 28
Записей в дневнике: 1
Сказал(а) спасибо: 0
Поблагодарили 2 раз(а) в 1 сообщении
Репутация: 231
По умолчанию

Замечательно. А просто часики с календарем?
Bish вне форума   Ответить с цитированием
Старый 19.02.2018, 21:29   #10 (permalink)
Технарь
Member
 
Регистрация: 07.01.2008
Сообщений: 39,693
Сказал(а) спасибо: 784
Поблагодарили 834 раз(а) в 404 сообщениях
Репутация: 124544
По умолчанию

Цитата:
Сообщение от Bish Посмотреть сообщение
А просто часики с календарем?
Да, конечно, вот конфиг:

Код:
# Use Xft?
use_xft yes
xftfont DejaVu Sans Mono:size=17
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# 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_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 180 
#maximum_width 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color gray
default_shade_color gray
default_outline_color gray
own_window_colour gray
color1 gray
# 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 15
gap_y 12
# 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 none
TEXT
${alignc 40}${font URW Gothic L:size=70}${time %k:%M:%S}${font}
${font DejaVu Sans Mono:size=15}${execpi 60 DJS=`date +%_d`; ncal -C -h | sed 's/^/${goto 60}/' | sed s/"\(^\|[^0-9]\)$alignr$DJS"'\b'/'\1${color f49c04}'"$DJS"'$color'/}${font}
Технарь на форуме   Ответить с цитированием
Ads

Яндекс

Member
 
Регистрация: 31.10.2006
Сообщений: 40200
Записей в дневнике: 0
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Репутация: 55070
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Выкл.
HTML код Выкл.
Trackbacks are Вкл.
Pingbacks are Вкл.
Refbacks are Выкл.




Часовой пояс GMT +4, время: 02:52.

Powered by vBulletin® Version 6.2.5.
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.