Conky - мощный и легко настраиваемый системный монитор Сравнение версий

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
wiki:conky [2013/10/22 17:11]
[ConkyForecast]
wiki:conky [2017/06/02 20:11] (текущий)
[Работа с процессами]
Строка 144: Строка 144:
 |lua_parse|function_name\\ (function parameters)|Выполняет lua-функцию с заданными параметрами так же, как и $lua, но затем обрабатывает результат как часть секции TEXT| |lua_parse|function_name\\ (function parameters)|Выполняет lua-функцию с заданными параметрами так же, как и $lua, но затем обрабатывает результат как часть секции TEXT|
 |offset|(pixels)|Изменяет горизонтальное смещение текста. Возможны отрицательные значения.\\ Смотри так же $offset.| |offset|(pixels)|Изменяет горизонтальное смещение текста. Возможны отрицательные значения.\\ Смотри так же $offset.|
-|outlinecolor|(color)|Change outline color|+|outlinecolor|(color)|Изменить цвет контура|
 |scroll|length (step) text|Прокручивает '​text'​ с шагом '​step',​ отображая за раз '​length'​ символов.\\ Текст может содержать переменные conky\\ step не обязателен и по умолчанию равен 1| |scroll|length (step) text|Прокручивает '​text'​ с шагом '​step',​ отображая за раз '​length'​ символов.\\ Текст может содержать переменные conky\\ step не обязателен и по умолчанию равен 1|
 |shadecolor|(color)|Изменяет цвет тени| |shadecolor|(color)|Изменяет цвет тени|
 |stippled_hr|(space)|Прерывистая горизонтальная линия| |stippled_hr|(space)|Прерывистая горизонтальная линия|
-|tab|(width,​ (start))|Puts a tab of the specified widthstarting from column ​'​start'​. ​The unit is pixels for both arguments.|+|tab|(width,​ (start))|Разместить табы определенной шириныначиная с колонки ​'​start'​. ​Пиксель еденица для обоих аргументов.|
 |templateN|(arg1)|Вычисляет значение templateN из настроек (N число от 0 до 9 включительно),​ подставляя соответствующие аргументы| |templateN|(arg1)|Вычисляет значение templateN из настроек (N число от 0 до 9 включительно),​ подставляя соответствующие аргументы|
 |to_bytes|size|Если '​size'​ - число с указанными единицами (kilobyte,​mb,​GiB,​...),​ тогда оно конвертируется в байты и выводится,​ иначе просто выводится как есть.| |to_bytes|size|Если '​size'​ - число с указанными единицами (kilobyte,​mb,​GiB,​...),​ тогда оно конвертируется в байты и выводится,​ иначе просто выводится как есть.|
Строка 184: Строка 184:
 |iconv_start|codeset_from\\ codeset_to|Конвертирует текст из одной кодировки в другую используя GNU iconv.\\ Необходима остановка с помощью $iconv_stop| |iconv_start|codeset_from\\ codeset_to|Конвертирует текст из одной кодировки в другую используя GNU iconv.\\ Необходима остановка с помощью $iconv_stop|
 |iconv_stop| |Останавливает конвертирование текста| |iconv_stop| |Останавливает конвертирование текста|
-|ioscheduler|disk|Prints the current ioscheduler used for the given disk name (i.e. e.g. "​hda"​ or "​sdb"​)|+|ioscheduler|disk|Вывести текущий IO планировщик используемый для раздачи имен дисков(например «hda» или «sdb» и т.д)|
 |lines|textfile|Показывает количество строк в указанном файле| |lines|textfile|Показывает количество строк в указанном файле|
 |pre_exec|shell command|Executes a shell command one time before conky displays anything and puts output as text.| |pre_exec|shell command|Executes a shell command one time before conky displays anything and puts output as text.|
Строка 198: Строка 198:
 |pid_cwd|pid|Текущий рабочий каталог процесса| |pid_cwd|pid|Текущий рабочий каталог процесса|
 |pid_environ|pid varname|Contents of a environment-var of the process| |pid_environ|pid varname|Contents of a environment-var of the process|
-|pid_environ_list|pid|List of environment-vars that the process can see|+|pid_environ_list|pid|Список переменных окружения,​ которые процессы могут увидеть.|
 |pid_exe|pid|Path to executed command that started the process| |pid_exe|pid|Path to executed command that started the process|
