Conky и все что с ними связано

Как правильно задавать вопросы Правильно сформулированный вопрос и его грамотное оформление способствует высокой вероятности получения достаточно содержательного и по существу ответа. Общая рекомендация по составлению тем: 1. Для начала воспользуйтесь поиском форума. 2. Укажите версию ОС вместе с разрядностью. Пример: LM 19.3 x64, LM Sarah x32 3. DE. Если вопрос касается двух, то через запятую. (xfce, KDE, cinnamon, mate) 4. Какое железо. (достаточно вывод inxi -Fxz в спойлере (как пользоваться спойлером смотрим здесь)) или же дать ссылку на hw-probe 5. Суть. Желательно с выводом консоли, логами. 6. Скрин. Просьба указывать 2, 3 и 4 независимо от того, имеет ли это отношение к вопросу или нет. Так же не забываем об общих правилах Как пример вот
Аватара пользователя

Автор темы
Nickolas
Сообщения: 436
Зарегистрирован: 14 сен 2016, 05:44
Решено: 3
Благодарил (а): 174 раза
Поблагодарили: 210 раз
Контактная информация:

Conky и все что с ними связано

#1

18 ноя 2016, 08:36

Друзья, предлагаю тут выкладывать интересные решения реализованные в Conky...

Пингует хосты указанные в conky -



#!/bin/bash

if ping -c 1 -W 2 $1 > /dev/null; then
echo "Up"
else
echo "Down"
fi

It’ll ping one packet only (-c 1) and has a timeout of 2 seconds, (-W 2), meaning that if no reply is given in two seconds, its a fail. The /dev/null part gets rid out the output of ping. “Up” is what is returned if the ping is successful, “Down” if its not. Change to your liking. Make sure the script is executable by running

1
chmod +x .pingtest.sh
The $1 part refers to the original command, so if you call it with “.pingtest.sh 192.168.1.1”, it’ll ping 192.168.1.1.

To add it to conky, use

1
${execi 10 ~/.pingtest.sh XXX.XXX.XXX.XXX}
Execi means Execute at an Interval, here every 10 seconds. ~./pingtest.sh is the script (~/ meaning home) and replace the XXs with the IP address.

If you want to add Conky variables to the script, for example, ${color}, to change the colour of the value returned, green for “Up”, red for “Down”, whatever you like, you’ll need to tell Conky to parse the script. To do that, replace “execi” with “execpi”. Then you can add Conky variables to the script, and have them show on your conky

For those who are interested, the command to find external IP address as shown is

