config.ini 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. ; ===================================================================
  2. ; Максимальный конфиг Polybar для Arch Linux (v2)
  3. ; Шрифт: Hack Nerd Font
  4. ; Темы: Arch Blue, Gruvbox
  5. ; Комментарии на русском языке
  6. ;
  7. ; Поместить этот файл в: ~/.config/polybar/config.ini
  8. ; ===================================================================
  9. ; -------------------------------------------------------------------
  10. ; Раздел с цветовыми палитрами
  11. ; -------------------------------------------------------------------
  12. ; [!] Тема Arch (синяя)
  13. [colors-arch]
  14. background = #282A36
  15. background-alt = #3A3C4E
  16. foreground = #F8F8F2
  17. foreground-alt = #BFBFBF
  18. primary = #1793D1 ; Arch Blue
  19. secondary = #5294E2
  20. alert = #FF5555
  21. disabled = #6272A4
  22. green = #50FA7B
  23. ; [!] Тема Gruvbox (темная)
  24. [colors-gruvbox]
  25. background = #282828
  26. background-alt = #3c3836
  27. foreground = #ebdbb2
  28. foreground-alt = #a89984
  29. primary = #458588
  30. secondary = #b16286
  31. alert = #fb4934
  32. disabled = #665c54
  33. green = #b8bb26
  34. ; -------------------------------------------------------------------
  35. ; [!] АКТИВНАЯ ТЕМА [!]
  36. ; Чтобы сменить тему, скопируй сюда значения
  37. ; из [colors-arch] или [colors-gruvbox] выше.
  38. ; Сейчас активна тема [colors-arch].
  39. ; -------------------------------------------------------------------
  40. [colors]
  41. background = #282A36
  42. background-alt = #3A3C4E
  43. foreground = #F8F8F2
  44. foreground-alt = #BFBFBF
  45. primary = #1793D1
  46. secondary = #5294E2
  47. alert = #FF5555
  48. disabled = #6272A4
  49. green = #50FA7B
  50. ; -------------------------------------------------------------------
  51. ; Основные настройки бара
  52. ; -------------------------------------------------------------------
  53. [bar/laptop]
  54. ; Выбор монитора. 'primary' - основной.
  55. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  56. #monitor = ${env:MONITOR:primary}
  57. monitor = eDP-1
  58. ; Геометрия
  59. width = 95%
  60. offset-x = 2.5%
  61. height = 32
  62. radius = 8.0
  63. ; [!] Эта настройка оцентрует бар,
  64. ; так как его ширина теперь меньше 100%
  65. fixed-center = true
  66. ; Расположение (false = вверху)
  67. bottom = false
  68. ; Отступы
  69. padding-left = 1
  70. padding-right = 1
  71. ; Отступы для модулей
  72. module-margin = 1
  73. ; Цвета
  74. background = ${colors.background}
  75. foreground = ${colors.foreground}
  76. ; Шрифты
  77. ; [!] Мы используем 'Hack Nerd Font', как ты и просил.
  78. ; 'font-0' - основной шрифт
  79. ; 'font-1' - шрифт с иконками (Nerd Font)
  80. font-0 = "Hack Nerd Font:style=Regular:size=12;2"
  81. font-1 = "Hack Nerd Font:style=Bold:size=12;2"
  82. ; Для больших иконок
  83. font-2 = "Hack Nerd Font:style=Regular:size=12;3"
  84. ; Для цифр с номерами workspace
  85. font-3 = "Hack Nerd Font:style=Bold:size=18;3"
  86. ; Расположение модулей
  87. separator = |
  88. modules-left = arch-icon bspwm xwindow
  89. modules-center = date
  90. modules-right = pulseaudio network-wired bluetooth updates cpu memory filesystem temperature battery powermenu
  91. ; Включить поддержку IPC (для отправки команд в polybar)
  92. enable-ipc = true
  93. ; Системный трей
  94. tray-position = right
  95. tray-padding = 2
  96. wm-restack = bspwm
  97. [bar/bar1]
  98. ; Выбор монитора. 'primary' - основной.
  99. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  100. #monitor = ${env:MONITOR:primary}
  101. monitor = HDMI-1
  102. ; Геометрия
  103. width = 95%
  104. offset-x = 2.5%
  105. height = 32
  106. radius = 8.0
  107. ; [!] Эта настройка оцентрует бар,
  108. ; так как его ширина теперь меньше 100%
  109. fixed-center = true
  110. ; Расположение (false = вверху)
  111. bottom = false
  112. ; Отступы
  113. padding-left = 1
  114. padding-right = 1
  115. ; Отступы для модулей
  116. module-margin = 1
  117. ; Цвета
  118. background = ${colors.background}
  119. foreground = ${colors.foreground}
  120. ; Шрифты
  121. ; [!] Мы используем 'Hack Nerd Font', как ты и просил.
  122. ; 'font-0' - основной шрифт
  123. ; 'font-1' - шрифт с иконками (Nerd Font)
  124. font-0 = "Hack Nerd Font:style=Regular:size=12;2"
  125. font-1 = "Hack Nerd Font:style=Bold:size=12;2"
  126. ; Для больших иконок
  127. font-2 = "Hack Nerd Font:style=Regular:size=12;3"
  128. ; Для цифр с номерами workspace
  129. font-3 = "Hack Nerd Font:style=Bold:size=18;3"
  130. ; Расположение модулей
  131. separator = |
  132. modules-left = arch-icon bspwm xwindow
  133. modules-center = date
  134. modules-right = pulseaudio network-wired bluetooth updates cpu memory filesystem temperature battery powermenu
  135. ; Включить поддержку IPC (для отправки команд в polybar)
  136. enable-ipc = true
  137. ; Системный трей
  138. tray-position = right
  139. tray-padding = 2
  140. wm-restack = bspwm
  141. [bar/bar2]
  142. ; Выбор монитора. 'primary' - основной.
  143. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  144. #monitor = ${env:MONITOR:primary}
  145. monitor = HDMI-2
  146. ; Геометрия
  147. width = 95%
  148. offset-x = 2.5%
  149. height = 32
  150. radius = 8.0
  151. ; [!] Эта настройка оцентрует бар,
  152. ; так как его ширина теперь меньше 100%
  153. fixed-center = true
  154. ; Расположение (false = вверху)
  155. bottom = false
  156. ; Отступы
  157. padding-left = 1
  158. padding-right = 1
  159. ; Отступы для модулей
  160. module-margin = 1
  161. ; Цвета
  162. background = ${colors.background}
  163. foreground = ${colors.foreground}
  164. ; Шрифты
  165. ; [!] Мы используем 'Hack Nerd Font', как ты и просил.
  166. ; 'font-0' - основной шрифт
  167. ; 'font-1' - шрифт с иконками (Nerd Font)
  168. font-0 = "Hack Nerd Font:style=Regular:size=12;2"
  169. font-1 = "Hack Nerd Font:style=Bold:size=12;2"
  170. ; Для больших иконок
  171. font-2 = "Hack Nerd Font:style=Regular:size=12;3"
  172. ; Для цифр с номерами workspace
  173. font-3 = "Hack Nerd Font:style=Bold:size=18;3"
  174. ; Расположение модулей
  175. separator = |
  176. modules-left = arch-icon bspwm xwindow
  177. modules-center = date
  178. modules-right = pulseaudio network-wireless bluetooth updates cpu memory filesystem temperature battery powermenu
  179. ; Включить поддержку IPC (для отправки команд в polybar)
  180. enable-ipc = true
  181. ; Системный трей
  182. tray-position = none
  183. wm-restack = bspwm
  184. ; -------------------------------------------------------------------
  185. ; Модули: Левая часть
  186. ; -------------------------------------------------------------------
  187. ; [!] Иконка Arch (как ты и просил)
  188. [module/arch-icon]
  189. type = custom/text
  190. ; Иконка Arch из Nerd Font
  191. content = "  "
  192. content-foreground = ${colors.primary}
  193. ; Действие по клику ЛКМ: открыть меню приложений (rofi)
  194. click-left = rofi -show drun -theme-str 'window {width: 30%;}'
  195. [module/bspwm]
  196. type = internal/bspwm
  197. pin-workspaces = true
  198. enable-click = true
  199. enable-scroll = true
  200. format = <label-state>
  201. ws-icon-0 = 1;%{T4}%{F#F9DE8F}󰬺%{T-}
  202. ws-icon-1 = 2;%{T4}%{F#ff9b93}󰬻%{T-}
  203. ws-icon-2 = 3;%{T4}%{F#95e1d3}󰬼%{T-}
  204. ws-icon-3 = 4;%{T4}%{F#81A1C1}󰬽%{T-}
  205. ws-icon-4 = 5;%{T4}%{F#A3BE8C}󰬾%{T-}
  206. ws-icon-5 = 6;%{T4}%{F#F9DE8F}󰬿%{T-}
  207. ws-icon-6 = 7;%{T4}%{F#ff9b93}󰭀%{T-}
  208. ws-icon-7 = 8;%{T4}%{F#F9DE8F}󰭁%{T-}
  209. ws-icon-8 = 9;%{T4}%{F#ff9b93}󰭂%{T-}
  210. ws-icon-9 = 10;%{T4}%{F#95e1d3}󰿩%{T-}
  211. ;label-focused = %icon%
  212. label-focused = X
  213. label-focused-foreground = ${colors.primary}
  214. label-focused-underline = ${colors.primary}
  215. label-focused-padding = 1
  216. label-occupied = %icon%
  217. label-occupied-foreground = ${colors.foreground-alt}
  218. label-occupied-padding = 1
  219. label-empty = %icon%
  220. label-empty-foreground = ${colors.disabled}
  221. label-empty-padding = 1
  222. label-urgent = %icon%
  223. label-urgent-foreground = ${colors.alert}
  224. label-urgent-padding = 1
  225. ; [Модуль] Заголовок активного окна
  226. [module/xwindow]
  227. type = internal/xwindow
  228. ; Ограничиваем длину
  229. label = %title:0:40:...%
  230. label-foreground = ${colors.foreground-alt}
  231. ; -------------------------------------------------------------------
  232. ; Модули: Центральная часть
  233. ; -------------------------------------------------------------------
  234. [module/date]
  235. type = internal/date
  236. interval = 1.0
  237. ; Формат времени (ЧЧ:ММ)
  238. time = %H:%M
  239. ; Альтернативный формат (появляется при наведении)
  240. time-alt = %A, %d %B %Y
  241. ; Отображение
  242. format = <label>
  243. format-prefix = "  "
  244. ; Иконка календаря
  245. format-prefix-foreground = ${colors.secondary}
  246. label = %time%
  247. ; Действие по клику ЛКМ: показать календарь
  248. click-left = yad --calendar --title="Календарь" --no-buttons --close-on-unfocus &
  249. ; -------------------------------------------------------------------
  250. ; Модули: Правая часть
  251. ; -------------------------------------------------------------------
  252. ; [Модуль] Звук (Pulseaudio)
  253. [module/pulseaudio]
  254. type = internal/pulseaudio
  255. use-ui-max = false ; Не позволять громкости > 100%
  256. ; Формат
  257. format-volume = <ramp-volume> <label-volume>
  258. label-volume = %percentage%%
  259. format-muted = <label-muted>
  260. label-muted =  Muted
  261. label-muted-foreground = ${colors.disabled}
  262. ; Иконки громкости (0%, 33%, 66%, 100%)
  263. ramp-volume-0 = 
  264. ramp-volume-1 = 
  265. ramp-volume-2 = 
  266. ; Действия
  267. click-middle = pactl set-sink-mute @DEFAULT_SINK@ toggle
  268. click-right = pavucontrol &
  269. scroll-up = pulseaudio-ctl up 5
  270. scroll-down = pulseaudio-ctl down 5
  271. ; [Модуль] Сеть (Wi-Fi)
  272. ; [!] Требует настройки
  273. [module/network-wireless]
  274. type = internal/network
  275. ; [!] Замени 'wlan0' на имя своего Wi-Fi интерфейса
  276. ; Узнать: 'ip link'
  277. interface = wlp0s20f0u7
  278. interface-type = wireless
  279. interval = 3.0
  280. ; Подключено
  281. format-connected = <label-connected>
  282. label-connected =  %essid%
  283. label-connected-foreground = ${colors.green}
  284. ; Отключено
  285. format-disconnected = <label-disconnected>
  286. label-disconnected =  (нет сети)
  287. label-disconnected-foreground = ${colors.disabled}
  288. ; [!] Управление сетью (как ты просил)
  289. ; ЛКМ: Открыть 'networkmanager_dmenu' для выбора сети
  290. click-left = networkmanager_dmenu
  291. ; [Модуль] Сеть (Wired)
  292. [module/network-wired]
  293. type = internal/network
  294. ; [!] Замени 'eth0' на имя своего Ethernet интерфейса
  295. ; Узнать: 'ip link'
  296. interface = eno2
  297. interface-type = wired
  298. interval = 3.0
  299. ; Подключено
  300. format-connected = <label-connected>
  301. label-connected =  %local_ip%
  302. label-connected-foreground = ${colors.green}
  303. ; Отключено
  304. format-disconnected = <label-disconnected>
  305. label-disconnected =  (нет сети)
  306. label-disconnected-foreground = ${colors.disabled}
  307. ; [!] Управление сетью (как ты просил)
  308. ; ЛКМ: Открыть 'networkmanager_dmenu' для выбора сети
  309. click-left = networkmanager_dmenu
  310. ; [Модуль] Bluetooth
  311. ; [!] Требует кастомных скриптов (см. ниже)
  312. [module/bluetooth]
  313. type = custom/script
  314. ; Скрипт статуса
  315. exec = ~/.config/polybar/scripts/get_bluetooth_status.sh
  316. interval = 5
  317. tail = true
  318. format = <label>
  319. label = %output%
  320. ; [!] Управление Bluetooth (как ты просил)
  321. ; ЛКМ: Открыть GUI 'blueman-manager'
  322. click-left = blueman-manager &
  323. ; ПКМ: Включить/Выключить Bluetooth
  324. click-right = ~/.config/polybar/scripts/toggle_bluetooth.sh &
  325. ; [Модуль] Проверка обновлений (Arch)
  326. ; [!] Требует 'pacman-contrib' и кастомного скрипта
  327. [module/updates]
  328. type = custom/script
  329. ; Скрипт проверки
  330. exec = ~/.config/polybar/scripts/check-updates.sh
  331. interval = 600 ; Каждые 10 минут
  332. format = <label>
  333. label = %output%
  334. ; Действие
  335. ; ЛКМ: Запустить обновление системы в терминале
  336. ; [!] Замени 'alacritty' на свой терминал (kitty, st, etc.)
  337. click-left = alacritty -e sudo pacman -Sy &
  338. ; [Модуль] CPU
  339. [module/cpu]
  340. type = internal/cpu
  341. interval = 2
  342. format = <label>
  343. format-prefix = "  "
  344. ; Иконка CPU
  345. format-prefix-foreground = ${colors.secondary}
  346. label = %percentage:2%%
  347. ; [Модуль] RAM
  348. [module/memory]
  349. type = internal/memory
  350. interval = 2
  351. format = <label>
  352. format-prefix = "  "
  353. ; Иконка RAM
  354. format-prefix-foreground = ${colors.secondary}
  355. label = %percentage_used:2%%
  356. ; [Модуль] Файловая система ( / )
  357. [module/filesystem]
  358. type = internal/fs
  359. interval = 30
  360. mount-0 = /
  361. format-mounted = <label-mounted>
  362. format-mounted-prefix = "  "
  363. ; Иконка диска
  364. format-mounted-prefix-foreground = ${colors.secondary}
  365. label-mounted = %percentage_used%%
  366. ; [Модуль] Температура (CPU)
  367. [module/temperature]
  368. type = internal/temperature
  369. interval = 3
  370. ; [!] Путь к датчику может отличаться!
  371. ; Проверь: /sys/class/thermal/thermal_zone*
  372. thermal-zone = 0
  373. units = true
  374. format = <label>
  375. format-warn = <label-warn>
  376. format-prefix = "  "
  377. ; Иконка термометра
  378. label = %temperature-c%
  379. label-warn = %temperature-c%
  380. label-warn-foreground = ${colors.alert}
  381. ; [Модуль] Батарея
  382. ; Если у тебя ПК, просто удали 'battery' из 'modules-right'
  383. [module/battery]
  384. type = internal/battery
  385. ; [!] Проверь имя: 'ls /sys/class/power_supply/' (часто BAT0)
  386. battery = BAT1
  387. adapter = AC0
  388. full-at = 99
  389. poll-interval = 5
  390. ; Зарядка
  391. format-charging = <animation-charging> <label-charging>
  392. label-charging = %percentage%%
  393. label-charging-foreground = ${colors.green}
  394. ; Разрядка
  395. format-discharging = <ramp-capacity> <label-discharging>
  396. label-discharging = %percentage%%
  397. ; Полный заряд
  398. format-full = <label-full>
  399. label-full =  100%
  400. label-full-foreground = ${colors.green}
  401. ; Иконки разрядки (0%, 25%, 50%, 75%, 100%)
  402. ramp-capacity-0 = 
  403. ramp-capacity-1 = 
  404. ramp-capacity-2 = 
  405. ramp-capacity-3 = 
  406. ramp-capacity-4 = 
  407. ramp-capacity-0-foreground = ${colors.alert}
  408. ; Анимация зарядки
  409. animation-charging-0 = 
  410. animation-charging-1 = 
  411. animation-charging-2 = 
  412. animation-charging-3 = 
  413. animation-charging-4 = 
  414. animation-charging-framerate = 750
  415. ; [Модуль] Меню выключения (Powermenu)
  416. ; [!] Требует 'rofi' и кастомный скрипт
  417. [module/powermenu]
  418. type = custom/text
  419. ; Иконка выключения
  420. content = 
  421. content-foreground = ${colors.alert}
  422. content-padding = 1
  423. ; ЛКМ: запустить скрипт powermenu
  424. click-left = ~/.config/polybar/scripts/powermenu.sh
  425. ; -------------------------------------------------------------------
  426. ; Прочие настройки
  427. ; -------------------------------------------------------------------
  428. [settings]
  429. screenchange-reload = true
  430. pseudo-transparency = false
  431. ; Нужен композитор (picom) для 'false'
  432. ; ===================================================================
  433. ; Конец конфига
  434. ; ===================================================================