-|pid_nice|pid|The nice value of the process|+|pid_nice|pid|Допустимое значение процесса.|
 |pid_openfiles|pid|Список открытых процессом файлов| |pid_openfiles|pid|Список открытых процессом файлов|
 |pid_parent|pid|Pid родительского процесса| |pid_parent|pid|Pid родительского процесса|
Строка 215: Строка 215:
 |pid_time_usermode|pid|Amount of time that the process has been scheduled in user mode in seconds| |pid_time_usermode|pid|Amount of time that the process has been scheduled in user mode in seconds|
 |pid_time|pid|Sum of $pid_time_kernelmode and $pid_time_usermode| |pid_time|pid|Sum of $pid_time_kernelmode and $pid_time_usermode|
-|pid_uid|pid|The real uid of the process+|pid_uid|pid|uid ​процесса
-|pid_euid|pid|The effective ​uid of the process+|pid_euid|pid|Действующий ​uid процесса
-|pid_suid|pid|The saved set uid of the process|+|pid_suid|pid|Сохраненный список ​uid процесса|
 |pid_fsuid|pid|The file system uid of the process| |pid_fsuid|pid|The file system uid of the process|
-|pid_gid|pid|The real gid of the process+|pid_gid|pid|gid ​процесса
-|pid_egid|pid|The effective ​gid of the process+|pid_egid|pid|Действующий ​gid процесса
-|pid_sgid|pid|The saved set gid of the process|+|pid_sgid|pid|Сохраненный список ​gid процесса|
 |pid_fsgid|pid|The file system gid of the process| |pid_fsgid|pid|The file system gid of the process|
-|pid_vmpeak|pid|Peak virtual memory size of the process+|pid_vmpeak|pid|Максимальный размер виртуальной памяти процесса
-|pid_vmsize|pid|Virtual memory size of the process+|pid_vmsize|pid|размер виртуальной памяти процесса
-|pid_vmlck|pid|Locked memory size of the process|+|pid_vmlck|pid|Ограничитель размера памяти для данного процесса|
 |pid_vmhwm|pid|Peak resident set size ("high water mark") of the process| |pid_vmhwm|pid|Peak resident set size ("high water mark") of the process|
 |pid_vmrss|pid|Resident set size of the process| |pid_vmrss|pid|Resident set size of the process|
Строка 250: Строка 250:
 |downspeedf|(net)|Скорость загрузки в KiB с одной цифрой после запятой| |downspeedf|(net)|Скорость загрузки в KiB с одной цифрой после запятой|
 |downspeedgraph|(netdev) (height),​(width) (gradient colour 1) (gradient colour 2) (scale) (-t) (-l)|График скорости загрузки\\ Цвета задаются шестнадцатеричным кодом без #\\ Масштаб используется для задания максимального значения графика\\ Для использования логарифмического масштабирования (для лучшего отображения небольших чисел) добавте -l\\ Добавление '​-t'​ включает температурный градиент,​ который меняется в зависимости от значений| |downspeedgraph|(netdev) (height),​(width) (gradient colour 1) (gradient colour 2) (scale) (-t) (-l)|График скорости загрузки\\ Цвета задаются шестнадцатеричным кодом без #\\ Масштаб используется для задания максимального значения графика\\ Для использования логарифмического масштабирования (для лучшего отображения небольших чисел) добавте -l\\ Добавление '​-t'​ включает температурный градиент,​ который меняется в зависимости от значений|
-|gw_iface| |Displays the default route'​s interface or "​multiple"​/"​none" ​accordingly.|+|gw_iface| |Отобразить основные интерфейсы роутера  ​"​multiple" ​или ​"​none" ​следовательно.|
 |gw_ip| |Displays the default gateway'​s IP or "​multiple"/"​none"​ accordingly.| |gw_ip| |Displays the default gateway'​s IP or "​multiple"/"​none"​ accordingly.|
-|nameserver|(index)|Print a nameserver from /​etc/​resolv.conf. ​Index starts at and defaults to 0.|+|nameserver|(index)|Вывести имя сервера из /​etc/​resolv.conf. ​Индексирование начинается по умолчанию с 0.|
 |nodename| |Hostname| |nodename| |Hostname|