1
${execi 60 curl http://riivo.eu/php/ip.php}
Make sure you have curl installed first though

1
sudo apt-get install curl
ИСТОЧНИК...
Изображение
Официальный форум Linux Mint Russian - https://forums.linuxmint.com/viewforum.php?f=75
Linux Mint 19.1 XFCE 64bit (Kernel 4.18.0-16)
Пингвин птица гордая - не полетит, пока не пнёшь.

Аватара пользователя

Chocobo
Сообщения: 10015
Зарегистрирован: 27 авг 2016, 22:57
Решено: 215
Откуда: НН
Благодарил (а): 815 раз
Поблагодарили: 3008 раз
Контактная информация:

Conky и все что с ними связанно

#2

12 янв 2017, 09:28

Решил тоже запилить себе conky, пока наблюдаю за некоторыми аспектами беты XFCE.
Инфы хотелось комплексной поэтому боковым расположением обходиться не захотелось. Основываясь на найденном в сети симпатичном варианте - адаптировал под разрешение 1920х1080, локализовал элементы метрик. Получилось на данный момент вот что:
Снимок экрана_2017-01-12_09-27-18.png
Что немаловажно - в конфиге нет скриптов lua или sh, все строится единым конфиг-файлом, таким образом не отжирает лишнего и довольно легко читается и редактируется под необходимые реалии. В общем сочинителю явный респект :thumbs:

Мой конфиг тут, enjoy :smile:
Изображение
   
Изображение

Аватара пользователя

Seisan
Сообщения: 191
Зарегистрирован: 18 ноя 2016, 15:35
Решено: 3
Откуда: Средний Урал
Благодарил (а): 41 раз
Поблагодарили: 121 раз
Контактная информация:

Conky и все что с ними связанно

#3

12 янв 2017, 10:53

Мой конфиг, допиленный под мой компьютер...Запускается через менеджер Conky.
Выделение_011.jpg
Скачать можно тут https://cloud.mail.ru/home/Conky/
Linux Mint 18.3 Xfce , Kernel: 4.15.0-54-generic x86_64 , Memory: 8Гб , Graphics NVIDIA GK208B GeForce GT 710 , браузер Palemoon

Аватара пользователя

Chocobo
Сообщения: 10015
Зарегистрирован: 27 авг 2016, 22:57
Решено: 215
Откуда: НН
Благодарил (а): 815 раз
Поблагодарили: 3008 раз
Контактная информация:

Conky и все что с ними связанно

#4

12 янв 2017, 11:24

Seisan, по мне - так цвета сливаются чутка, красные надписи не оч читаемы. Но, как обычно, дело вкуса :thumbs:
Изображение
   
Изображение

Аватара пользователя

di_mok
Сообщения: 5469
Зарегистрирован: 27 авг 2016, 19:06
Решено: 32
Откуда: Арзамас
Благодарил (а): 1593 раза
Поблагодарили: 1276 раз
Контактная информация:

Conky и все что с ними связанно

#5

12 янв 2017, 11:43

Chocobo, подозреваю, что в реале там всё нарядно. Это просто картинка ужмакалась
Настоящая водка — это не пьянство, а ключ к своей совести, с нее-то и начинается настоящая мудрость. (c)
Изображение

Аватара пользователя

Автор темы
Nickolas
Сообщения: 436
Зарегистрирован: 14 сен 2016, 05:44
Решено: 3
Благодарил (а): 174 раза
Поблагодарили: 210 раз
Контактная информация:

Conky и все что с ними связанно

#6

12 янв 2017, 12:13

Chocobo писал(а): Решил тоже запилить себе conky, пока наблюдаю за некоторыми аспектами беты XFCE.
Инфы хотелось комплексной поэтому боковым расположением обходиться не захотелось. Основываясь на найденном в сети симпатичном варианте - адаптировал под разрешение 1920х1080, локализовал элементы метрик. Получилось на данный момент вот что: Снимок экрана_2017-01-12_09-27-18.png Что немаловажно - в конфиге нет скриптов lua или sh, все строится единым конфиг-файлом, таким образом не отжирает лишнего и довольно легко читается и редактируется под необходимые реалии. В общем сочинителю явный респект :thumbs:

Мой конфиг тут, enjoy :smile:
И что прямо так ивыглядит? С такими же шрифтами?
Сделай скрин посмотреть...
Изображение
Официальный форум Linux Mint Russian - https://forums.linuxmint.com/viewforum.php?f=75
Linux Mint 19.1 XFCE 64bit (Kernel 4.18.0-16)
Пингвин птица гордая - не полетит, пока не пнёшь.

Аватара пользователя

Chocobo
Сообщения: 10015
Зарегистрирован: 27 авг 2016, 22:57
Решено: 215
Откуда: НН
Благодарил (а): 815 раз
Поблагодарили: 3008 раз
Контактная информация:

Conky и все что с ними связанно

#7

12 янв 2017, 12:22

Nickolas, Там и был скриншот всего экрана :smile: могу повторить
Снимок экрана_2017-01-12_12-21-23.png
Изображение
   
Изображение

Аватара пользователя

Seisan
Сообщения: 191
Зарегистрирован: 18 ноя 2016, 15:35
Решено: 3
Откуда: Средний Урал
Благодарил (а): 41 раз
Поблагодарили: 121 раз
Контактная информация:

Conky и все что с ними связанно

#8

12 янв 2017, 12:36

Выделение_012.jpg
Вот классические минтовские обоины
Chocobo, эту conkyrc специально подбирал под светло-зеленые обои, поэтому в других вариантах действительно может смотреться на ахти как...
Linux Mint 18.3 Xfce , Kernel: 4.15.0-54-generic x86_64 , Memory: 8Гб , Graphics NVIDIA GK208B GeForce GT 710 , браузер Palemoon

Аватара пользователя

Автор темы
Nickolas
Сообщения: 436
Зарегистрирован: 14 сен 2016, 05:44
Решено: 3
Благодарил (а): 174 раза
Поблагодарили: 210 раз
Контактная информация:

Conky и все что с ними связанно

#9

12 янв 2017, 12:57

Chocobo писал(а): Nickolas, Там и был скриншот всего экрана могу повторить
Круто, я думал это просто как превью... Спасибо...
Изображение
Официальный форум Linux Mint Russian - https://forums.linuxmint.com/viewforum.php?f=75
Linux Mint 19.1 XFCE 64bit (Kernel 4.18.0-16)
Пингвин птица гордая - не полетит, пока не пнёшь.

Аватара пользователя

Chocobo
Сообщения: 10015
Зарегистрирован: 27 авг 2016, 22:57
Решено: 215
Откуда: НН
Благодарил (а): 815 раз
Поблагодарили: 3008 раз
Контактная информация:

Conky и все что с ними связанно

#10

12 янв 2017, 13:01

необходимые шрифты указаны в конфиге и есть прямые ссылки на них.
Ставятся в два клика)

