config.ini 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  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/bar1]
  54. ; Выбор монитора. 'primary' - основной.
  55. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  56. #monitor = ${env:MONITOR:primary}
  57. monitor = HDMI-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/bar2]
  98. ; Выбор монитора. 'primary' - основной.
  99. ; Узнать: 'xrandr -q' (например, 'eDP-1')
  100. #monitor = ${env:MONITOR:primary}
  101. monitor = HDMI-2
  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-wireless bluetooth updates cpu memory filesystem temperature battery powermenu
  135. ; Включить поддержку IPC (для отправки команд в polybar)
  136. enable-ipc = true
  137. ; Системный трей
  138. tray-position = none
  139. wm-restack = bspwm
  140. ; -------------------------------------------------------------------
  141. ; Модули: Левая часть
  142. ; -------------------------------------------------------------------
  143. ; [!] Иконка Arch (как ты и просил)
  144. [module/arch-icon]
  145. type = custom/text
  146. ; Иконка Arch из Nerd Font
  147. content = "  "
  148. content-foreground = ${colors.primary}
  149. ; Действие по клику ЛКМ: открыть меню приложений (rofi)
  150. click-left = rofi -show drun -theme-str 'window {width: 30%;}'
  151. [module/bspwm]
  152. type = internal/bspwm
  153. pin-workspaces = true
  154. enable-click = true
  155. enable-scroll = true
  156. format = <label-state>
  157. ws-icon-0 = 1;%{T4}%{F#F9DE8F}󰬺%{T-}
  158. ws-icon-1 = 2;%{T4}%{F#ff9b93}󰬻%{T-}
  159. ws-icon-2 = 3;%{T4}%{F#95e1d3}󰬼%{T-}
  160. ws-icon-3 = 4;%{T4}%{F#81A1C1}󰬽%{T-}
  161. ws-icon-4 = 5;%{T4}%{F#A3BE8C}󰬾%{T-}
  162. ws-icon-5 = 6;%{T4}%{F#F9DE8F}󰬿%{T-}
  163. ws-icon-6 = 7;%{T4}%{F#ff9b93}󰭀%{T-}
  164. ws-icon-7 = 8;%{T4}%{F#F9DE8F}󰭁%{T-}
  165. ws-icon-8 = 9;%{T4}%{F#ff9b93}󰭂%{T-}
  166. ws-icon-9 = 10;%{T4}%{F#95e1d3}󰿩%{T-}
  167. ;label-focused = %icon%
  168. label-focused = X
  169. label-focused-foreground = ${colors.primary}
  170. label-focused-underline = ${colors.primary}
  171. label-focused-padding = 1
  172. label-occupied = %icon%
  173. label-occupied-foreground = ${colors.foreground-alt}
  174. label-occupied-padding = 1
  175. label-empty = %icon%
  176. label-empty-foreground = ${colors.disabled}
  177. label-empty-padding = 1
  178. label-urgent = %icon%
  179. label-urgent-foreground = ${colors.alert}
  180. label-urgent-padding = 1
  181. ; [Модуль] Заголовок активного окна
  182. [module/xwindow]
  183. type = internal/xwindow
  184. ; Ограничиваем длину
  185. label = %title:0:40:...%
  186. label-foreground = ${colors.foreground-alt}
  187. ; -------------------------------------------------------------------
  188. ; Модули: Центральная часть
  189. ; -------------------------------------------------------------------
  190. [module/date]
  191. type = internal/date
  192. interval = 1.0
  193. ; Формат времени (ЧЧ:ММ)
  194. time = %H:%M
  195. ; Альтернативный формат (появляется при наведении)
  196. time-alt = %A, %d %B %Y
  197. ; Отображение
  198. format = <label>
  199. format-prefix = "  "
  200. ; Иконка календаря
  201. format-prefix-foreground = ${colors.secondary}
  202. label = %time%
  203. ; Действие по клику ЛКМ: показать календарь
  204. click-left = yad --calendar --title="Календарь" --no-buttons --close-on-unfocus &
  205. ; -------------------------------------------------------------------
  206. ; Модули: Правая часть
  207. ; -------------------------------------------------------------------
  208. ; [Модуль] Звук (Pulseaudio)
  209. [module/pulseaudio]
  210. type = internal/pulseaudio
  211. use-ui-max = false ; Не позволять громкости > 100%
  212. ; Формат
  213. format-volume = <ramp-volume> <label-volume>
  214. label-volume = %percentage%%
  215. format-muted = <label-muted>
  216. label-muted =  Muted
  217. label-muted-foreground = ${colors.disabled}
  218. ; Иконки громкости (0%, 33%, 66%, 100%)
  219. ramp-volume-0 = 
  220. ramp-volume-1 = 
  221. ramp-volume-2 = 
  222. ; Действия
  223. click-middle = pactl set-sink-mute @DEFAULT_SINK@ toggle
  224. click-right = pavucontrol &
  225. scroll-up = pulseaudio-ctl up 5
  226. scroll-down = pulseaudio-ctl down 5
  227. ; [Модуль] Сеть (Wi-Fi)
  228. ; [!] Требует настройки
  229. [module/network-wireless]
  230. type = internal/network
  231. ; [!] Замени 'wlan0' на имя своего Wi-Fi интерфейса
  232. ; Узнать: 'ip link'
  233. interface = wlp0s20f0u7
  234. interface-type = wireless
  235. interval = 3.0
  236. ; Подключено
  237. format-connected = <label-connected>
  238. label-connected =  %essid%
  239. label-connected-foreground = ${colors.green}
  240. ; Отключено
  241. format-disconnected = <label-disconnected>
  242. label-disconnected =  (нет сети)
  243. label-disconnected-foreground = ${colors.disabled}
  244. ; [!] Управление сетью (как ты просил)
  245. ; ЛКМ: Открыть 'networkmanager_dmenu' для выбора сети
  246. click-left = networkmanager_dmenu
  247. ; [Модуль] Сеть (Wired)
  248. [module/network-wired]
  249. type = internal/network
  250. ; [!] Замени 'eth0' на имя своего Ethernet интерфейса
  251. ; Узнать: 'ip link'
  252. interface = eno2
  253. interface-type = wired
  254. interval = 3.0
  255. ; Подключено
  256. format-connected = <label-connected>
  257. label-connected =  %local_ip%
  258. label-connected-foreground = ${colors.green}
  259. ; Отключено
  260. format-disconnected = <label-disconnected>
  261. label-disconnected =  (нет сети)
  262. label-disconnected-foreground = ${colors.disabled}
  263. ; [!] Управление сетью (как ты просил)
  264. ; ЛКМ: Открыть 'networkmanager_dmenu' для выбора сети
  265. click-left = networkmanager_dmenu
  266. ; [Модуль] Bluetooth
  267. ; [!] Требует кастомных скриптов (см. ниже)
  268. [module/bluetooth]
  269. type = custom/script
  270. ; Скрипт статуса
  271. exec = ~/.config/polybar/scripts/get_bluetooth_status.sh
  272. interval = 5
  273. tail = true
  274. format = <label>
  275. label = %output%
  276. ; [!] Управление Bluetooth (как ты просил)
  277. ; ЛКМ: Открыть GUI 'blueman-manager'
  278. click-left = blueman-manager &
  279. ; ПКМ: Включить/Выключить Bluetooth
  280. click-right = ~/.config/polybar/scripts/toggle_bluetooth.sh &
  281. ; [Модуль] Проверка обновлений (Arch)
  282. ; [!] Требует 'pacman-contrib' и кастомного скрипта
  283. [module/updates]
  284. type = custom/script
  285. ; Скрипт проверки
  286. exec = ~/.config/polybar/scripts/check-updates.sh
  287. interval = 600 ; Каждые 10 минут
  288. format = <label>
  289. label = %output%
  290. ; Действие
  291. ; ЛКМ: Запустить обновление системы в терминале
  292. ; [!] Замени 'alacritty' на свой терминал (kitty, st, etc.)
  293. click-left = alacritty -e sudo pacman -Sy &
  294. ; [Модуль] CPU
  295. [module/cpu]
  296. type = internal/cpu
  297. interval = 2
  298. format = <label>
  299. format-prefix = "  "
  300. ; Иконка CPU
  301. format-prefix-foreground = ${colors.secondary}
  302. label = %percentage:2%%
  303. ; [Модуль] RAM
  304. [module/memory]
  305. type = internal/memory
  306. interval = 2
  307. format = <label>
  308. format-prefix = "  "
  309. ; Иконка RAM
  310. format-prefix-foreground = ${colors.secondary}
  311. label = %percentage_used:2%%
  312. ; [Модуль] Файловая система ( / )
  313. [module/filesystem]
  314. type = internal/fs
  315. interval = 30
  316. mount-0 = /
  317. format-mounted = <label-mounted>
  318. format-mounted-prefix = "  "
  319. ; Иконка диска
  320. format-mounted-prefix-foreground = ${colors.secondary}
  321. label-mounted = %percentage_used%%
  322. ; [Модуль] Температура (CPU)
  323. [module/temperature]
  324. type = internal/temperature
  325. interval = 3
  326. ; [!] Путь к датчику может отличаться!
  327. ; Проверь: /sys/class/thermal/thermal_zone*
  328. thermal-zone = 0
  329. units = true
  330. format = <label>
  331. format-warn = <label-warn>
  332. format-prefix = "  "
  333. ; Иконка термометра
  334. label = %temperature-c%
  335. label-warn = %temperature-c%
  336. label-warn-foreground = ${colors.alert}
  337. ; [Модуль] Батарея
  338. ; Если у тебя ПК, просто удали 'battery' из 'modules-right'
  339. [module/battery]
  340. type = internal/battery
  341. ; [!] Проверь имя: 'ls /sys/class/power_supply/' (часто BAT0)
  342. battery = BAT0
  343. adapter = AC0
  344. full-at = 99
  345. poll-interval = 5
  346. ; Зарядка
  347. format-charging = <animation-charging> <label-charging>
  348. label-charging = %percentage%%
  349. label-charging-foreground = ${colors.green}
  350. ; Разрядка
  351. format-discharging = <ramp-capacity> <label-discharging>
  352. label-discharging = %percentage%%
  353. ; Полный заряд
  354. format-full = <label-full>
  355. label-full =  100%
  356. label-full-foreground = ${colors.green}
  357. ; Иконки разрядки (0%, 25%, 50%, 75%, 100%)
  358. ramp-capacity-0 = 
  359. ramp-capacity-1 = 
  360. ramp-capacity-2 = 
  361. ramp-capacity-3 = 
  362. ramp-capacity-4 = 
  363. ramp-capacity-0-foreground = ${colors.alert}
  364. ; Анимация зарядки
  365. animation-charging-0 = 
  366. animation-charging-1 = 
  367. animation-charging-2 = 
  368. animation-charging-3 = 
  369. animation-charging-4 = 
  370. animation-charging-framerate = 750
  371. ; [Модуль] Меню выключения (Powermenu)
  372. ; [!] Требует 'rofi' и кастомный скрипт
  373. [module/powermenu]
  374. type = custom/text
  375. ; Иконка выключения
  376. content = 
  377. content-foreground = ${colors.alert}
  378. content-padding = 1
  379. ; ЛКМ: запустить скрипт powermenu
  380. click-left = ~/.config/polybar/scripts/powermenu.sh
  381. ; -------------------------------------------------------------------
  382. ; Прочие настройки
  383. ; -------------------------------------------------------------------
  384. [settings]
  385. screenchange-reload = true
  386. pseudo-transparency = false
  387. ; Нужен композитор (picom) для 'false'
  388. ; ===================================================================
  389. ; Конец конфига
  390. ; ===================================================================