-|nodename_short| |Short hostname ​(same as '​hostname -s' ​shell command).|+|nodename_short| |Выводит краткое имя хоста ​(такое же как shell командой ​'​hostname -s').|
 |read_tcp|(host) port|Connects to a tcp port on a host (default is localhost), reads every char available at the moment and shows them.| |read_tcp|(host) port|Connects to a tcp port on a host (default is localhost), reads every char available at the moment and shows them.|
 |tcp_portmon|port_begin port_end\\ item (index)|TCP port (both IPv6 and IPv4) monitor for specified local ports. Port numbers must be in the range 1 to 65535. Valid items are:\\ count - Total number of connections in the range\\ rip - Remote ip address\\ rhost - Remote host name\\ rport - Remote port number\\ rservice - Remote service name from /​etc/​services\\ lip - Local ip address\\ lhost - Local host name\\ lport - Local port number\\ lservice - Local service name from /​etc/​services\\ The connection index provides you with access to each connection in the port monitor. The monitor will return information for index values from 0 to n-1 connections. Values higher than n-1 are simply ignored. For the "​count"​ item, the connection index must be omitted. It is required for all other items.\\ Examples:\\ ${tcp_portmon 6881 6999 count} - Displays the number of connections in the bittorrent port range\\ ${tcp_portmon 22 22 rip 0} - Displays the remote host ip of the first sshd connection\\ ${tcp_portmon 22 22 rip 9} - Displays the remote host ip of the tenth sshd connection\\ ${tcp_portmon 1 1024 rhost 0} - Displays the remote host name of the first connection on a privileged port\\ ${tcp_portmon 1 1024 rport 4} - Displays the remote host port of the fifth connection on a privileged port\\ ${tcp_portmon 1 65535 lservice 14} - Displays the local service name of the fifteenth connection in the range of all ports\\ Note that port monitor variables which share the same port range actually refer to the same monitor, so many references to a single port range for different items and different indexes all use the same monitor internally. In other words, the program avoids creating redundant monitors.| |tcp_portmon|port_begin port_end\\ item (index)|TCP port (both IPv6 and IPv4) monitor for specified local ports. Port numbers must be in the range 1 to 65535. Valid items are:\\ count - Total number of connections in the range\\ rip - Remote ip address\\ rhost - Remote host name\\ rport - Remote port number\\ rservice - Remote service name from /​etc/​services\\ lip - Local ip address\\ lhost - Local host name\\ lport - Local port number\\ lservice - Local service name from /​etc/​services\\ The connection index provides you with access to each connection in the port monitor. The monitor will return information for index values from 0 to n-1 connections. Values higher than n-1 are simply ignored. For the "​count"​ item, the connection index must be omitted. It is required for all other items.\\ Examples:\\ ${tcp_portmon 6881 6999 count} - Displays the number of connections in the bittorrent port range\\ ${tcp_portmon 22 22 rip 0} - Displays the remote host ip of the first sshd connection\\ ${tcp_portmon 22 22 rip 9} - Displays the remote host ip of the tenth sshd connection\\ ${tcp_portmon 1 1024 rhost 0} - Displays the remote host name of the first connection on a privileged port\\ ${tcp_portmon 1 1024 rport 4} - Displays the remote host port of the fifth connection on a privileged port\\ ${tcp_portmon 1 65535 lservice 14} - Displays the local service name of the fifteenth connection in the range of all ports\\ Note that port monitor variables which share the same port range actually refer to the same monitor, so many references to a single port range for different items and different indexes all use the same monitor internally. In other words, the program avoids creating redundant monitors.|
Строка 318: Строка 318:
 |bmpx_track| |Номер текущего трека| |bmpx_track| |Номер текущего трека|
 |bmpx_uri| |URI текущего трека| |bmpx_uri| |URI текущего трека|