Отправлено спустя 55 секунд:
Вот все требования оттуда:
##### DEPENDENCIES
# Font Coda: https://github.com/gustavovalerio/Conky ... a/Coda.ttf
# Font Awesome: https://github.com/gustavovalerio/Conky ... wesome.otf
# Font Audiowide: https://github.com/gustavovalerio/Conky ... iowide.ttf
# Font Open 24 Display St: https://github.com/gustavovalerio/Conky ... playSt.ttf
# Font ConkyWind: https://github.com/gustavovalerio/Conky ... kyWind.otf
# Package conky-all (apt install conky-all)
# Package lm-sensors (apt install lm-sensors)
Изображение
   
Изображение

Аватара пользователя

Ольга
Сообщения: 124
Зарегистрирован: 09 сен 2016, 21:54
Благодарил (а): 40 раз
Поблагодарили: 15 раз
Контактная информация:

Conky и все что с ними связанно

#11

12 янв 2017, 15:34

Chocobo писал(а): Решил тоже запилить себе conky, пока наблюдаю за некоторыми аспектами беты XFCE.
Инфы хотелось комплексной поэтому боковым расположением обходиться не захотелось. Основываясь на найденном в сети симпатичном варианте - адаптировал под разрешение 1920х1080, локализовал элементы метрик. Получилось на данный момент вот что: Снимок экрана_2017-01-12_09-27-18.png Что немаловажно - в конфиге нет скриптов lua или sh, все строится единым конфиг-файлом, таким образом не отжирает лишнего и довольно легко читается и редактируется под необходимые реалии. В общем сочинителю явный респект :thumbs:

Мой конфиг тут, enjoy :smile:
тоже себе такой хочу, но пока не поняла как его понять)

Аватара пользователя

Chocobo
Сообщения: 10015
Зарегистрирован: 27 авг 2016, 22:57
Решено: 215
Откуда: НН
Благодарил (а): 815 раз
Поблагодарили: 3008 раз
Контактная информация:

Conky и все что с ними связанно

#12

12 янв 2017, 15:47

Ольга, Все просто)
ставишь шрифты и пакеты по требованиям укаанным постом выше, затем качаешь этот конфиг и запускаешь его с conky -c /путь/к/конфиг/файлу
Изображение
   
Изображение

Аватара пользователя

di_mok
Сообщения: 5469
Зарегистрирован: 27 авг 2016, 19:06
Решено: 32
Откуда: Арзамас
Благодарил (а): 1593 раза
Поблагодарили: 1276 раз
Контактная информация:

Conky и все что с ними связанно

#13

12 янв 2017, 20:59

Поделюсь и я, раз такая пьянка пошла
Уже светил в галереи. Выдернул из пакета для ConkyManager, чуть изменил
41
Скачать, распаковать в домашнюю папку
conkyrc.zip
(1.12 КБ) 457 скачиваний
Если память не изменяет в системе нет этого шрифта Скачать и установить.
Настоящая водка — это не пьянство, а ключ к своей совести, с нее-то и начинается настоящая мудрость. (c)
Изображение

