https://wiki.archlinux.org/api.php?action=feedcontributions&user=Rasongame&feedformat=atomArchWiki - User contributions [en]2024-03-29T05:13:42ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Polybar_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=741832Polybar (Русский)2022-08-16T19:48:23Z<p>Rasongame: Removed some of the garbage from the translation from English to Russian</p>
<hr />
<div>[[Category:Eye candy (Русский)]]<br />
[[en:Polybar]]<br />
[[fi:Polybar]]<br />
[[ja:Polybar]]<br />
[[pl:Polybar]]<br />
[[pt:Polybar]]<br />
[[zh-hans:Polybar]]<br />
{{TranslationStatus (Русский)|Polybar|30 июля 2019|578417}}<br />
[https://github.com/jaagr/polybar polybar] — быстрый и лёгкий инструмент для создания статус-баров. Он нацелен на лёгкую персонализацию, используя множество модулей и позволяя, например, отображать рабочие столы, дату или громкость звука. Особенно Polybar полезен в [[Window manager (Русский)|оконных менеджерах]] без панели или с её ограниченной функциональностью, таких как [[awesome (Русский)|awesome]] или [[i3 (Русский)|i3]]. Polybar также можно использовать и в [[Desktop environment (Русский)|окружениях рабочего стола]], например, в [[Plasma (Русский)|Plasma]].<br />
<br />
== Установка ==<br />
<br />
[[Установите]] пакет {{Pkg|polybar}}. Экспериментальная версия доступна в пакете {{AUR|polybar-git}}.<br />
<br />
== Настройка ==<br />
<br />
Скопируйте пример конфигурационного файла из {{ic|/usr/share/doc/polybar/config}} в {{ic|$XDG_CONFIG_HOME/polybar/config}}<br />
<br />
=== Запуск Polybar ===<br />
<br />
Polybar можно запустить со следующими параметрами:<br />
<br />
{{bc|<br />
Usage: polybar [OPTION]... BAR<br />
<br />
-h, --help Display this help and exit<br />
-v, --version Display build details and exit<br />
-l, --log&#61;LEVEL Set the logging verbosity (default: WARNING)<br />
LEVEL is one of: error, warning, info, trace<br />
-q, --quiet Be quiet (will override -l)<br />
-c, --config&#61;FILE Path to the configuration file<br />
-r, --reload Reload when the configuration has been modified<br />
-d, --dump&#61;PARAM Print value of PARAM in bar section and exit<br />
-m, --list-monitors Print list of available monitors and exit<br />
-w, --print-wmname Print the generated WM_NAME and exit<br />
-s, --stdout Output data to stdout instead of drawing it to the X window<br />
-p, --png&#61;FILE Save png snapshot to FILE after running for 3 seconds<br />
}}<br />
<br />
Но скорее всего, вы будете запускать Polybar с оконным менеджером, см. раздел [[#Запуск с оконным менеджером]].<br />
<br />
=== Пример конфигурационного файла ===<br />
<br />
Пример простого конфигурационного файла:<br />
<br />
{{bc|1=<br />
[bar/mybar]<br />
modules-right = date<br />
<br />
[module/date]<br />
type = internal/date<br />
date = %Y-%m-%d%<br />
}}<br />
<br />
Он создаёт статус-бар {{ic|mybar}} с модулем {{ic|date}}.<br />
<br />
Также по умолчанию polybar создаёт пример со многими преднастроенными модулями в файле {{ic|/usr/share/doc/polybar/config}}.<br />
<br />
{{Note (Русский)|Пример конфигурационного файла может по умолчанию не работать и его необходимо настроить под свои нужды.<br />
}}<br />
<br />
=== Запуск с оконным менеджером ===<br />
<br />
Создайте [[Help:Reading (Русский)#Сделать исполняемым|исполняемый]] файл, содержащий процесс загрузки, например, {{ic|$HOME/.config/polybar/launch.sh}}:<br />
<br />
{{bc|<br />
#!/bin/bash<br />
<br />
# Завершить текущие экземпляры polybar<br />
killall -q polybar<br />
<br />
# Ожидание полного завершения работы процессов<br />
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done<br />
<br />
# Запуск Polybar со стандартным расположением конфигурационного файла в ~/.config/polybar/config<br />
polybar mybar &<br />
<br />
echo "Polybar загрузился..."<br />
}}<br />
<br />
Данный скрипт означает, что при перезагрузке оконного менеджера также перезагрузится и Polybar.<br />
<br />
==== bspwm ====<br />
<br />
Если вы используете [[bspwm (Русский)|bspwm]], добавьте в {{ic|bspwmrc}}:<br />
<br />
{{bc|<br />
$HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
==== i3 ====<br />
<br />
Если вы используете [[i3 (Русский)|i3]], добавьте в его конфигурационный файл:<br />
<br />
{{bc|<br />
exec_always --no-startup-id $HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
== Решение проблем ==<br />
<br />
=== Cannot open shared object file libjsoncpp.so ===<br />
<br />
Попробуйте переустановить Polybar, как описано в [https://github.com/jaagr/polybar/issues/885 issue] на GitHub.<br />
<br />
Если проблема не решится, попробуйте [[установить]] пакет {{Pkg|jsoncpp}}.<br />
<br />
== Смотрите также ==<br />
<br />
* [https://github.com/jaagr/polybar/wiki/ Polybar Github Wiki]</div>Rasongamehttps://wiki.archlinux.org/index.php?title=Polybar&diff=578402Polybar2019-07-30T14:25:10Z<p>Rasongame: Add russian page of Polybar</p>
<hr />
<div>[[Category:Eye candy]]<br />
[[ja:Polybar]]<br />
[[pl:Polybar]]<br />
[[ru:Polybar]]<br />
[https://github.com/jaagr/polybar polybar] is a fast and easy-to-use tool for creating status bars. It aims to be easily customizable, utilising many modules which enable a wide range of (editable) functionality, such as displaying workspaces, the date, or system volume. Polybar is especially useful for [[Window manager]]s that have a limited or non-existent status bar, such as [[awesome]] or [[i3]]. Polybar can also be used on full [[Desktop environment]]s like [[Plasma]].<br />
<br />
== Installation ==<br />
<br />
[[Install]] the {{AUR|polybar}} package. The development version is {{AUR|polybar-git}}.<br />
<br />
== Configuration ==<br />
Copy the configuration example from {{ic|/usr/share/doc/polybar/config}} to {{ic|$XDG_CONFIG_HOME/polybar/config}}<br />
<br />
<br />
==== Running Polybar ====<br />
<br />
Polybar can be run with the following:<br />
<br />
{{bc|<br />
Usage: polybar [OPTION]... BAR<br />
<br />
-h, --help Display this help and exit<br />
-v, --version Display build details and exit<br />
-l, --log&#61;LEVEL Set the logging verbosity (default: WARNING)<br />
LEVEL is one of: error, warning, info, trace<br />
-q, --quiet Be quiet (will override -l)<br />
-c, --config&#61;FILE Path to the configuration file<br />
-r, --reload Reload when the configuration has been modified<br />
-d, --dump&#61;PARAM Print value of PARAM in bar section and exit<br />
-m, --list-monitors Print list of available monitors and exit<br />
-w, --print-wmname Print the generated WM_NAME and exit<br />
-s, --stdout Output data to stdout instead of drawing it to the X window<br />
-p, --png&#61;FILE Save png snapshot to FILE after running for 3 seconds<br />
}}<br />
<br />
However you will probably want to run Polybar with your window manager's bootstrap routine. See [[#Running with WM]]<br />
<br />
==== Sample Config ====<br />
A very basic polybar config may look like this:<br />
{{bc|1=<br />
[bar/mybar]<br />
modules-right = date<br />
<br />
[module/date]<br />
type = internal/date<br />
date = %Y-%m-%d%<br />
}}<br />
<br />
It defines a bar named {{ic|mybar}} with a module called {{ic|date}}.<br />
<br />
By default polybar will also install a sample configuration with many preconfigured modules in {{ic|/usr/share/doc/polybar/config}}<br />
{{Note|The sample config is not designed to work out of the box for everyone, you will need to modify it to match your setup}}<br />
<br />
==== Running with WM ====<br />
<br />
Create an [[executable]] file containing the startup logic, for example {{ic|$HOME/.config/polybar/launch.sh}}:<br />
<br />
{{bc|<br />
#!/bin/bash<br />
<br />
# Terminate already running bar instances<br />
killall -q polybar<br />
<br />
# Wait until the processes have been shut down<br />
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done<br />
<br />
# Launch Polybar, using default config location ~/.config/polybar/config<br />
polybar mybar &<br />
<br />
echo "Polybar launched..."<br />
}}<br />
<br />
This script will mean that restarting your WM will also restart Polybar.<br />
<br />
====== bspwm ======<br />
<br />
If using [[bspwm]], add the following to {{ic|bspwmrc}}:<br />
{{bc|<br />
$HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
====== i3 ======<br />
<br />
If using [[i3]], add the following to your configuration:<br />
<br />
{{bc|<br />
exec_always --no-startup-id $HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
== Troubleshooting ==<br />
<br />
=== Cannot open shared object file libjsoncpp.so ===<br />
<br />
Attempt a reinstall as per [https://github.com/jaagr/polybar/issues/885 this] github issue.<br />
<br />
Failing that, try installing jsoncpp from the official repositories:<br />
<br />
{{bc|pacman -S jsoncpp}}<br />
<br />
== See also ==<br />
<br />
* [https://github.com/jaagr/polybar/wiki/ Polybar Github Wiki]</div>Rasongamehttps://wiki.archlinux.org/index.php?title=User:Rasongame/vector.css&diff=578398User:Rasongame/vector.css2019-07-30T10:19:31Z<p>Rasongame: Created page with "body { background: black;"</p>
<hr />
<div>body {<br />
background: black;</div>Rasongamehttps://wiki.archlinux.org/index.php?title=Polybar_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=578397Polybar (Русский)2019-07-30T10:15:08Z<p>Rasongame: </p>
<hr />
<div>[[Category:Eye candy]]<br />
[[en:Polybar]]<br />
[[ja:Polybar]]<br />
[[pl:Polybar]]<br />
{{Translateme (Русский)|Не 100% перевод}}<br />
[https://github.com/jaagr/polybar polybar] это быстрый и легкий инструмент для создания статус-баров. Он нацелен на легкую кастомизацию, используя множество модулей, что включают широкий простор функциональности, как отображение рабочих столов, даты, или громкости звука. Polybar используется специально для [[Window manager|оконных менеджеров]] имеющих ограниченную панель или идущих без неё, таких как [[bspwm]] или [[i3]]. Polybar также сможет использоваться в [[Desktop Environment| окружениях рабочего стола]] вроде [[Plasma | KDE Plasma]].<br />
<br />
== Установка ==<br />
<br />
[[Установка|Установите]] пакет {{AUR|polybar}}. Версия с последними правками {{AUR|polybar-git}}.<br />
<br />
== Конфигурация ==<br />
Скопируйте пример из {{ic|/usr/share/doc/polybar/config}} в {{ic|$XDG_CONFIG_HOME/polybar/config}}<br />
<br />
==== Запуск Polybar ====<br />
<br />
Polybar может быть запущен со следующим:<br />
<br />
{{bc|<br />
Usage: polybar [OPTION]... BAR<br />
<br />
-h, --help Display this help and exit<br />
-v, --version Display build details and exit<br />
-l, --log&#61;LEVEL Set the logging verbosity (default: WARNING)<br />
LEVEL is one of: error, warning, info, trace<br />
-q, --quiet Be quiet (will override -l)<br />
-c, --config&#61;FILE Path to the configuration file<br />
-r, --reload Reload when the configuration has been modified<br />
-d, --dump&#61;PARAM Print value of PARAM in bar section and exit<br />
-m, --list-monitors Print list of available monitors and exit<br />
-w, --print-wmname Print the generated WM_NAME and exit<br />
-s, --stdout Output data to stdout instead of drawing it to the X window<br />
-p, --png&#61;FILE Save png snapshot to FILE after running for 3 seconds<br />
}}<br />
<br />
However you will probably want to run Polybar with your window manager's bootstrap routine. See [[#Running with WM]]<br />
<br />
==== Пример ====<br />
Самый базовый конфиг, который может быть выглядит так:<br />
{{bc|1=<br />
[bar/mybar]<br />
modules-right = date<br />
<br />
[module/date]<br />
type = internal/date<br />
date = %Y-%m-%d%<br />
}}<br />
<br />
It defines a bar named {{ic|mybar}} with a module called {{ic|date}}.<br />
<br />
By default polybar will also install a sample configuration with many preconfigured modules in {{ic|/usr/share/doc/polybar/config}}<br />
{{Note|The sample config is not designed to work out of the box for everyone, you will need to modify it to match your setup}}<br />
<br />
==== Running with WM ====<br />
<br />
Create an [[executable]] file containing the startup logic, for example {{ic|$HOME/.config/polybar/launch.sh}}:<br />
<br />
{{bc|<br />
#!/bin/bash<br />
<br />
# Terminate already running bar instances<br />
killall -q polybar<br />
<br />
# Wait until the processes have been shut down<br />
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done<br />
<br />
# Launch Polybar, using default config location ~/.config/polybar/config<br />
polybar mybar &<br />
<br />
echo "Polybar launched..."<br />
}}<br />
<br />
This script will mean that restarting your WM will also restart Polybar.<br />
<br />
====== bspwm ======<br />
<br />
Если вы используете [[bspwm]], добавьте это в {{ic|bspwmrc}}:<br />
{{bc|<br />
$HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
====== i3 ======<br />
<br />
Если вы используете [[i3]], добавьте это в свой конфигурационный файл:<br />
<br />
{{bc|<br />
exec_always --no-startup-id $HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
== Решение проблем ==<br />
<br />
=== Cannot open shared object file libjsoncpp.so ===<br />
<br />
Попробуйте переустановить как описано [https://github.com/jaagr/polybar/issues/885 здесь].<br />
<br />
Если проблема не решится, попробуйте установить jsoncpp из официальных репозиториев:<br />
<br />
{{bc|pacman -S jsoncpp}}<br />
<br />
== Смотрите также ==<br />
<br />
* [https://github.com/jaagr/polybar/wiki/ Polybar Github Wiki]</div>Rasongamehttps://wiki.archlinux.org/index.php?title=Polybar_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=578395Polybar (Русский)2019-07-30T10:14:03Z<p>Rasongame: Закончил перевод оглавления</p>
<hr />
<div>[[Category:Eye candy]]<br />
[[en:Polybar]]<br />
[[ja:Polybar]]<br />
[[pl:Polybar]]<br />
[https://github.com/jaagr/polybar polybar] это быстрый и легкий инструмент для создания статус-баров. Он нацелен на легкую кастомизацию, используя множество модулей, что включают широкий простор функциональности, как отображение рабочих столов, даты, или громкости звука. Polybar используется специально для [[Window manager|оконных менеджеров]] имеющих ограниченную панель или идущих без неё, таких как [[bspwm]] или [[i3]]. Polybar также сможет использоваться в [[Desktop Environment| окружениях рабочего стола]] вроде [[Plasma | KDE Plasma]].<br />
<br />
== Установка ==<br />
<br />
[[Установка|Установите]] пакет {{AUR|polybar}}. Версия с последними правками {{AUR|polybar-git}}.<br />
<br />
== Конфигурация ==<br />
Скопируйте пример из {{ic|/usr/share/doc/polybar/config}} в {{ic|$XDG_CONFIG_HOME/polybar/config}}<br />
<br />
==== Запуск Polybar ====<br />
<br />
Polybar может быть запущен со следующим:<br />
<br />
{{bc|<br />
Usage: polybar [OPTION]... BAR<br />
<br />
-h, --help Display this help and exit<br />
-v, --version Display build details and exit<br />
-l, --log&#61;LEVEL Set the logging verbosity (default: WARNING)<br />
LEVEL is one of: error, warning, info, trace<br />
-q, --quiet Be quiet (will override -l)<br />
-c, --config&#61;FILE Path to the configuration file<br />
-r, --reload Reload when the configuration has been modified<br />
-d, --dump&#61;PARAM Print value of PARAM in bar section and exit<br />
-m, --list-monitors Print list of available monitors and exit<br />
-w, --print-wmname Print the generated WM_NAME and exit<br />
-s, --stdout Output data to stdout instead of drawing it to the X window<br />
-p, --png&#61;FILE Save png snapshot to FILE after running for 3 seconds<br />
}}<br />
<br />
However you will probably want to run Polybar with your window manager's bootstrap routine. See [[#Running with WM]]<br />
<br />
==== Пример ====<br />
Самый базовый конфиг, который может быть выглядит так:<br />
{{bc|1=<br />
[bar/mybar]<br />
modules-right = date<br />
<br />
[module/date]<br />
type = internal/date<br />
date = %Y-%m-%d%<br />
}}<br />
<br />
It defines a bar named {{ic|mybar}} with a module called {{ic|date}}.<br />
<br />
By default polybar will also install a sample configuration with many preconfigured modules in {{ic|/usr/share/doc/polybar/config}}<br />
{{Note|The sample config is not designed to work out of the box for everyone, you will need to modify it to match your setup}}<br />
<br />
==== Running with WM ====<br />
<br />
Create an [[executable]] file containing the startup logic, for example {{ic|$HOME/.config/polybar/launch.sh}}:<br />
<br />
{{bc|<br />
#!/bin/bash<br />
<br />
# Terminate already running bar instances<br />
killall -q polybar<br />
<br />
# Wait until the processes have been shut down<br />
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done<br />
<br />
# Launch Polybar, using default config location ~/.config/polybar/config<br />
polybar mybar &<br />
<br />
echo "Polybar launched..."<br />
}}<br />
<br />
This script will mean that restarting your WM will also restart Polybar.<br />
<br />
====== bspwm ======<br />
<br />
Если вы используете [[bspwm]], добавьте это в {{ic|bspwmrc}}:<br />
{{bc|<br />
$HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
====== i3 ======<br />
<br />
Если вы используете [[i3]], добавьте это в свой конфигурационный файл:<br />
<br />
{{bc|<br />
exec_always --no-startup-id $HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
== Решение проблем ==<br />
<br />
=== Cannot open shared object file libjsoncpp.so ===<br />
<br />
Попробуйте переустановить как описано [https://github.com/jaagr/polybar/issues/885 здесь].<br />
<br />
Если проблема не решится, попробуйте установить jsoncpp из официальных репозиториев:<br />
<br />
{{bc|pacman -S jsoncpp}}<br />
<br />
== Смотрите также ==<br />
<br />
* [https://github.com/jaagr/polybar/wiki/ Polybar Github Wiki]</div>Rasongamehttps://wiki.archlinux.org/index.php?title=Polybar_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=578394Polybar (Русский)2019-07-30T10:03:39Z<p>Rasongame: </p>
<hr />
<div>[[Category:Eye candy]]<br />
[[en:Polybar]]<br />
[[ja:Polybar]]<br />
[[pl:Polybar]]<br />
[https://github.com/jaagr/polybar polybar] это быстрый и легкий инструмент для создания статус-баров. Он нацелен на легкую кастомизацию, используя множество модулей, что включают широкий простор функциональности, как отображение рабочих столов, даты, или громкости звука. Polybar is especially useful for [[Window manager]]s that have a limited or non-existent status bar, such as [[awesome]] or [[i3]]. Polybar также сможет использоваться в [[Desktop Environment| окружениях рабочего стола]] вроде [[Plasma | KDE Plasma]].<br />
<br />
== Установка ==<br />
<br />
[[Установка|Установите]] пакет {{AUR|polybar}}. Версия с последними правками {{AUR|polybar-git}}.<br />
<br />
== Конфигурация ==<br />
Скопируйте пример из {{ic|/usr/share/doc/polybar/config}} в {{ic|$XDG_CONFIG_HOME/polybar/config}}<br />
<br />
==== Запуск Polybar ====<br />
<br />
Polybar может быть запущен со следующим:<br />
<br />
{{bc|<br />
Usage: polybar [OPTION]... BAR<br />
<br />
-h, --help Display this help and exit<br />
-v, --version Display build details and exit<br />
-l, --log&#61;LEVEL Set the logging verbosity (default: WARNING)<br />
LEVEL is one of: error, warning, info, trace<br />
-q, --quiet Be quiet (will override -l)<br />
-c, --config&#61;FILE Path to the configuration file<br />
-r, --reload Reload when the configuration has been modified<br />
-d, --dump&#61;PARAM Print value of PARAM in bar section and exit<br />
-m, --list-monitors Print list of available monitors and exit<br />
-w, --print-wmname Print the generated WM_NAME and exit<br />
-s, --stdout Output data to stdout instead of drawing it to the X window<br />
-p, --png&#61;FILE Save png snapshot to FILE after running for 3 seconds<br />
}}<br />
<br />
However you will probably want to run Polybar with your window manager's bootstrap routine. See [[#Running with WM]]<br />
<br />
==== Пример ====<br />
Самый базовый конфиг, который может быть выглядит так:<br />
{{bc|1=<br />
[bar/mybar]<br />
modules-right = date<br />
<br />
[module/date]<br />
type = internal/date<br />
date = %Y-%m-%d%<br />
}}<br />
<br />
It defines a bar named {{ic|mybar}} with a module called {{ic|date}}.<br />
<br />
By default polybar will also install a sample configuration with many preconfigured modules in {{ic|/usr/share/doc/polybar/config}}<br />
{{Note|The sample config is not designed to work out of the box for everyone, you will need to modify it to match your setup}}<br />
<br />
==== Running with WM ====<br />
<br />
Create an [[executable]] file containing the startup logic, for example {{ic|$HOME/.config/polybar/launch.sh}}:<br />
<br />
{{bc|<br />
#!/bin/bash<br />
<br />
# Terminate already running bar instances<br />
killall -q polybar<br />
<br />
# Wait until the processes have been shut down<br />
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done<br />
<br />
# Launch Polybar, using default config location ~/.config/polybar/config<br />
polybar mybar &<br />
<br />
echo "Polybar launched..."<br />
}}<br />
<br />
This script will mean that restarting your WM will also restart Polybar.<br />
<br />
====== bspwm ======<br />
<br />
Если вы используете [[bspwm]], добавьте это в {{ic|bspwmrc}}:<br />
{{bc|<br />
$HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
====== i3 ======<br />
<br />
Если вы используете [[i3]], добавьте это в свой конфигурационный файл:<br />
<br />
{{bc|<br />
exec_always --no-startup-id $HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
== Решение проблем ==<br />
<br />
=== Cannot open shared object file libjsoncpp.so ===<br />
<br />
Попробуйте переустановить как описано [https://github.com/jaagr/polybar/issues/885 здесь].<br />
<br />
Если проблема не решится, попробуйте установить jsoncpp из официальных репозиториев:<br />
<br />
{{bc|pacman -S jsoncpp}}<br />
<br />
== Смотрите также ==<br />
<br />
* [https://github.com/jaagr/polybar/wiki/ Polybar Github Wiki]</div>Rasongamehttps://wiki.archlinux.org/index.php?title=Polybar_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=578392Polybar (Русский)2019-07-30T09:42:23Z<p>Rasongame: Created page with "Category:Eye candy en:Polybar ja:Polybar pl:Polybar [https://github.com/jaagr/polybar polybar] is a fast and easy-to-use tool for creating status bars. It aims..."</p>
<hr />
<div>[[Category:Eye candy]]<br />
[[en:Polybar]]<br />
[[ja:Polybar]]<br />
[[pl:Polybar]]<br />
[https://github.com/jaagr/polybar polybar] is a fast and easy-to-use tool for creating status bars. It aims to be easily customizable, utilising many modules which enable a wide range of (editable) functionality, such as displaying workspaces, the date, or system volume. Polybar is especially useful for [[Window manager]]s that have a limited or non-existent status bar, such as [[awesome]] or [[i3]]. Polybar can also be used on full [[DesktoПереводp environment]]s like [[Plasma]].<br />
<br />
== Установка ==<br />
<br />
[[Установка|Установите]] пакет {{AUR|polybar}}. Версия с последними правками {{AUR|polybar-git}}.<br />
<br />
== Конфигурация ==<br />
Скопируйте пример из {{ic|/usr/share/doc/polybar/config}} в {{ic|$XDG_CONFIG_HOME/polybar/config}}<br />
<br />
==== Running Polybar ====<br />
<br />
Polybar can be run with the following:<br />
<br />
{{bc|<br />
Usage: polybar [OPTION]... BAR<br />
<br />
-h, --help Display this help and exit<br />
-v, --version Display build details and exit<br />
-l, --log&#61;LEVEL Set the logging verbosity (default: WARNING)<br />
LEVEL is one of: error, warning, info, trace<br />
-q, --quiet Be quiet (will override -l)<br />
-c, --config&#61;FILE Path to the configuration file<br />
-r, --reload Reload when the configuration has been modified<br />
-d, --dump&#61;PARAM Print value of PARAM in bar section and exit<br />
-m, --list-monitors Print list of available monitors and exit<br />
-w, --print-wmname Print the generated WM_NAME and exit<br />
-s, --stdout Output data to stdout instead of drawing it to the X window<br />
-p, --png&#61;FILE Save png snapshot to FILE after running for 3 seconds<br />
}}<br />
<br />
However you will probably want to run Polybar with your window manager's bootstrap routine. See [[#Running with WM]]<br />
<br />
==== Sample Config ====<br />
A very basic polybar config may look like this:<br />
{{bc|1=<br />
[bar/mybar]<br />
modules-right = date<br />
<br />
[module/date]<br />
type = internal/date<br />
date = %Y-%m-%d%<br />
}}<br />
<br />
It defines a bar named {{ic|mybar}} with a module called {{ic|date}}.<br />
<br />
By default polybar will also install a sample configuration with many preconfigured modules in {{ic|/usr/share/doc/polybar/config}}<br />
{{Note|The sample config is not designed to work out of the box for everyone, you will need to modify it to match your setup}}<br />
<br />
==== Running with WM ====<br />
<br />
Create an [[executable]] file containing the startup logic, for example {{ic|$HOME/.config/polybar/launch.sh}}:<br />
<br />
{{bc|<br />
#!/bin/bash<br />
<br />
# Terminate already running bar instances<br />
killall -q polybar<br />
<br />
# Wait until the processes have been shut down<br />
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done<br />
<br />
# Launch Polybar, using default config location ~/.config/polybar/config<br />
polybar mybar &<br />
<br />
echo "Polybar launched..."<br />
}}<br />
<br />
This script will mean that restarting your WM will also restart Polybar.<br />
<br />
====== bspwm ======<br />
<br />
If using [[bspwm]], add the following to {{ic|bspwmrc}}:<br />
{{bc|<br />
$HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
====== i3 ======<br />
<br />
If using [[i3]], add the following to your configuration:<br />
<br />
{{bc|<br />
exec_always --no-startup-id $HOME/.config/polybar/launch.sh<br />
}}<br />
<br />
== Troubleshooting ==<br />
<br />
=== Cannot open shared object file libjsoncpp.so ===<br />
<br />
Attempt a reinstall as per [https://github.com/jaagr/polybar/issues/885 this] github issue.<br />
<br />
Failing that, try installing jsoncpp from the official repositories:<br />
<br />
{{bc|pacman -S jsoncpp}}<br />
<br />
== See also ==<br />
<br />
* [https://github.com/jaagr/polybar/wiki/ Polybar Github Wiki]</div>Rasongamehttps://wiki.archlinux.org/index.php?title=Nvidia-xrun_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=573955Nvidia-xrun (Русский)2019-05-25T14:34:40Z<p>Rasongame: /* Установка */</p>
<hr />
<div>[[Category:Graphics]]<br />
[[ja:Nvidia-xrun]]<br />
[[zh-hans:Nvidia-xrun]]<br />
<br />
[https://github.com/Witko/nvidia-xrun Nvidia-xrun] — утилита, запускающая [[Xorg_(Русский)|X сервер]], с дискретной графикой NVIDIA, на ноутбуках с поддержкой NVIDIA Optimus. Это решение предлагает полное использование GPU, а также повышенные совместимость и производительность.<br />
<br />
X сервер работает либо с интегрированным, либо с дискретным графическим процессором, но не с обоими сразу. Для использования другой видеокарты переключитесь на отдельную [[Linux_console_(Русский)#Виртуальная_консоль|виртуальную консоль]] и запустите еще один X сервер.<br />
<br />
== Установка ==<br />
[[Установите]]:<br />
* {{Pkg|nvidia}}<br />
* {{Pkg|bbswitch}}<br />
* {{AUR|nvidia-xrun}}, {{AUR|nvidia-xrun-git}},<br />
** или {{AUR|nvidia-xrun-pm}} если {{ic|bbswitch}} не поддерживает ваше оборудование [https://bbs.archlinux.org/viewtopic.php?id=238389]<br />
* [[Window_manager_(Русский)|Оконный менеджер]], например {{Pkg|openbox}} или {{Pkg|xfwm4}}, потому что запуск приложений напрямую c помощью {{ic|nvidia-xrun}} работает некорректно.<br />
<br />
== Настройка ==<br />
=== Установка корректного BusID ===<br />
<br />
{{Note|Пользователи, которые установили {{ic|nvidia-xrun}} из [[AUR]], могут пропустить этот шаг, потому что идентификатор шины устанавливается автоматически в {{ic|/etc/X11/nvidia-xorg.conf}}.}}<br />
<br />
Найдите {{ic|BusID}} вашего дисплея:<br />
$ lspci | grep -i nvidia | awk '{print $1}'<br />
<br />
Вывод будет похож на '''{{ic|01:00.0}}'''. После создайте скрипт, например {{ic|/etc/X11/nvidia-xorg.conf.d/30-nvidia.conf}}, для установки правильного {{ic|BusID}}:<br />
<br />
{{hc|/etc/X11/nvidia-xorg.conf.d/30-nvidia.conf|<br />
Section "Device"<br />
Identifier "nvidia"<br />
Driver "nvidia"<br />
BusID "PCI:'''1:0:0'''"<br />
EndSection}}<br />
<br />
Также можете изменить настройки NVIDIA, если возникли проблемы:<br />
<br />
{{hc|/etc/X11/nvidia-xorg.conf.d/30-nvidia.conf|<br />
Section "Screen"<br />
Identifier "nvidia"<br />
Device "nvidia"<br />
# Option "AllowEmptyInitialConfiguration" "Yes"<br />
# Option "UseDisplayDevice" "none"<br />
EndSection}}<br />
<br />
=== Автоматически запускать оконный менеджер ===<br />
<br />
Для удобства можете создать файл {{ic|~/.nvidia-xinitrc}} для запуска {{ic|openbox}}:<br />
<br />
if [ $# -gt 0 ]; then<br />
$*<br />
else<br />
openbox-session<br />
# Alternatively, you can also use xfce4:<br />
# xfce4-session<br />
fi<br />
<br />
Тогда не придется указывать приложение, просто выполните команду:<br />
<br />
$ nvidia-xrun<br />
<br />
=== Использование bbswitch для управления картой NVIDIA ===<br />
Когда карта NVIDIA не нужна, для отключения используется {{ic|bbswitch}}. Скрипт {{ic|nvidia-xrun}} автоматически позаботится о запуске оконного менеджера и включения карты NVIDIA. Для этого следует:<br />
<br />
* Загрузить модуль {{ic|bbswitch}} при включении:<br />
# echo 'bbswitch ' > /etc/modules-load.d/bbswitch.conf<br />
<br />
* Отключить модуль {{ic|nvidia}} при включении:<br />
# echo 'options bbswitch load_state=0 unload_state=1' > /etc/modprobe.d/bbswitch.conf <br />
<br />
После перезагрузки видеокарта NVIDIA будет отключена. Чтобы это увидеть, проверьте статус {{ic|bbswitch}}:<br />
<br />
$ cat /proc/acpi/bbswitch <br />
<br />
Для принудительно включения или выключения видеокарты, выполните:<br />
<br />
# tee /proc/acpi/bbswitch <<<ON<br />
# tee /proc/acpi/bbswitch <<<OFF<br />
<br />
Подробнее о bbswitch смотрите в [https://github.com/Bumblebee-Project/bbswitch Bumblebee-Project/bbswitch].<br />
<br />
== Использование ==<br />
<br />
После загрузки войдите в систему с виртуальной консоли и выполните команду {{ic|nvidia-xrun}}.<br />
<br />
== Решение проблем ==<br />
<br />
=== Графический процессор NVIDIA не отключается или устанавливается по умолчанию ===<br />
<br />
Если графический процессор NVIDIA по-прежнему не отключается или устанавливается по умолчанию, то придется занести в черный список модули, приведенные ниже. Создайте этот файл и перезапустите систему:<br />
<br />
{{hc|/usr/lib/modprobe.d/nvidia-xrun.conf|<br />
blacklist nvidia<br />
blacklist nvidia-drm<br />
blacklist nvidia-modeset<br />
blacklist nvidia-uvm<br />
blacklist nouveau<br />
}}<br />
<br />
Убедитесь, что DRM Kernel Mode Setting отключен. Подробнее в [[NVIDIA_(Русский)#DRM_kernel_mode_setting]]</div>Rasongame