-|moc_album| |Album of the current ​MOC song+|moc_album| |Альбом текущей ​MOC песни
-|moc_artist| |Artist of the current ​MOC song+|moc_artist| |Исполнитель текущей ​MOC песни
-|moc_bitrate| |Bitrate in the current ​MOC song+|moc_bitrate| |Битрейт в текущей ​MOC песни
-|moc_curtime| |Current time of the current ​MOC song+|moc_curtime| |Время текущей ​MOC песни
-|moc_file| |File name of the current ​MOC song+|moc_file| |Имя файла текущей ​MOC песни
-|moc_rate| |Rate of the current ​MOC song+|moc_rate| |Справка для текущей ​MOC песни
-|moc_song| |The current song name being played in MOC.| +|moc_song| |Имя текущей песни проигрываемой в MOC.| 
-|moc_state| |Current state of MOC; playingstopped etc.| +|moc_state| |Текущее состояние ​MOC; Проигрываетостановлен и т.д.| 
-|moc_timeleft| |Time left in the current ​MOC song+|moc_timeleft| |Оставшееся время в текущей ​MOC песне
-|moc_title| |Title of the current ​MOC song+|moc_title| |Заголовок текущей ​MOC песни
-|moc_totaltime| |Total length of the current ​MOC song+|moc_totaltime| |Продолжительность текущей ​MOC песни
-|mpd_album| |Album in current ​MPD song+|mpd_album| |Альбом в текущей ​MPD песне
-|mpd_artist| |Artist in current ​MPD song must be enabled at compile+|mpd_artist| |Включить дорожку исполнителя ​MPD песни во время компиляции
-|mpd_bar|(height),​(width)|Bar of mpd'​s ​progress+|mpd_bar|(height),​(width)|Бар для процесса ​mpd'​s| 
-|mpd_bitrate| |Bitrate of current song+|mpd_bitrate| |Брейт текущей песни
-|mpd_elapsed| |Song's elapsed time+|mpd_elapsed| |Истекшее время песни
-|mpd_file| |Prints the file name of the current ​MPD song+|mpd_file| |Вывод имени файла текущей ​MPD песни
-|mpd_length| |Song's length+|mpd_length| |Длительность песни
-|mpd_name| |Prints the MPD name field+|mpd_name| |Вывести поле имени ​MPD| 
-|mpd_percent| |Percent of song's progress+|mpd_percent| |Процент процесса песни
-|mpd_random| |Random status ​(On/Off)| +|mpd_random| |Произвольный статус ​(On/Off)| 
-|mpd_repeat| |Repeat status ​(On/Off)| +|mpd_repeat| |Повторение статуса ​(On/Off)| 
-|mpd_smart|(max length)|Prints the song name in either the form "​artist - title" ​or file namedepending on whats available+|mpd_smart|(max length)|Вывести имя песни в виде ​"​artist - title" ​или имя файлав зависимости что доступно.
-|mpd_status| |Playing, stoppedet cetera.| +|mpd_status| |Воспроизведениеостановка и т.д
-|mpd_title|(max length)|Title of current ​MPD song+|mpd_title|(max length)|Заголовок текущей ​MPD песни
-|mpd_track| |Prints the MPD track field+|mpd_track| |Вывод поля дорожки ​MPD| 
-|mpd_vol| |MPD'​s ​volume|+|mpd_vol| |объем ​MPD's|
 |xmms2_album| |Альбом текущего трека| |xmms2_album| |Альбом текущего трека|
 |xmms2_artist| |Исполнитель текущего трека| |xmms2_artist| |Исполнитель текущего трека|
Строка 352: Строка 352:
 |xmms2_date| |Возвращает дату ткущего трека| |xmms2_date| |Возвращает дату ткущего трека|
 |xmms2_duration| |Продолжительность трека| |xmms2_duration| |Продолжительность трека|
-|xmms2_elapsed| |Song's elapsed time|+|xmms2_elapsed| |Истекшее время песни|
 |xmms2_genre| |Жанр| |xmms2_genre| |Жанр|
 |xmms2_id| |XMMS2 id трека| |xmms2_id| |XMMS2 id трека|
Строка 410: Строка 410:
 |ibm_temps|N|If running the IBM ACPI, displays the temperatures from the IBM temperature sensors (N=0..7) Sensor 0 is on the CPU, 3 is on the GPU.| |ibm_temps|N|If running the IBM ACPI, displays the temperatures from the IBM temperature sensors (N=0..7) Sensor 0 is on the CPU, 3 is on the GPU.|
 |ibm_volume| |If running the IBM ACPI, displays the "​master"​ volume, controlled by the volume keys (0-14).| |ibm_volume| |If running the IBM ACPI, displays the "​master"​ volume, controlled by the volume keys (0-14).|