Аватара пользователя

qwertKI
Сообщения: 223
Зарегистрирован: 03 сен 2016, 13:11
Решено: 5
Благодарил (а): 87 раз
Поблагодарили: 77 раз
Контактная информация:

Conky и все что с ними связанно

#14

23 янв 2017, 23:46

Как то так: https://yadi.sk/i/3VZGEzoE3AXyEV
# For commands above TEXT check:
# http://conky.sourceforge.net/config_settings.html
#
# For commands available below TEXT check:
# http://conky.sourceforge.net/variables.html

# Bunsen Labs Conky help threads
# http://crunchbang.org/forums/viewtopic. ... 24#p371424

# beta tested by: smacz
# Enjoy! :)

# pkill -xf "conky -q -c $HOME/.config/conky/BL-Left.conkyrc" &
### Begin Window Settings #####################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Bunsen Labs Left Conky

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 50

minimum_size 100 0
maximum_width 220

gap_x 10
gap_y 40

alignment top_left
####################### End Window Settings ###
### Font Settings #############################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Liberation Mono:bold:size=9
#xftfont Liberation Sans:size=10
xftfont Sans-serif:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################### End Font Settings ###
### Colour Settings ###########################
draw_shades no #yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

#default_color 656667 # Waldorf original colour
#default_color 7a7a7a # Flame & Bunsen Grey
#default_color 929292 # Labs Grey
#default_color 101010
default_color C0C0C0 # Silver
color0 B0E0E6 # PowderBlue
color1 778899 # LightSlateGray
color2 D8BFD8 # Thistle
color3 9ACD32 # YellowGreen
color4 FFA07A # LightSalmon
color5 FFDEAD # NavajoWhite
color6 00BFFF # DeepSkyBlue
color7 5F9EA0 # CadetBlue
color8 BDB76B # DarkKhaki
color9 CD5C5C # IndianRed
####################### End Colour Settings ###
### Borders Section ###########################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15yes 40
######################## End Borders Secton ###
### Miscellaneous Section #####################
# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 6144

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0

# 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

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

################# End Miscellaneous Section ###

update_interval 1

own_window_argb_value 0
own_window_argb_visual no
TEXT
${alignr}S Y S T E M I N F O
${membar 0}
Up${alignr}${uptime_short}
Date${alignr}${time %x}
Time${alignr}${time %X}
OS${alignr}Bunsen Labs
Host${alignr}${nodename}
Kernel${alignr}${kernel}
Machine${alignr}${machine}

#Up:${alignr} ${upspeed eth1}/s
#Down:${alignr} ${downspeed eth1}/s
${font sans-serif:size=9}NETWORK ${hr 2}
${font sans-serif:normal:size=8}IP address: $alignr ${addr eth1}
ESSID: $alignr ${wireless_essid eth1}
Connection quality: $alignr ${wireless_link_qual_perc eth1}%
${downspeedgraph eth1 000000 ffffff}
Incoming: ${downspeed eth1}/s $alignr total: ${totaldown eth1}
${upspeedgraph eth1 000000 ffffff}
Outgoing: ${upspeed eth1}/s $alignr total: ${totalup eth1}

RAM ${hr 2}{alignr}${memmax}
In Use${alignr}${memperc}% = ${mem}
${memgraph 40,220 000000 ffffff}
#Swap${alignr}${swap} of ${swapmax}
#${color #C0C0C0}ОЗУ${hr 2}$color
${color #C0C0C0}Имя процесса ${alignr}ID ${alignr}ОЗУ$color${font Sans-serif:size=8}
1. ${top_mem name 1} ${alignr}${top_mem pid 1} ${alignr}${top_mem mem 2}
2. ${top_mem name 2} ${alignr}${top_mem pid 2} ${alignr}${top_mem mem 2}
3. ${top_mem name 3} ${alignr}${top_mem pid 3} ${alignr}${top_mem mem 3}
4. ${top_mem name 4} ${alignr}${top_mem pid 4} ${alignr}${top_mem mem 4}
5. ${top_mem name 5} ${alignr}${top_mem pid 5} ${alignr}${top_mem mem 5}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar 30,220 000000 ffffff}

