config.ini 17 KB

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