-|freq|(n)|Returns ​CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.| +|freq|(n)|Возращает частоту ​CPU #n в MHz. CPU считаются от 1. Обычное значение ​1.| 
-|freq_g|(n)|Returns ​CPU #n's frequency in GHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.|+|freq_g|(n)|Возращает частоту ​CPU #n в GHz. CPU считаются от 1. Обычное значение ​1.|
 |hddtemp|(dev)|Displays temperature of a selected hard disk drive as reported by the hddtemp daemon. Use hddtemp_host and hddtemp_port to specify a host and port for all hddtemp objects. If no dev parameter is given, the first disk returned by the hddtemp daemon is used.| |hddtemp|(dev)|Displays temperature of a selected hard disk drive as reported by the hddtemp daemon. Use hddtemp_host and hddtemp_port to specify a host and port for all hddtemp objects. If no dev parameter is given, the first disk returned by the hddtemp daemon is used.|
 |hwmon|(dev) type n (factor offset)|Hwmon sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one hwmon device. Parameter type is either '​in'​ or '​vol'​ meaning voltage; '​fan'​ meaning fan; '​temp'​ meaning temperature. Parameter n is number of the sensor. See /​sys/​class/​hwmon/​ on your local computer. The optional arguments '​factor'​ and '​offset'​ allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'​. Note that they have to be given as decimal values (i.e. contain at least one decimal place).| |hwmon|(dev) type n (factor offset)|Hwmon sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one hwmon device. Parameter type is either '​in'​ or '​vol'​ meaning voltage; '​fan'​ meaning fan; '​temp'​ meaning temperature. Parameter n is number of the sensor. See /​sys/​class/​hwmon/​ on your local computer. The optional arguments '​factor'​ and '​offset'​ allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'​. Note that they have to be given as decimal values (i.e. contain at least one decimal place).|
-|laptop_mode| |The value of /​proc/​sys/​vm/​laptop_mode| +|laptop_mode| |Значение ​/​proc/​sys/​vm/​laptop_mode| 
-|machine| |Machine, i686 for example|+|machine| |Разрядность системы|
 |nvidia|threshold|Nvidia graficcard support for the XNVCtrl library. Each option can be shortened to the least significant part. Temperatures are printed as float, all other values as integer.\\ threshold - The thresholdtemperature at which the gpu slows down\\ temp - Gives the gpu current temperature\\ ambient - Gives current air temperature near GPU case\\ gpufreq - Gives the current gpu frequency\\ memfreq - Gives the current mem frequency\\ imagequality - Which imagequality should be chosen by OpenGL applications| |nvidia|threshold|Nvidia graficcard support for the XNVCtrl library. Each option can be shortened to the least significant part. Temperatures are printed as float, all other values as integer.\\ threshold - The thresholdtemperature at which the gpu slows down\\ temp - Gives the gpu current temperature\\ ambient - Gives current air temperature near GPU case\\ gpufreq - Gives the current gpu frequency\\ memfreq - Gives the current mem frequency\\ imagequality - Which imagequality should be chosen by OpenGL applications|
-|pb_battery|item|If running on Apple powerbook/​ibook, ​display information on battery status. The item parameter specifies, what information to display. Exactly one item must be specified. Valid items are:\\ status - Display if battery is fully charged, charging, discharging or absent (running on AC)\\ percent - Display charge of battery in percent, if charging or discharging. Nothing will be displayed, if battery is fully charged or absent.\\ time - Display the time remaining until the battery will be fully charged or discharged at current rate. Nothing is displayed, if battery is absent or if it's present but fully charged and not discharging.|+|pb_battery|item|Если запущено на Apple powerbook/​ibook, ​отображает информацию о батарее. The item parameter specifies, what information to display. Exactly one item must be specified. Valid items are:\\ status - Display if battery is fully charged, charging, discharging or absent (running on AC)\\ percent - Display charge of battery in percent, if charging or discharging. Nothing will be displayed, if battery is fully charged or absent.\\ time - Display the time remaining until the battery will be fully charged or discharged at current rate. Nothing is displayed, if battery is absent or if it's present but fully charged and not discharging.|
 |platform|(dev) type n (factor offset)|Platform sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one platform device. Platform type is either '​in'​ or '​vol'​ meaning voltage; '​fan'​ meaning fan; '​temp'​ meaning temperature. Parameter n is number of the sensor. See /​sys/​bus/​platform/​devices/​ on your local computer. The optional arguments '​factor'​ and '​offset'​ allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'​. Note that they have to be given as decimal values (i.e. contain at least one decimal place).| |platform|(dev) type n (factor offset)|Platform sensor from sysfs (Linux 2.6). Parameter dev may be omitted if you have only one platform device. Platform type is either '​in'​ or '​vol'​ meaning voltage; '​fan'​ meaning fan; '​temp'​ meaning temperature. Parameter n is number of the sensor. See /​sys/​bus/​platform/​devices/​ on your local computer. The optional arguments '​factor'​ and '​offset'​ allow precalculation of the raw input, which is being modified as follows: 'input = input * factor + offset'​. Note that they have to be given as decimal values (i.e. contain at least one decimal place).|
 |smapi|(ARGS)|when using smapi, display contents of the /​sys/​devices/​platform/​smapi directory. ARGS are either '​(FILENAME)'​ or 'bat (INDEX) (FILENAME)'​ to display the corresponding files' content. This is a very raw method of accessing the smapi values. When available, better use one of the smapi_* variables instead.| |smapi|(ARGS)|when using smapi, display contents of the /​sys/​devices/​platform/​smapi directory. ARGS are either '​(FILENAME)'​ or 'bat (INDEX) (FILENAME)'​ to display the corresponding files' content. This is a very raw method of accessing the smapi values. When available, better use one of the smapi_* variables instead.|