CPU${alignr}${cpu cpu0}% / ${freq_g}GHz
CPU temp:$alignr${hwmon temp 1}°C
${cpugraph 40,220 000000 ffffff}
#${color #C0C0C0}Процессы: ($running_processes/ $processes)${hr 2}$color
${color #C0C0C0}Имя процесса ${alignr}ID ${alignr}ЦПУ$color${font font Sans-serif:size=8}
1. ${top name 1} ${alignr}${top pid 1} ${alignr}${top cpu 1}
2. ${top name 2} ${alignr}${top pid 2} ${alignr}${top cpu 2}
3. ${top name 3} ${alignr}${top pid 3} ${alignr}${top cpu 3}
4. ${top name 4} ${alignr}${top pid 4} ${alignr}${top cpu 4}
5. ${top name 5} ${alignr}${top pid 5} ${alignr}${top cpu 5}

/ROOT${alignr}${fs_free /} / ${fs_size /}
/HOME${alignr}${fs_free /home} / ${fs_size /home}

#${alignr}S H O R T C U T K E Y S
#${membar 0}
#+Space${alignr}Main Menu
#+Tab${alignr}Client Menu
#+t${alignr}Terminal
#+f${alignr}File Manager
#+e${alignr}Editor
#+h${alignr}Task Manager
#+l${alignr}Lock Screen
#+v${alignr}Volume Control
#{PrtSc}${alignr}Screenshot

Аватара пользователя

gandic
Сообщения: 58
Зарегистрирован: 23 сен 2016, 12:32
Благодарил (а): 10 раз
Поблагодарили: 8 раз
Контактная информация:

Conky и все что с ними связанно

#15

24 янв 2017, 11:56

Chocobo писал(а): прямые ссылки на них
ссылки на шрифты поправь они не рабочие,
прикрепляю рабочую ссылку на указанные шрифты и файлы https://github.com/gustavovalerio/Conky ... ster/fonts
их нашел на страничке разработчика https://www.gnome-look.org/p/1165025/
Последний раз редактировалось пользователем 4 gandic; всего редактировалось раз: 24

Аватара пользователя

Chocobo
Сообщения: 10015
Зарегистрирован: 27 авг 2016, 22:57
Решено: 215
Откуда: НН
Благодарил (а): 815 раз
Поблагодарили: 3008 раз
Контактная информация:

Conky и все что с ними связанно

#16

24 янв 2017, 12:01

gandic, Окей. :thumbs:
ссылки скопировал из тела конфига, возможно чуть пошевелились файлы с тех пор.
Изображение
   
Изображение

Аватара пользователя

Obamacyborg1975
Сообщения: 478
Зарегистрирован: 27 сен 2016, 08:19
Решено: 2
Благодарил (а): 128 раз
Поблагодарили: 104 раза
Контактная информация:

Conky и все что с ними связанно

#17

24 янв 2017, 14:47

Моя простая цветная conky

Конфиг
# set to yes if you want Conky to be forked in the background
background no

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

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

own_window_transparent no
own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
#minimum_size 280 5
#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 103
gap_y 103
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

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

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase yes

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${pre_exec lsb_release -d | cut -f 2| tr "[:upper:]" "[:lower:]"}

$stippled_hr
$nodename - $sysname $kernel on $machine
$stippled_hr
${color black}Uptime:$color $uptime ${color black}- Load:$color $loadavg
${color black}CPU Usage:${color #D70A53} ${cpu}% ${cpubar}
${color black}${cpugraph 000000 5000a0}
${color blue}RAM Usage:$color $mem/$memmax - $memperc% $membar
${color brown}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color red}Processes:$color $processes ${color yellow}Running:$color $running_processes
$color$stippled_hr
${color green}Networking:
Down:${color #8844ee} ${downspeed eth0} k/s${color red} ${offset 70}Up:${color #22ccff} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 32,150 0000ff ff0000}
${color cyan}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar /}
${color}Name PID CPU% MEM%
${color #800000} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color black} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color black} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #8806CE} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color black} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color black} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

Аватара пользователя

Bill Williamson
Сообщения: 928
Зарегистрирован: 31 авг 2016, 13:38
Решено: 34
Благодарил (а): 288 раз
Поблагодарили: 249 раз
Контактная информация:

Conky и все что с ними связанно

#18

24 янв 2017, 15:50

Раз пошла такая пьянка...
Когда-то брал отсюда конфиги, потом переводил и настраивал под себя. Сейчас решил, что это лишнее и свой вариант уже затерялся после перехода на другой дистрибутив. Возможно кому-то, как и мне, понравится этот конфиг. :smile:
conky_gnulu.jpg
Яндекс.Диск
Изображение

Аватара пользователя

di_mok
Сообщения: 5469
Зарегистрирован: 27 авг 2016, 19:06
Решено: 32
Откуда: Арзамас
Благодарил (а): 1593 раза
Поблагодарили: 1276 раз
Контактная информация:

Conky и все что с ними связанно

#19

24 янв 2017, 15:57

Джентьмены, убедительная просьба, не пихайте, то что предназначено для копипаста без ббкода |code], согласитесь, вот так копировать гораздо удобней:

Без спойлера:

Код: Выделить всё

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

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

own_window_transparent no
own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
#minimum_size 280 5
#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 103
gap_y 103
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

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

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase yes

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) 
File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${pre_exec lsb_release -d | cut -f 2| tr "[:upper:]" "[:lower:]"}

