config.ini 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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/laptop_external]
  98. ; Выбор монитора. 'primary' - основной.
  99. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  100. #monitor = ${env:MONITOR:primary}
  101. monitor = HDMI-1-0
  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 = network-wireless
  135. ; Включить поддержку IPC (для отправки команд в polybar)
  136. enable-ipc = true
  137. ; Системный трей
  138. tray-position = right
  139. tray-padding = 2
  140. wm-restack = bspwm
  141. [bar/bar1]
  142. ; Выбор монитора. 'primary' - основной.
  143. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  144. #monitor = ${env:MONITOR:primary}
  145. monitor = HDMI-1
  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-wired bluetooth updates cpu memory filesystem temperature battery powermenu
  179. ; Включить поддержку IPC (для отправки команд в polybar)
  180. enable-ipc = true
  181. ; Системный трей
  182. tray-position = right
  183. tray-padding = 2
  184. wm-restack = bspwm
  185. [bar/bar2]
  186. ; Выбор монитора. 'primary' - основной.
  187. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  188. #monitor = ${env:MONITOR:primary}
  189. monitor = HDMI-2
  190. ; Геометрия
  191. width = 95%
  192. offset-x = 2.5%
  193. height = 32
  194. radius = 8.0
  195. ; [!] Эта настройка оцентрует бар,
  196. ; так как его ширина теперь меньше 100%
  197. fixed-center = true
  198. ; Расположение (false = вверху)
  199. bottom = false
  200. ; Отступы
  201. padding-left = 1
  202. padding-right = 1
  203. ; Отступы для модулей
  204. module-margin = 1
  205. ; Цвета
  206. background = ${colors.background}
  207. foreground = ${colors.foreground}
  208. ; Шрифты
  209. ; [!] Мы используем 'Hack Nerd Font', как ты и просил.
  210. ; 'font-0' - основной шрифт
  211. ; 'font-1' - шрифт с иконками (Nerd Font)
  212. font-0 = "Hack Nerd Font:style=Regular:size=12;2"
  213. font-1 = "Hack Nerd Font:style=Bold:size=12;2"
  214. ; Для больших иконок
  215. font-2 = "Hack Nerd Font:style=Regular:size=12;3"
  216. ; Для цифр с номерами workspace
  217. font-3 = "Hack Nerd Font:style=Bold:size=18;3"
  218. ; Расположение модулей
  219. separator = |
  220. modules-left = arch-icon bspwm xwindow
  221. modules-center = date
  222. modules-right = pulseaudio network-wireless bluetooth updates cpu memory filesystem temperature battery powermenu
  223. ; Включить поддержку IPC (для отправки команд в polybar)
  224. enable-ipc = true
  225. ; Системный трей
  226. tray-position = none
  227. wm-restack = bspwm
  228. ; -------------------------------------------------------------------
  229. ; Модули: Левая часть
  230. ; -------------------------------------------------------------------
  231. ; [!] Иконка Arch (как ты и просил)
  232. [module/arch-icon]
  233. type = custom/text
  234. ; Иконка Arch из Nerd Font
  235. content = "  "
  236. content-foreground = ${colors.primary}
  237. ; Действие по клику ЛКМ: открыть меню приложений (rofi)
  238. click-left = rofi -show drun -theme-str 'window {width: 30%;}'
  239. [module/bspwm]
  240. type = internal/bspwm
  241. pin-workspaces = true
  242. enable-click = true
  243. enable-scroll = true
  244. format = <label-state>
  245. ws-icon-0 = 1;%{T4}%{F#F9DE8F}󰬺%{T-}
  246. ws-icon-1 = 2;%{T4}%{F#ff9b93}󰬻%{T-}
  247. ws-icon-2 = 3;%{T4}%{F#95e1d3}󰬼%{T-}
  248. ws-icon-3 = 4;%{T4}%{F#81A1C1}󰬽%{T-}
  249. ws-icon-4 = 5;%{T4}%{F#A3BE8C}󰬾%{T-}
  250. ws-icon-5 = 6;%{T4}%{F#F9DE8F}󰬿%{T-}
  251. ws-icon-6 = 7;%{T4}%{F#ff9b93}󰭀%{T-}
  252. ws-icon-7 = 8;%{T4}%{F#F9DE8F}󰭁%{T-}
  253. ws-icon-8 = 9;%{T4}%{F#ff9b93}󰭂%{T-}
  254. ws-icon-9 = 10;%{T4}%{F#95e1d3}󰿩%{T-}
  255. ;label-focused = %icon%
  256. label-focused = X
  257. label-focused-foreground = ${colors.primary}
  258. label-focused-underline = ${colors.primary}
  259. label-focused-padding = 1
  260. label-occupied = %icon%
  261. label-occupied-foreground = ${colors.foreground-alt}
  262. label-occupied-padding = 1
  263. label-empty = %icon%
  264. label-empty-foreground = ${colors.disabled}
  265. label-empty-padding = 1
  266. label-urgent = %icon%
  267. label-urgent-foreground = ${colors.alert}
  268. label-urgent-padding = 1
  269. ; [Модуль] Заголовок активного окна
  270. [module/xwindow]
  271. type = internal/xwindow
  272. ; Ограничиваем длину
  273. label = %title:0:40:...%
  274. label-foreground = ${colors.foreground-alt}
  275. ; -------------------------------------------------------------------
  276. ; Модули: Центральная часть
  277. ; -------------------------------------------------------------------
  278. [module/date]
  279. type = internal/date
  280. interval = 1.0
  281. ; Формат времени (ЧЧ:ММ)
  282. time = %H:%M
  283. ; Альтернативный формат (появляется при наведении)
  284. time-alt = %A, %d %B %Y
  285. ; Отображение
  286. format = <label>
  287. format-prefix = "  "
  288. ; Иконка календаря
  289. format-prefix-foreground = ${colors.secondary}
  290. label = %time%
  291. ; Действие по клику ЛКМ: показать календарь
  292. click-left = yad --calendar --title="Календарь" --no-buttons --close-on-unfocus &
  293. ; -------------------------------------------------------------------
  294. ; Модули: Правая часть
  295. ; -------------------------------------------------------------------
  296. ; [Модуль] Звук (Pulseaudio)
  297. [module/pulseaudio]
  298. type = internal/pulseaudio
  299. use-ui-max = false ; Не позволять громкости > 100%
  300. ; Формат
  301. format-volume = <ramp-volume> <label-volume>
  302. label-volume = %percentage%%
  303. format-muted = <label-muted>
  304. label-muted =  Muted
  305. label-muted-foreground = ${colors.disabled}
  306. ; Иконки громкости (0%, 33%, 66%, 100%)
  307. ramp-volume-0 = 
  308. ramp-volume-1 = 
  309. ramp-volume-2 = 
  310. ; Действия
  311. click-middle = pactl set-sink-mute @DEFAULT_SINK@ toggle
  312. click-right = pavucontrol &
  313. scroll-up = pulseaudio-ctl up 5
  314. scroll-down = pulseaudio-ctl down 5
  315. ; [Модуль] Сеть (Wi-Fi)
  316. ; [!] Требует настройки
  317. [module/network-wireless]
  318. type = internal/network
  319. ; [!] Замени 'wlan0' на имя своего Wi-Fi интерфейса
  320. ; Узнать: 'ip link'
  321. interface = wlan0:
  322. interface-type = wireless
  323. interval = 3.0
  324. ; Подключено
  325. format-connected = <label-connected>
  326. label-connected =  %essid%
  327. label-connected-foreground = ${colors.green}
  328. ; Отключено
  329. format-disconnected = <label-disconnected>
  330. label-disconnected =  (нет сети)
  331. label-disconnected-foreground = ${colors.disabled}
  332. ; [!] Управление сетью (как ты просил)
  333. ; ЛКМ: Открыть 'networkmanager_dmenu' для выбора сети
  334. click-right = alacritty -e nmtui &
  335. click-left = networkmanager_dmenu &
  336. ; [Модуль] Сеть (Wired)
  337. [module/network-wired]
  338. type = internal/network
  339. ; [!] Замени 'eth0' на имя своего Ethernet интерфейса
  340. ; Узнать: 'ip link'
  341. interface = eno2
  342. interface-type = wired
  343. interval = 3.0
  344. ; Подключено
  345. format-connected = <label-connected>
  346. label-connected =  %local_ip%
  347. label-connected-foreground = ${colors.green}
  348. ; Отключено
  349. format-disconnected = <label-disconnected>
  350. label-disconnected =  (нет сети)
  351. label-disconnected-foreground = ${colors.disabled}
  352. ; [!] Управление сетью (как ты просил)
  353. ; ЛКМ: Открыть 'networkmanager_dmenu' для выбора сети
  354. click-left = networkmanager_dmenu
  355. ; [Модуль] Bluetooth
  356. ; [!] Требует кастомных скриптов (см. ниже)
  357. [module/bluetooth]
  358. type = custom/script
  359. ; Скрипт статуса
  360. exec = ~/.config/polybar/scripts/get_bluetooth_status.sh
  361. interval = 5
  362. tail = true
  363. format = <label>
  364. label = %output%
  365. ; [!] Управление Bluetooth (как ты просил)
  366. ; ЛКМ: Открыть GUI 'blueman-manager'
  367. click-left = blueman-manager &
  368. ; ПКМ: Включить/Выключить Bluetooth
  369. click-right = ~/.config/polybar/scripts/toggle_bluetooth.sh &
  370. ; [Модуль] Проверка обновлений (Arch)
  371. ; [!] Требует 'pacman-contrib' и кастомного скрипта
  372. [module/updates]
  373. type = custom/script
  374. ; Скрипт проверки
  375. exec = ~/.config/polybar/scripts/check-updates.sh
  376. interval = 600 ; Каждые 10 минут
  377. format = <label>
  378. label = %output%
  379. ; Действие
  380. ; ЛКМ: Запустить обновление системы в терминале
  381. ; [!] Замени 'alacritty' на свой терминал (kitty, st, etc.)
  382. click-left = alacritty -e sudo pacman -Syu &
  383. ; [Модуль] CPU
  384. [module/cpu]
  385. type = internal/cpu
  386. interval = 2
  387. format = <label>
  388. format-prefix = "  "
  389. ; Иконка CPU
  390. format-prefix-foreground = ${colors.secondary}
  391. label = %percentage:2%%
  392. ; [Модуль] RAM
  393. [module/memory]
  394. type = internal/memory
  395. interval = 2
  396. format = <label>
  397. format-prefix = "  "
  398. ; Иконка RAM
  399. format-prefix-foreground = ${colors.secondary}
  400. label = %percentage_used:2%%
  401. ; [Модуль] Файловая система ( / )
  402. [module/filesystem]
  403. type = internal/fs
  404. interval = 30
  405. mount-0 = /
  406. format-mounted = <label-mounted>
  407. format-mounted-prefix = "  "
  408. ; Иконка диска
  409. format-mounted-prefix-foreground = ${colors.secondary}
  410. label-mounted = %percentage_used%%
  411. ; [Модуль] Температура (CPU)
  412. [module/temperature]
  413. type = internal/temperature
  414. interval = 3
  415. ; [!] Путь к датчику может отличаться!
  416. ; Проверь: /sys/class/thermal/thermal_zone*
  417. thermal-zone = 0
  418. units = true
  419. format = <label>
  420. format-warn = <label-warn>
  421. format-prefix = "  "
  422. ; Иконка термометра
  423. label = %temperature-c%
  424. label-warn = %temperature-c%
  425. label-warn-foreground = ${colors.alert}
  426. ; [Модуль] Батарея
  427. ; Если у тебя ПК, просто удали 'battery' из 'modules-right'
  428. [module/battery]
  429. type = internal/battery
  430. ; [!] Проверь имя: 'ls /sys/class/power_supply/' (часто BAT0)
  431. battery = BAT1
  432. adapter = AC0
  433. full-at = 99
  434. poll-interval = 5
  435. ; Зарядка
  436. format-charging = <animation-charging> <label-charging>
  437. label-charging = %percentage%%
  438. label-charging-foreground = ${colors.green}
  439. ; Разрядка
  440. format-discharging = <ramp-capacity> <label-discharging>
  441. label-discharging = %percentage%%
  442. ; Полный заряд
  443. format-full = <label-full>
  444. label-full =  100%
  445. label-full-foreground = ${colors.green}
  446. ; Иконки разрядки (0%, 25%, 50%, 75%, 100%)
  447. ramp-capacity-0 = 
  448. ramp-capacity-1 = 
  449. ramp-capacity-2 = 
  450. ramp-capacity-3 = 
  451. ramp-capacity-4 = 
  452. ramp-capacity-0-foreground = ${colors.alert}
  453. ; Анимация зарядки
  454. animation-charging-0 = 
  455. animation-charging-1 = 
  456. animation-charging-2 = 
  457. animation-charging-3 = 
  458. animation-charging-4 = 
  459. animation-charging-framerate = 750
  460. ; [Модуль] Меню выключения (Powermenu)
  461. ; [!] Требует 'rofi' и кастомный скрипт
  462. [module/powermenu]
  463. type = custom/text
  464. ; Иконка выключения
  465. content = 
  466. content-foreground = ${colors.foreground}
  467. content-padding = 1
  468. ; ЛКМ: запустить скрипт powermenu
  469. click-left = ~/.config/polybar/scripts/powermenu.sh
  470. ; -------------------------------------------------------------------
  471. ; Прочие настройки
  472. ; -------------------------------------------------------------------
  473. [settings]
  474. screenchange-reload = true
  475. pseudo-transparency = false
  476. ; Нужен композитор (picom) для 'false'
  477. ; ===================================================================
  478. ; Конец конфига
  479. ; ===================================================================