Строка 424: Строка 424:
 |smapi_bat_power|INDEX|when using smapi, display the current power of the battery with index INDEX in watt. This is a separate variable because the original read out value is being converted from mW. The sign of the output reflects charging (positive) or discharging (negative) state.| |smapi_bat_power|INDEX|when using smapi, display the current power of the battery with index INDEX in watt. This is a separate variable because the original read out value is being converted from mW. The sign of the output reflects charging (positive) or discharging (negative) state.|
 |smapi_bat_temp|INDEX|when using smapi, display the current temperature of the battery with index INDEX in degree Celsius. This is a separate variable because the original read out value is being converted from milli degree Celsius.| |smapi_bat_temp|INDEX|when using smapi, display the current temperature of the battery with index INDEX in degree Celsius. This is a separate variable because the original read out value is being converted from milli degree Celsius.|
-|sony_fanspeed| |Displays the Sony VAIO fanspeed information if sony-laptop ​kernel support is enabled. Linux only.|+|sony_fanspeed| |Отображает скорость вентиляторов на Sony VAIO если поддержка ​sony-laptop ​включена в ядреТолько на Linux.|
 |voltage_mv|(n)|Возвращает напряжение на n-ном процессоре в мВ.\\ Без параметра возвращает для первого| |voltage_mv|(n)|Возвращает напряжение на n-ном процессоре в мВ.\\ Без параметра возвращает для первого|
 |voltage_v|(n)|Возвращает напряжение на n-ном процессоре в В.\\ Без параметра возвращает для первого| |voltage_v|(n)|Возвращает напряжение на n-ном процессоре в В.\\ Без параметра возвращает для первого|
Строка 439: Строка 439:
 |if_mounted|(mountpoint)|if MOUNTPOINT is mounted, display everything between $if_mounted and the matching $endif| |if_mounted|(mountpoint)|if MOUNTPOINT is mounted, display everything between $if_mounted and the matching $endif|
 |if_mpd_playing| |if mpd is playing or paused, display everything between $if_mpd_playing and the matching $endif| |if_mpd_playing| |if mpd is playing or paused, display everything between $if_mpd_playing and the matching $endif|
-|if_running|(process)|if PROCESS is running, display everything $if_running and the matching $endif. This uses the ``pidof''​ command, so the -x switch is also supported.|+|if_running|(process)|if PROCESS is running, display everything $if_running and the matching $endif. This uses the %%``pidof''​%% command, so the -x switch is also supported.|
 |if_smapi_bat_installed|(INDEX)|when using smapi, if the battery with index INDEX is installed, display everything between $if_smapi_bat_installed and the matching $endif| |if_smapi_bat_installed|(INDEX)|when using smapi, if the battery with index INDEX is installed, display everything between $if_smapi_bat_installed and the matching $endif|
 |if_up|(interface)|if INTERFACE exists and is up, display everything between $if_up and the matching $endif| |if_up|(interface)|if INTERFACE exists and is up, display everything between $if_up and the matching $endif|