$stippled_hr
$nodename - $sysname $kernel on $machine
$stippled_hr
${color black}Uptime:$color $uptime ${color black}- Load:$color $loadavg
${color black}CPU Usage:${color #D70A53} ${cpu}% ${cpubar}
${color black}${cpugraph 000000 5000a0}
${color blue}RAM Usage:$color $mem/$memmax - $memperc% $membar
${color brown}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color red}Processes:$color $processes ${color yellow}Running:$color $running_processes
$color$stippled_hr
${color green}Networking:
Down:${color #8844ee} ${downspeed eth0} k/s${color red} ${offset 70}Up:${color #22ccff} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 32,150 0000ff ff0000}
${color cyan}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar /}
${color}Name PID CPU% MEM%
${color #800000} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color black} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color black} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #8806CE} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color black} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color black} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

Код: Выделить всё

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

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

own_window_transparent no
own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
#minimum_size 280 5
#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

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

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 103
gap_y 103
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

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

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase yes

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${pre_exec lsb_release -d | cut -f 2| tr "[:upper:]" "[:lower:]"}

$stippled_hr
$nodename - $sysname $kernel on $machine
$stippled_hr
${color black}Uptime:$color $uptime ${color black}- Load:$color $loadavg
${color black}CPU Usage:${color #D70A53} ${cpu}% ${cpubar}
${color black}${cpugraph 000000 5000a0}
${color blue}RAM Usage:$color $mem/$memmax - $memperc% $membar
${color brown}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color red}Processes:$color $processes ${color yellow}Running:$color $running_processes
$color$stippled_hr
${color green}Networking:
Down:${color #8844ee} ${downspeed eth0} k/s${color red} ${offset 70}Up:${color #22ccff} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 32,150 0000ff ff0000}
${color cyan}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar /}
${color}Name PID CPU% MEM%
${color #800000} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color black} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color black} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #8806CE} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color black} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color black} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
Настоящая водка — это не пьянство, а ключ к своей совести, с нее-то и начинается настоящая мудрость. (c)
Изображение

Аватара пользователя

Dja
Сообщения: 6875
Зарегистрирован: 27 авг 2016, 20:03
Решено: 30
Откуда: Voskresensk
Благодарил (а): 1310 раз
Поблагодарили: 724 раза
Контактная информация:

Conky и все что с ними связанно

#20

25 янв 2017, 05:52

У меня сейчас простенько

Чуть подправил. Выкинул лишнее

Закрыто

Вернуться в «Иное программное обеспечение»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 10 гостей