Строка 461: Строка 461:
 |entropy_poolsize| |Общий размер системного пула энтропии,​ доступной для крипто-фриков| |entropy_poolsize| |Общий размер системного пула энтропии,​ доступной для крипто-фриков|
 |format_time|seconds format|Format time given in seconds. This var only works when the times_in_seconds configuration setting is on. Format is a string that should start and end with a "​-char. The "​-chars are not part of the output, \w,​\d,​\h,​\m,​\s,​\(,​\) and \\ are replaced by weeks,​days,​hours,​minutes,​seconds,​(,​) and \. If you leave out a unit, it's value will be expressed in the highest unite lower then the one left out. Text between ()-chars will not be visible if a replaced unit in this text is 0. If seconds is a decimal number then you can see the numbers behind the point by using \S followed by a number that specifies the amount of digits behind the point that you want to see (maximum 9). You can also place a '​x'​ behind \S so you have all digits behind the point and no trailing zero'​s. (also maximum 9)| |format_time|seconds format|Format time given in seconds. This var only works when the times_in_seconds configuration setting is on. Format is a string that should start and end with a "​-char. The "​-chars are not part of the output, \w,​\d,​\h,​\m,​\s,​\(,​\) and \\ are replaced by weeks,​days,​hours,​minutes,​seconds,​(,​) and \. If you leave out a unit, it's value will be expressed in the highest unite lower then the one left out. Text between ()-chars will not be visible if a replaced unit in this text is 0. If seconds is a decimal number then you can see the numbers behind the point by using \S followed by a number that specifies the amount of digits behind the point that you want to see (maximum 9). You can also place a '​x'​ behind \S so you have all digits behind the point and no trailing zero'​s. (also maximum 9)|
-|kernel| |Kernel version|+|kernel| |Версия ядра|
 |loadavg|(n)|System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes. Without argument, prints all three values separated by whitespace.| |loadavg|(n)|System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes. Without argument, prints all three values separated by whitespace.|
 |loadgraph|(height),​(width) (gradient colour 1) (gradient colour 2) (scale) (-t) (-l)|Load1 average graph, similar to xload, with optional colours in hex, minus the #. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '​-t'​ to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see).| |loadgraph|(height),​(width) (gradient colour 1) (gradient colour 2) (scale) (-t) (-l)|Load1 average graph, similar to xload, with optional colours in hex, minus the #. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '​-t'​ to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see).|
 |mem| |Объем используемой (занятой) оперативной памяти| |mem| |Объем используемой (занятой) оперативной памяти|
-|membar|(height),​(width)|Bar that shows amount of memory in use|+|membar|(height),​(width)|Бар, показывающий количество занятой памяти|
 |memeasyfree| |Amount of free memory including the memory that is very easily freed (buffers/​cache)| |memeasyfree| |Amount of free memory including the memory that is very easily freed (buffers/​cache)|
-|memfree| |Amount of free memory|+|memfree| |Количество свободной памяти|
 |memgauge|(height),​(width)|Gauge that shows amount of memory in use (see cpugauge)| |memgauge|(height),​(width)|Gauge that shows amount of memory in use (see cpugauge)|
 |memgraph|(height),​(width) (gradient colour 1) (gradient colour 2) (scale) (-t) (-l)|Memory usage graph. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '​-t'​ to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see).| |memgraph|(height),​(width) (gradient colour 1) (gradient colour 2) (scale) (-t) (-l)|Memory usage graph. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '​-t'​ to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see).|
 |memmax| |Объем доступной оперативной памяти (100%)| |memmax| |Объем доступной оперативной памяти (100%)|
 |memperc| |% используемой (занятой) оперативной памяти | |memperc| |% используемой (занятой) оперативной памяти |
-|monitor| |Number of the monitor on which conky is running or the message ​"Not running in X" ​if this is the case.| +|monitor| |Количество мониторов на которых запущен ​conky или вывод сообщения ​"Not running in X" ​если запущен не в X сервере.| 
-|monitor_number| |Number of monitors or the message ​"Not running in X" ​if this is the case.|+|monitor_number| |Количество мониторов или вывод сообщения ​"Not running in X" ​если запущен не в X сервере.|
 |swap| |Объем использованного swap| |swap| |Объем использованного swap|
 |swapbar|(height),​(width)|Бар использования swap| |swapbar|(height),​(width)|Бар использования swap|
Строка 484: Строка 484:
 |gid_name|gid|Имя группы с данным gid| |gid_name|gid|Имя группы с данным gid|
 |uid_name|uid|Имя пользователя с данным uid| |uid_name|uid|Имя пользователя с данным uid|
-|uptime| |Аптайм|+|uptime| |Время работы компьютера(Аптайм)|
 |uptime_short| |Аптайм короткой строкой| |uptime_short| |Аптайм короткой строкой|
 |user_names| |Список имен залогиненных пользователей| |user_names| |Список имен залогиненных пользователей|
Строка 553: Строка 553:
 sudo apt-get update && sudo apt-get upgrade</​code>​ sudo apt-get update && sudo apt-get upgrade</​code>​
 ====Проверка обновлений==== ====Проверка обновлений====
-Для проверки наличия обновления используется команда +Для проверки наличия обновления используется команда ​''​/​usr/​lib/​update-notifier/​update-motd-updates-available''​ . Она проверяет обновившиеся ​списки пакетов, и, если есть изменения,​ запускает команду ​''​/​usr/​lib/​update-notifier/​apt-check'' ​с параметром ​''​--human-readable''​, без параметров просто отображается количество обычных/важных обновлений.
-<​file>​ +
-/​usr/​lib/​update-notifier/​update-motd-updates-available +
-</​file>​ +
-Она проверяет обновившиеся ​apt листы, и, если есть изменения,​ запускает команду ​<​file>​/​usr/​lib/​update-notifier/​apt-check</​file> ​с параметром --human-readable,​ без параметров просто отображается количество обычных;важных обновлений.+
  
 Строчка для conky: Строчка для conky:
Строка 563: Строка 559:
 ===== Известные проблемы и их решение ===== ===== Известные проблемы и их решение =====
  
-==== Conky мерцает ==== 
  
-<note warning> Только для Ubuntu 8.04 и более старых версий </​note>​+==== Conky при автозагрузке оказывается поверх всех окон ====
  
-Для ​того что бы решить проблему "мерцания" conky правим ​файл xorg.conf+Для решения данной ​проблемы достаточно изменить команду запуска conky, добавив параметр -p - пауза перед запуском:​ 
 +<code bash> 
 +conky -p 10 
 +</​code>​
  
-  sudo gedit /etc/​X11/​xorg.conf+==== В Conky запущенных из KDE черный фон ==== 
 +Для решения данной проблемы добавьте в свой .conkyrc следующее:​ 
 +<​code>​ 
 +own_window yes 
 +own_window_title conky 
 +own_window_hints undecorated,​below,​sticky,​skip_taskbar,​skip_pager 
 +own_window_argb_visual yes 
 +own_window_argb_value 0 
 +own_window_type normal  
 +</code>
  
-Находим секцию “Modules” добавляем следующую ​строчку+Причем строчка 
 +<​code>​own_window_transparent</​code>​
  
-<​file>​Load “dbe”</​file>​+должна отсутствовать
  
-а также в ~/.conkyrc+==== Conky исчезает в процессе работы/​дублируется ==== 
 +Исправляется скриптом подобного рода 
 +<code bash> 
 +#!/bin/bash
  
-<​file>​double_buffer yes</​file>​+restart_conky(){ 
 + ​killall conky 
 + # Можно добавлять conky с ключами 
 + # сколько потребуется,​ после этого  
 + # требуется редактирование conkyd() 
 + conky -d & 
 +}
  
-Сохраняем, закрываем. Перезагружаем X-Window (<​key>​Ctrl</​key>​+<​key>​Alt</​key>​+<​key>​Backspace</​key>​) ​и запускаем  ​ +conkyd(){ 
-conky.+ #1 если нет ниодного процесса, перезапустить 
 + [ -z "​$1"​ ] && restart_conky 
 + # 2 если есть второй или больше, ​убить все 
 + # ​и перезапустить ​коньки 
 + [ ! -z "​$2"​ ] && restart_conky  
 + sleep 5 
 +}
  
-Если пользуетесь [[compiz]], то в "​general options"​ надо снять галочку ​в пункте "hide skip taskbar windows"​ и в ~/.conkyrc установить параметр +while true 
-<​file>​own_window_type normal</​file>​ + do 
-В этом случае conky остаются ​на рабочем ​столе при сворачивании окон.+  # pidof conky возращает pid всех процессов 
 +  # у которых ​в имени содержится conky 
 +  conkyd $(pidof conky) 
 + done
  
-==== Conky при автозагрузке оказывается поверх всех окон ==== +exit 0
- +
-Для решения данной проблемы достаточно изменить команду запуска conky, добавив параметр -p - пауза перед запуском:​ +
-<code bash> +
-conky -p 10+
 </​code>​ </​code>​
 ===== Ссылки ===== ===== Ссылки =====