poetician

Polybar i3 | Vertical Alignment

Jan 4th, 2022 (edited)
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.14 KB | None | 0 0
  1. ;=====================================================
  2. ;
  3. ; To learn more about how to configure Polybar
  4. ; go to https://github.com/jaagr/polybar
  5. ;
  6. ; The README contains alot of information
  7. ; Themes : https://github.com/jaagr/dots/tree/master/.local/etc/themer/themes
  8. ; https://github.com/jaagr/polybar/wiki/
  9. ; https://github.com/jaagr/polybar/wiki/Configuration
  10. ; https://github.com/jaagr/polybar/wiki/Formatting
  11. ;=====================================================
  12. ; https://gitlab.com/Poetician
  13. ;=====================================================
  14.  
  15. ;include-file = $HOME/.config/polybar/modules/*
  16.  
  17. [global/wm]
  18. ;https://github.com/jaagr/polybar/wiki/Configuration#global-wm-settings
  19. margin-top = 0
  20. margin-bottom = 0
  21.  
  22. [settings]
  23. ;https://github.com/jaagr/polybar/wiki/Configuration#application-settings
  24. throttle-output = 5
  25. throttle-output-for = 10
  26. screenchange-reload = true
  27. compositing-background = over
  28. compositing-foreground = over
  29. compositing-overline = over
  30. compositing-underline = over
  31. compositing-border = over
  32.  
  33. [colors]
  34. ; Define fallback values used by all module formats
  35. ;format-prefix-foreground = #bbc2b2
  36. format-foreground = #2f294b
  37. format-foregroundb = #485a80
  38. format-background = #80384558
  39. ;format-underline = #BF8602
  40. ;format-overline = #662D00
  41. format-spacing =
  42. format-padding =
  43. format-margin =
  44. format-offset =
  45.  
  46. ; 0004 Leopard theme ============
  47. ;background = #99E2B856
  48. ;foreground = #e7ebde
  49. ;alert = #ffa500
  50. ;primary = #99fdb739
  51. ;secondary =#1afdb739
  52. ;volume-min = #a3be8c
  53. ;volume-med = #ebcb8b
  54. ;volume-max = #bf616a
  55.  
  56. ; Plum Gold Theme
  57. ;background = #420524
  58. ;foreground = #ffdd00
  59.  
  60. ; Garden From The West Theme
  61. ;background = #7b6033
  62. ;foreground = #f7ecc6
  63.  
  64. ; Apart Theme
  65. ;background = #7b6033
  66. ;foreground = #dfdbcf
  67.  
  68. ; Wood Grain Theme
  69. ;backgroundt = #384558
  70. ;backgroundb = #d86218
  71. ;foreground = #ca8f87
  72. ;foregroundb = #485a80
  73.  
  74. ; Any Pencil Portrait Theme More Opaque
  75. ;background = #e0e0bc
  76. ;foreground =
  77.  
  78. ################################################################################
  79. ############ MAINBAR-I3 ############
  80. ################################################################################
  81.  
  82. [bar/mainbar-i3]
  83.  
  84. monitor = ${env:MONITOR}
  85. ;monitor-fallback = HDMI1
  86. monitor-strict = false
  87. override-redirect = false
  88. bottom = false
  89. fixed-center = true
  90. width = 1560
  91. height = 26
  92. ;offset-x = 4
  93. ;offset-y = 4
  94. locale = fr_CA.UTF-8
  95.  
  96. ;background = ${colors.background}
  97. foreground = #2f294b
  98.  
  99. ; Background gradient (vertical steps)
  100. ; background-[0-9]+ = #aarrggbb
  101. background-0 = #ffe0e0bc
  102. background-1 = #f2e0e0bc
  103. background-2 = #e6e0e0bc
  104. background-3 = #d9e0e0bc
  105. background-4 = #cce0e0bc
  106. background-5 = #bfe0e0bc
  107. background-6 = #b3e0e0bc
  108. background-7 = #a6e0e0bc
  109. background-8 = #99e0e0bc
  110. background-9 = #8ce0e0bc
  111.  
  112. radius-top = 30
  113. radius-bottom = 9
  114.  
  115. line-size = 4
  116. line-color = #f8b317
  117.  
  118. ;border-size = 6
  119. border-left-size = 360
  120. border-right-size = 0
  121. border-top-size = 4
  122. border-bottom-size = 0
  123. border-color = #00000000
  124.  
  125. padding-left = 6
  126. padding-right = 6
  127.  
  128. module-margin-left = 1
  129. module-margin-right = 1
  130.  
  131. font-0 = "Bauhaus:size=13;2"
  132. font-1 = "FontAwesome:size=11;2"
  133. font-2 = "FantasqueSansMono:size=11;2"
  134. font-3 = "FantasqueSansMono:size=12;2"
  135.  
  136. modules-left = i3
  137. modules-center =
  138. modules-right = cpu2 memory2 filesystem date
  139.  
  140. ;separator = |
  141.  
  142. dim-value = 0.3
  143.  
  144. #i3: Make the bar appear below windows
  145. ;wm-restack = i3
  146. ;override-redirect = true
  147.  
  148. ; Enable support for inter-process messaging
  149. ; See the Messaging wiki page for more details.
  150. enable-ipc = true
  151.  
  152. ; Fallback click handlers that will be called if
  153. ; there's no matching module handler found.
  154. click-left = jgmenu_run
  155. click-middle =
  156. click-right = rofi -show drun
  157. scroll-up = i3wm-wsnext
  158. scroll-down = i3wm-wsprev
  159. double-click-left =
  160. double-click-middle =
  161. double-click-right =
  162.  
  163. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  164. ; Possible values are:
  165. ; - default : The default pointer as before, can also be an empty string (default)
  166. ; - pointer : Typically in the form of a hand
  167. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  168. cursor-click =
  169. cursor-scroll =
  170.  
  171. ################################################################################
  172. ############ MAINBAR-I3-EXTRA ############
  173. ################################################################################
  174.  
  175. [bar/mainbar-i3-extra]
  176.  
  177. monitor = ${env:MONITOR}
  178. ;monitor-fallback = HDMI1
  179. monitor-strict = false
  180. override-redirect = false
  181. bottom = true
  182. fixed-center = true
  183. width = 920
  184. height = 26
  185. ;offset-x = 1%
  186. ;offset-y = 1%
  187.  
  188. background = ${colors.background}
  189. foreground = #2f294b
  190.  
  191. ; Background gradient (vertical steps)
  192. ; background-[0-9]+ = #aarrggbb
  193. background-0 = #f2e0e0bc
  194. background-1 = #e6e0e0bc
  195. background-2 = #d9e0e0bc
  196. background-3 = #cce0e0bc
  197. background-4 = #bfe0e0bc
  198. background-5 = #b3e0e0bc
  199. background-6 = #99e0e0bc
  200. background-7 = #80e0e0bc
  201. background-8 = #66e0e0bc
  202. background-9 = #4de0e0bc
  203.  
  204. radius-top = 12
  205. radius-bottom =14
  206.  
  207. line-size = 0
  208. line-color = #f8b317
  209.  
  210. ;border-size = 0
  211. border-left-size = 500
  212. ;border-right-size = 25
  213. border-top-size = 0
  214. border-bottom-size = 4
  215. border-color = #00000000
  216.  
  217. padding-left = 6
  218. padding-right = 6
  219.  
  220. module-margin-left = 1
  221. module-margin-right = 0
  222.  
  223. font-0 = "Bauhaus:size=13;3"
  224. font-1 = "FontAwesome:size=11;3"
  225. font-2 = "FantasqueSansMono:size=11;3"
  226. font-3 = "FantasqueSansMono:size=12;3"
  227.  
  228. modules-left = changebackground wall uptime
  229. modules-center =
  230. modules-right = networkspeedup networkspeeddown
  231.  
  232. ;separator = |
  233.  
  234. dim-value = 0.3
  235.  
  236. tray-detached = true
  237. tray-offset-x = 600
  238. tray-offset-y = 2
  239. tray-padding = 2
  240. tray-maxsize = 20
  241. tray-scale = 1.0
  242. tray-position = center
  243. tray-background = #b3575e4c
  244.  
  245. #i3: Make the bar appear below windows
  246. ;wm-restack = i3
  247. ;override-redirect = true
  248.  
  249. ; Enable support for inter-process messaging
  250. ; See the Messaging wiki page for more details.
  251. enable-ipc = true
  252.  
  253. ; Fallback click handlers that will be called if
  254. ; there's no matching module handler found.
  255. click-left = jgmenu_run
  256. click-middle =
  257. click-right = rofi -show drun
  258. scroll-up = i3wm-wsnext
  259. scroll-down = i3wm-wsprev
  260. double-click-left =
  261. double-click-middle =
  262. double-click-right =
  263.  
  264. ; Requires polybar to be built with xcursor support (xcb-util-cursor)
  265. ; Possible values are:
  266. ; - default : The default pointer as before, can also be an empty string (default)
  267. ; - pointer : Typically in the form of a hand
  268. ; - ns-resize : Up and down arrows, can be used to indicate scrolling
  269. cursor-click =
  270. cursor-scroll =
  271.  
  272. ################################################################################
  273. ############ MODULE I3 ############
  274. ################################################################################
  275.  
  276. [module/i3]
  277. ;https://github.com/jaagr/polybar/wiki/Module:-i3
  278. type = internal/i3
  279.  
  280. ; Only show workspaces defined on the same output as the bar
  281. ;
  282. ; Useful if you want to show monitor specific workspaces
  283. ; on different bars
  284. ;
  285. ; Default: false
  286. pin-workspaces = true
  287.  
  288. ; This will split the workspace name on ':'
  289. ; Default: false
  290. strip-wsnumbers = false
  291.  
  292. ; Sort the workspaces by index instead of the default
  293. ; sorting that groups the workspaces by output
  294. ; Default: false
  295. index-sort = false
  296.  
  297. ; Create click handler used to focus workspace
  298. ; Default: true
  299. enable-click = true
  300.  
  301. ; Create scroll handlers used to cycle workspaces
  302. ; Default: true
  303. enable-scroll = true
  304.  
  305. ; Wrap around when reaching the first/last workspace
  306. ; Default: true
  307. wrapping-scroll = false
  308.  
  309. ; Set the scroll cycle direction
  310. ; Default: true
  311. reverse-scroll = false
  312.  
  313. ; Use fuzzy (partial) matching on labels when assigning
  314. ; icons to workspaces
  315. ; Example: code;♚ will apply the icon to all workspaces
  316. ; containing 'code' in the label
  317. ; Default: false
  318. fuzzy-match = false
  319.  
  320. ;extra icons to choose from
  321. ;http://fontawesome.io/cheatsheet/
  322. ;                 
  323.  
  324. ws-icon-0 = 1;
  325. ws-icon-1 = 2;
  326. ws-icon-2 = 3;
  327. ws-icon-3 = 4;
  328. ws-icon-4 = 5;
  329. ws-icon-5 = 6;
  330. ws-icon-6 = 7;
  331. ws-icon-7 = 8;
  332. ws-icon-8 = 9;
  333. ws-icon-9 = 10;
  334. ws-icon-10 = 11;
  335. ws-icon-11 = 12;
  336. ws-icon-12 = 13;
  337. ws-icon-13 = 14;
  338. ws-icon-14 = 15;
  339. ws-icon-default = ""
  340.  
  341. ; Available tags:
  342. ; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
  343. ; <label-mode> (default)
  344. format = <label-state> <label-mode>
  345.  
  346. label-mode = %mode%
  347. label-mode-padding = 1
  348. label-mode-foreground = #000000
  349. label-mode-background = #FFBB00
  350.  
  351. ; Available tokens:
  352. ; %name%
  353. ; %icon%
  354. ; %index%
  355. ; %output%
  356. ; Default: %icon% %name%
  357. ; focused = Active workspace on focused monitor
  358. label-focused = %icon% %name%
  359. label-focused-background = #00000000
  360. label-focused-foreground = ${colors.foreground}
  361. label-focused-underline = #b3f8b317
  362. label-focused-padding = 1
  363.  
  364. ; Available tokens:
  365. ; %name%
  366. ; %icon%
  367. ; %index%
  368. ; Default: %icon% %name%
  369. ; unfocused = Inactive workspace on any monitor
  370. label-unfocused = %icon% %name%
  371. label-unfocused-padding = 1
  372. label-unfocused-background = #00000000
  373. label-unfocused-foreground = ${colors.foreground}
  374. label-unfocused-underline = #f8b317
  375.  
  376. ; visible = Active workspace on unfocused monitor
  377. label-visible = %icon% %name%
  378. label-visible-background = ${self.label-focused-background}
  379. label-visible-underline = ${self.label-focused-underline}
  380. label-visible-padding = 1
  381.  
  382. ; Available tokens:
  383. ; %name%
  384. ; %icon%
  385. ; %index%
  386. ; Default: %icon% %name%
  387. ; urgent = Workspace with urgency hint set
  388. label-urgent = %icon% %name%
  389. label-urgent-background = ${self.label-focused-background}
  390. label-urgent-foreground = #db104e
  391. label-urgent-padding = 1
  392.  
  393. format-foreground = ${colors.foreground}
  394. format-background = #00000000
  395.  
  396. ################################################################################
  397. ################################################################################
  398. ############ MODULES A-Z ############
  399. ################################################################################
  400.  
  401. [module/arch-updates]
  402. type = custom/script
  403. exec = ~/.config/polybar/scripts/check-arch-updates.sh
  404. interval = 1000
  405. label = Arch: %output%
  406. format-foreground = ${colors.foreground}
  407. format-background = #00000000
  408. format-prefix = "  "
  409. format-prefix-foreground = #394349
  410. ;format-underline = #FFBB00
  411.  
  412. [module/aur-updates]
  413. type = custom/script
  414. exec = ~/.config/polybar/scripts/check-aur-updates.sh
  415. interval = 1000
  416. label = Aur: %output%
  417. format-foreground = ${colors.foreground}
  418. format-background = #00000000
  419. format-prefix = "  "
  420. format-prefix-foreground = #394349
  421. ;format-underline = #FFBB00
  422.  
  423. ################################################################################
  424.  
  425. [module/backlight-acpi]
  426. inherit = module/xbacklight
  427. type = internal/backlight
  428. card = intel_backlight
  429. format-foreground = ${colors.foreground}
  430. format-background = #00000000
  431. format-prefix-foreground = #7D49B6
  432. format-prefix-underline = #7D49B6
  433. ;format-underline = $(colors.format-underline)
  434. ################################################################################
  435.  
  436. [module/backlight]
  437. ;https://github.com/jaagr/polybar/wiki/Module:-backlight
  438.  
  439. type = internal/backlight
  440.  
  441. ; Use the following command to list available cards:
  442. ; $ ls -1 /sys/class/backlight/
  443. card = intel_backlight
  444.  
  445. ; Available tags:
  446. ; <label> (default)
  447. ; <ramp>
  448. ; <bar>
  449. format = <label>
  450. format-foreground = ${colors.foreground}
  451. format-background = #00000000
  452.  
  453. ; Available tokens:
  454. ; %percentage% (default)
  455. label = %percentage%%
  456.  
  457. ; Only applies if <ramp> is used
  458. ramp-0 = 🌕
  459. ramp-1 = 🌔
  460. ramp-2 = 🌓
  461. ramp-3 = 🌒
  462. ramp-4 = 🌑
  463.  
  464. ; Only applies if <bar> is used
  465. bar-width = 10
  466. bar-indicator = |
  467. bar-fill = ─
  468. bar-empty = ─
  469.  
  470. ################################################################################
  471.  
  472. [module/battery]
  473. ;https://github.com/jaagr/polybar/wiki/Module:-battery
  474. type = internal/battery
  475. battery = BAT0
  476. adapter = AC0
  477. full-at = 100
  478.  
  479. format-charging = <animation-charging> <label-charging>
  480. label-charging =  %percentage%%
  481. format-charging-foreground = ${colors.foreground}
  482. format-charging-background = #00000000
  483. format-charging-underline = #a3c725
  484.  
  485. format-discharging = <ramp-capacity> <label-discharging>
  486. label-discharging =  %percentage%%
  487. format-discharging-underline = #c7ae25
  488. format-discharging-foreground = ${colors.foreground}
  489. format-discharging-background = #00000000
  490.  
  491. format-full-prefix = " "
  492. format-full-prefix-foreground = #a3c725
  493. format-full-underline = #a3c725
  494. format-full-foreground = ${colors.foreground}
  495. format-full-background = #00000000
  496.  
  497. ramp-capacity-0 = 
  498. ramp-capacity-1 = 
  499. ramp-capacity-2 = 
  500. ramp-capacity-3 = 
  501. ramp-capacity-4 = 
  502. ramp-capacity-foreground = #c7ae25
  503.  
  504. animation-charging-0 = 
  505. animation-charging-1 = 
  506. animation-charging-2 = 
  507. animation-charging-3 = 
  508. animation-charging-4 = 
  509. animation-charging-foreground = #a3c725
  510. animation-charging-framerate = 750
  511.  
  512. ################################################################################
  513.  
  514. [module/changebackground]
  515. type = custom/text
  516. ;content = 
  517. content = CB
  518. content-padding = 1%
  519. content-background = ${color.background}
  520. content-foreground = ${color.foreground}
  521. click-left = exec feh --randomize --bg-fill /home/poeticien/Images/GimpGmic/*
  522.  
  523. ################################################################################
  524.  
  525. [module/cpu1]
  526. ;https://github.com/jaagr/polybar/wiki/Module:-cpu
  527. type = internal/cpu
  528. ; Seconds to sleep between updates
  529. ; Default: 1
  530. interval = 1
  531. format-foreground = ${colors.foreground}
  532. format-background = #00000000
  533. ;   
  534. format-prefix = " "
  535. format-prefix-foreground = #394349
  536. format-underline = $(colors.format-underline)
  537.  
  538. ; Available tags:
  539. ; <label> (default)
  540. ; <bar-load>
  541. ; <ramp-load>
  542. ; <ramp-coreload>
  543. format = <label> <ramp-coreload>
  544.  
  545. format-padding = 2
  546.  
  547. ; Available tokens:
  548. ; %percentage% (default) - total cpu load
  549. ; %percentage-cores% - load percentage for each core
  550. ; %percentage-core[1-9]% - load percentage for specific core
  551. label-font = 3
  552. label = Cpu %percentage:3%%
  553. ramp-coreload-0 = ▁
  554. ramp-coreload-0-font = 3
  555. ramp-coreload-0-foreground = #aaff77
  556. ramp-coreload-1 = ▂
  557. ramp-coreload-1-font = 3
  558. ramp-coreload-1-foreground = #aaff77
  559. ramp-coreload-2 = ▃
  560. ramp-coreload-2-font = 3
  561. ramp-coreload-2-foreground = #aaff77
  562. ramp-coreload-3 = ▄
  563. ramp-coreload-3-font = 3
  564. ramp-coreload-3-foreground = #aaff77
  565. ramp-coreload-4 = ▅
  566. ramp-coreload-4-font = 3
  567. ramp-coreload-4-foreground = #fba922
  568. ramp-coreload-5 = ▆
  569. ramp-coreload-5-font = 3
  570. ramp-coreload-5-foreground = #fba922
  571. ramp-coreload-6 = ▇
  572. ramp-coreload-6-font = 3
  573. ramp-coreload-6-foreground = #ff5555
  574. ramp-coreload-7 = █
  575. ramp-coreload-7-font = 3
  576. ramp-coreload-7-foreground = #ff5555
  577.  
  578. ################################################################################
  579.  
  580. [module/cpu2]
  581. ;https://github.com/jaagr/polybar/wiki/Module:-cpu
  582. type = internal/cpu
  583. ; Seconds to sleep between updates
  584. ; Default: 1
  585. interval = 1
  586. format-foreground = ${colors.foreground}
  587. format-background = #00000000
  588. format-prefix = "  "
  589. format-prefix-foreground = $(colors.foregroundb)
  590. format-underline = $(colors.format-underline)
  591.  
  592. label-font = 1
  593.  
  594. ; Available tags:
  595. ; <label> (default)
  596. ; <bar-load>
  597. ; <ramp-load>
  598. ; <ramp-coreload>
  599. format = <label>
  600.  
  601. format-padding = 2
  602.  
  603. ; Available tokens:
  604. ; %percentage% (default) - total cpu load
  605. ; %percentage-cores% - load percentage for each core
  606. ; %percentage-core[1-9]% - load percentage for specific core
  607. label = CPU %percentage:3%%
  608.  
  609. ################################################################################
  610.  
  611. [module/date]
  612. ;https://github.com/jaagr/polybar/wiki/Module:-date
  613. type = internal/date
  614. ; Seconds to sleep between updates
  615. interval = 5
  616. ; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
  617. ; NOTE: if you want to use syntax tags here you need to use %%{...}
  618. ;date = " %c "
  619. date = " %A, %B %d, %Y "
  620. date-alt = " %d-%m-%Y"
  621. time = " l'heure est: %H:%M "
  622. time-alt = %H:%M
  623. format-prefix = "  "
  624. format-prefix-foreground = #2f294b
  625. format-underline =
  626. format-foreground = ${colors.foreground}
  627. format-background = #00000000
  628. label = %date% %time%
  629.  
  630. #################################################################
  631.  
  632. [module/discord]
  633. type = custom/script
  634. exec = echo " Discord "
  635. ;exec = echo " "
  636. interval = 1
  637. tail = true
  638. format-foreground = ${colors.foreground}
  639. format-background = $#00000000
  640. format-prefix-foreground = #394349
  641. format-underline = $(colors.format-underline)
  642. click-left = discord &
  643. click-right = killall Discord && killall Discord
  644. format-prefix = ""
  645.  
  646. #################################################################
  647.  
  648. [module/ewmh]
  649. type = internal/xworkspaces
  650.  
  651. pin-workspaces = true
  652. enable-click = true
  653. enable-scroll = true
  654. reverse-scroll = true
  655.  
  656. icon-0 = 1;
  657. icon-1 = 2;
  658. icon-2 = 3;
  659. icon-3 = 4;
  660. icon-4 = 5;
  661. icon-5 = 6;
  662. icon-6 = 7;
  663. icon-7 = 8;
  664. icon-8 = 9;
  665. format = <label-state>
  666. label-monitor = %name%
  667.  
  668. label-active = %name%
  669. label-active-foreground = ${colors.foreground}
  670. label-active-background = #00000000
  671. label-active-underline = #f7e768
  672. label-active-padding = 2
  673.  
  674. label-occupied = %name%
  675. label-occupied-background = ${colors.background}
  676. label-occupied-padding = 2
  677.  
  678. label-urgent = %name%
  679. label-urgent-foreground = ${colors.foreground}
  680. label-urgent-background = ${colors.alert}
  681. label-urgent-underline = ${colors.alert}
  682. label-urgent-padding = 2
  683.  
  684. label-empty = %name%
  685. label-empty-foreground = ${colors.foreground}
  686. label-empty-padding = 2
  687. format-foreground = ${colors.foreground}
  688. format-background = #00000000
  689.  
  690. ################################################################################
  691.  
  692. [module/filesystem]
  693. ;https://github.com/jaagr/polybar/wiki/Module:-filesystem
  694. type = internal/fs
  695.  
  696. ; Mountpoints to display
  697. mount-0 = /
  698. ;mount-1 = /home
  699. ;mount-2 = /var
  700.  
  701. ; Seconds to sleep between updates
  702. ; Default: 30
  703. interval = 30
  704.  
  705. ; Display fixed precision values
  706. ; Default: false
  707. fixed-values = false
  708.  
  709. ; Spacing between entries
  710. ; Default: 2
  711. spacing = 4
  712.  
  713. ; Available tags:
  714. ; <label-mounted> (default)
  715. ; <bar-free>
  716. ; <bar-used>
  717. ; <ramp-capacity>
  718. format-mounted = <label-mounted>
  719. format-mounted-foreground = ${colors.foreground}
  720. format-mounted-background = #00000000
  721. format-mounted-underline = $(colors.format-underline)
  722.  
  723. ; Available tokens:
  724. ; %mountpoint%
  725. ; %type%
  726. ; %fsname%
  727. ; %percentage_free%
  728. ; %percentage_used%
  729. ; %total%
  730. ; %free%
  731. ; %used%
  732. ; Default: %mountpoint% %percentage_free%%
  733. label-mounted = %mountpoint% : %used% used of %total%
  734.  
  735. ; Available tokens:
  736. ; %mountpoint%
  737. ; Default: %mountpoint% is not mounted
  738. label-unmounted = %mountpoint% not mounted
  739. format-unmounted-foreground = #697bcf
  740. format-unmounted-background = #00000000
  741. ;format-unmounted-underline = ${colors.alert}
  742.  
  743. ################################################################################
  744.  
  745. [module/jgmenu]
  746. type = custom/script
  747. interval = 120
  748. exec = echo "ArcoLinux"
  749. click-left = "jgmenu_run >/dev/null 2>&1 &"
  750. format-foreground = ${colors.foreground}
  751. format-background = #00000000
  752.  
  753. ################################################################################
  754.  
  755. [module/kernel]
  756. type = custom/script
  757. exec = uname -r
  758. tail = false
  759. interval = 1024
  760.  
  761. format-foreground = ${colors.foreground}
  762. format-background = #00000000
  763. format-prefix = "  "
  764. format-prefix-foreground = #2f294b
  765. format-underline = $(colors.format-underline)
  766.  
  767. ################################################################################
  768.  
  769. [module/load-average]
  770. type = custom/script
  771. exec = uptime | grep -ohe 'load average[s:][: ].*' | awk '{ print $3" "$4" "$5"," }' | sed 's/,//g'
  772. interval = 100
  773.  
  774. ;HOW TO SET IT MINIMAL 10 CHARACTERS - HIDDEN BEHIND SYSTEM ICONS
  775. ;label = %output%
  776. label = %output:10%
  777.  
  778. format-foreground = ${colors.foreground}
  779. format-background = #00000000
  780. format-prefix = "  "
  781. ;format-prefix-foreground = #394349
  782. format-underline = $(colors.format-underline)
  783.  
  784. ################################################################################
  785.  
  786. [module/memory1]
  787. ;https://github.com/jaagr/polybar/wiki/Module:-memory
  788. type = internal/memory
  789. interval = 1
  790. ; Available tokens:
  791. ; %percentage_used% (default)
  792. ; %percentage_free%
  793. ; %gb_used%
  794. ; %gb_free%
  795. ; %gb_total%
  796. ; %mb_used%
  797. ; %mb_free%
  798. ; %mb_total%
  799. label = %percentage_used%%
  800. bar-used-indicator =
  801. bar-used-width = 10
  802. bar-used-foreground-0 = #3384d0
  803. bar-used-fill = 
  804. bar-used-empty = 
  805. bar-used-empty-foreground = #ffffff
  806.  
  807. format = <label> <bar-used>
  808. format-prefix = "  "
  809. ;format-prefix-foreground = #394349
  810. format-underline = $(colors.format-underline)
  811. format-foreground = ${colors.foreground}
  812. format-background = #00000000
  813.  
  814. ################################################################################
  815.  
  816. [module/memory2]
  817. ;https://github.com/jaagr/polybar/wiki/Module:-memory
  818. type = internal/memory
  819. interval = 1
  820. ; Available tokens:
  821. ; %percentage_used% (default)
  822. ; %percentage_free%
  823. ; %gb_used%
  824. ; %gb_free%
  825. ; %gb_total%
  826. ; %mb_used%
  827. ; %mb_free%
  828. ; %mb_total%
  829. label = %percentage_used%%
  830.  
  831. format = Mem <label>
  832. format-prefix = "  "
  833. format-prefix-foreground = #2f294b
  834. format-underline = $(colors.format-underline)
  835. format-foreground = ${colors.foreground}
  836. format-background = #00000000
  837.  
  838. ################################################################################
  839.  
  840. [module/memory3]
  841. ;https://github.com/jaagr/polybar/wiki/Module:-memory
  842. type = internal/memory
  843. interval = 1
  844. ; Available tokens:
  845. ; %percentage_used% (default)
  846. ; %percentage_free%
  847. ; %gb_used%
  848. ; %gb_free%
  849. ; %gb_total%
  850. ; %mb_used%
  851. ; %mb_free%
  852. ; %mb_total%
  853. label = %gb_used%/%gb_free%
  854.  
  855. format = Mem <label>
  856. format-prefix = "  "
  857. ;format-prefix-foreground = #394349
  858. format-underline = $(colors.format-underline)
  859. format-foreground = ${colors.foreground}
  860. format-background = #00000000
  861.  
  862.  
  863. ################################################################################
  864.  
  865. [module/mpd]
  866. ;https://github.com/jaagr/polybar/wiki/Module:-mpd
  867. type = internal/mpd
  868. ;format-online = "<label-song> <icon-prev> <icon-stop> <toggle> <icon-next>"
  869. format-online = "<label-song> <bar-progress>"
  870. ;format-online = "<label-song> <bar-progress> <icon-prev> <icon-stop> <toggle> <icon-next>"
  871. icon-prev = 
  872. icon-stop = 
  873. icon-play = 
  874. icon-pause = 
  875. icon-next = 
  876. label-song-maxlen = 40
  877. label-song-ellipsis = true
  878. bar-progress-width = 10
  879. bar-progress-indicator = 
  880. bar-progress-fill = 
  881. bar-progress-empty = 
  882. bar-progress-fill-foreground = #ff0
  883. bar-progress-fill-background = #00000000
  884. bar-progress-indicator-foreground = ${colors.foreground}
  885. format-online-foreground = ${colors.foreground}
  886. format-online-background = #00000000
  887. ################################################################################
  888.  
  889. [module/networkspeedup]
  890. ;https://github.com/jaagr/polybar/wiki/Module:-network
  891. type = internal/network
  892. interface = enp6s0
  893. label-connected = "%upspeed:7%"
  894. format-connected = <label-connected>
  895. format-connected-prefix = ""
  896. format-connected-prefix-foreground = #2C2616
  897. format-connected-foreground = #2f294b
  898. format-connected-background = #00000000
  899. format-connected-underline = $(colors.format-underline)
  900.  
  901. ################################################################################
  902.  
  903. [module/networkspeeddown]
  904. ;https://github.com/jaagr/polybar/wiki/Module:-network
  905. type = internal/network
  906. interface = enp6s0
  907. ;interface = enp4s0
  908. ; Available tokens:
  909. ; %percentage% (default)
  910. label = %percentage:2%%
  911. label-connected = "%downspeed:7%"
  912. format-connected = <label-connected>
  913. format-connected-prefix = ""
  914. format-connected-prefix-foreground = #2C2616
  915. format-connected-foreground = #2f294b
  916. format-connected-background = #00000000
  917. format-connected-underline = $(colors.format-underline)
  918.  
  919. ################################################################################
  920.  
  921. [module/pacman-updates]
  922. type = custom/script
  923. ;exec = pacman -Qu | wc -l
  924. exec = checkupdates | wc -l
  925. interval = 1000
  926. label = Repo: %output%
  927. format-foreground = ${colors.foreground}
  928. format-background = #00000000
  929. format-prefix = "  "
  930. ;format-prefix-foreground = #394349
  931. format-underline = $(colors.format-underline)
  932.  
  933. ################################################################################
  934.  
  935. [module/pamac-manager]
  936. type = custom/script
  937. exec = pamac checkupdates -q | wc -l
  938. interval = 1000
  939. label = Pamac : %output%
  940. tail = true
  941. format-foreground = ${colors.foreground}
  942. format-background = #00000000
  943. ;format-prefix-foreground = #394349
  944. format-underline = $(colors.format-underline)
  945. click-right = pamac-manager &
  946. click-left = pamac-manager &
  947. format-prefix = " "
  948.  
  949. ################################################################################
  950.  
  951. [module/pavolume]
  952. type = custom/script
  953. tail = true
  954. label = %output%
  955. exec = ~/.config/polybar/scripts/pavolume.sh --listen
  956. click-right = exec pavucontrol
  957. click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
  958. scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
  959. scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
  960. format-underline = $(colors.format-underline)
  961. format-foreground = ${colors.foreground}
  962. format-background = #00000000
  963.  
  964. ################################################################################
  965.  
  966. [module/polywins]
  967. type = custom/script
  968. exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null
  969. format = <label>
  970. label = %output%
  971. label-padding = 1
  972. tail = true
  973.  
  974. ################################################################################
  975.  
  976. [module/pub-ip]
  977. ;https://linuxconfig.org/polybar-a-better-wm-panel-for-your-linux-system
  978. type = custom/script
  979. exec = ~/.config/polybar/scripts/pub-ip.sh
  980. interval = 100
  981. format-foreground = ${colors.foreground}
  982. format-background = #00000000
  983. ;format-underline = #e7ebde
  984. label = %output%
  985. format-prefix = "  "
  986. ;format-prefix-foreground = #394349
  987.  
  988. ################################################################################
  989.  
  990. [module/release]
  991. type = custom/script
  992. exec = (lsb_release -d | awk {'print $2'} ;echo " "; lsb_release -r | awk {'print $2'}) | tr -d '\n'
  993. interval = 6000
  994.  
  995. format-foreground = ${colors.foreground}
  996. format-background = #00000000
  997. format-prefix = "  "
  998. ;format-prefix-foreground = #394349
  999. format-underline = $(colors.format-underline)
  1000.  
  1001. ################################################################################
  1002.  
  1003. [module/sep]
  1004. ; alternative separator
  1005. type = custom/text
  1006. content = 
  1007. content-foreground = ${colors.foreground}
  1008. content-background = #00000000
  1009. format-foreground = ${colors.foreground}
  1010. format-background = #00000000
  1011.  
  1012. ################################################################################
  1013.  
  1014. [module/temperature1]
  1015. ;https://github.com/jaagr/polybar/wiki/Module:-temperature
  1016. type = internal/temperature
  1017. ; Thermal zone to use
  1018. ; To list all the zone types, run
  1019. ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
  1020. ; Default: 0
  1021. thermal-zone = 0
  1022.  
  1023. ; Full path of temperature sysfs path
  1024. ; Use `sensors` to find preferred temperature source, then run
  1025. ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
  1026. ; to find path to desired file
  1027. ; Default reverts to thermal zone setting
  1028. hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
  1029.  
  1030. warn-temperature = 70
  1031. format = <ramp> <label>
  1032. format-foreground = ${colors.foreground}
  1033. format-background = #00000000
  1034. format-underline = $(colors.format-underline)
  1035. format-warn = <ramp> <label-warn>
  1036. format-warn-underline = #c7254f
  1037. label = %temperature%
  1038. label-warn =  %temperature%
  1039. label-warn-foreground = #c7254f
  1040.  
  1041. ramp-0 = 
  1042. ramp-1 = 
  1043. ramp-2 = 
  1044. ramp-3 = 
  1045. ramp-4 = 
  1046. ramp-foreground =${colors.foreground}
  1047.  
  1048. ################################################################################
  1049.  
  1050. [module/temperature2]
  1051. type = custom/script
  1052. exec = ~/.config/polybar/scripts/tempcores.sh
  1053. interval = 2
  1054. format-padding = 1
  1055. format-foreground = ${colors.foreground}
  1056. format-background = #00000000
  1057. format-underline = $(colors.format-underline)
  1058. ;format-prefix-foreground = #394349
  1059. label =  %output:0:150:%
  1060.  
  1061. ################################################################################
  1062.  
  1063. [module/uptime]
  1064. ;https://github.com/jaagr/polybar/wiki/User-contributed-modules#uptime
  1065. type = custom/script
  1066. exec = uptime | awk -F, '{sub(".*up ",x,$1);print $1}'
  1067. interval = 100
  1068. label = Uptime : %output%
  1069.  
  1070. format-foreground = ${colors.foreground}
  1071. format-background = #00000000
  1072. format-prefix = "  "
  1073. format-prefix-foreground = #2f294b
  1074. format-underline = $(colors.format-underline)
  1075.  
  1076. ################################################################################
  1077.  
  1078. [module/variety]
  1079. type = custom/script
  1080. exec = echo " Variety"
  1081. ;exec = echo " "
  1082. interval = 1
  1083. tail = true
  1084. format-foreground = ${colors.foreground}
  1085. format-background = #00000000
  1086. format-prefix = ""
  1087. format-prefix-foreground = #394349
  1088. format-underline = $(colors.format-underline)
  1089. click-right = variety --preferences
  1090. click-left = variety --selector
  1091.  
  1092. ################################################################################
  1093.  
  1094. [module/volume]
  1095. ;https://github.com/jaagr/polybar/wiki/Module:-volume
  1096. type = internal/volume
  1097. format-volume = "<label-volume> <bar-volume>"
  1098.  
  1099. label-volume = " "
  1100. label-volume-foreground = #40ad4b
  1101. label-muted = muted
  1102.  
  1103. bar-volume-width = 10
  1104. bar-volume-foreground-0 = #40ad4b
  1105. bar-volume-foreground-1 = #40ad4b
  1106. bar-volume-foreground-2 = #40ad4b
  1107. bar-volume-foreground-3 = #40ad4b
  1108. bar-volume-foreground-4 = #40ad4b
  1109. bar-volume-foreground-5 = #40ad4b
  1110. bar-volume-foreground-6 = #40ad4b
  1111. bar-volume-gradient = false
  1112. bar-volume-indicator = 
  1113. bar-volume-indicator-font = 2
  1114. bar-volume-fill = 
  1115. bar-volume-fill-font = 2
  1116. bar-volume-empty = 
  1117. bar-volume-empty-font = 2
  1118. bar-volume-empty-foreground = ${colors.foreground}
  1119. format-volume-foreground = ${colors.foreground}
  1120. format-volume-background = #00000000
  1121. format-muted-prefix = "  "
  1122. format-muted-prefix-foreground = "#ff0000"
  1123. format-muted-foreground = ${colors.foreground}
  1124. format-muted-background = #00000000
  1125.  
  1126. ##########################################################################################################################################
  1127.  
  1128. [module/wall]
  1129. type = custom/text
  1130. content = PW
  1131. content-padding = 1%
  1132. content-background = ${color.background}
  1133. content-foreground = ${color.foreground}
  1134. click-left = ~/.config/i3/scripts/wal.sh
  1135. ;format-underline = #3EC13F
  1136. format-foreground = ${color.foreground}
  1137. format-background = ${color.background}
  1138.  
  1139. ################################################################################
  1140.  
  1141. [module/weather]
  1142. type = custom/script
  1143. interval = 10
  1144. format = <label>
  1145. format-prefix = " "
  1146. ;format-prefix-foreground = #394349
  1147. format-underline = $(colors.format-underline)
  1148. format-foreground = ${colors.foreground}
  1149. format-background = #00000000
  1150. exec = python -u ~/.config/polybar/scripts/weather.py
  1151. tail = true
  1152.  
  1153. #################################################################################
  1154.  
  1155. [module/wired-network]
  1156. ;https://github.com/jaagr/polybar/wiki/Module:-network
  1157. type = internal/network
  1158. interface = enp6s0
  1159. interval = 3.0
  1160.  
  1161. ; Available tokens:
  1162. ; %ifname% [wireless+wired]
  1163. ; %local_ip% [wireless+wired]
  1164. ; %essid% [wireless]
  1165. ; %signal% [wireless]
  1166. ; %upspeed% [wireless+wired]
  1167. ; %downspeed% [wireless+wired]
  1168. ; %linkspeed% [wired]
  1169. ; Default: %ifname% %local_ip%
  1170. label-connected = %ifname%
  1171. label-disconnected = %ifname% disconnected
  1172.  
  1173. format-connected-foreground = ${colors.foreground}
  1174. format-connected-background = #00000000
  1175. format-connected-underline = #99E2B856
  1176. format-connected-prefix = " "
  1177. ;format-connected-prefix-foreground = #394349
  1178. format-connected-prefix-background = #00000000
  1179.  
  1180. format-disconnected = <label-disconnected>
  1181. format-disconnected-underline = ${colors.alert}
  1182. label-disconnected-foreground = ${colors.foreground}
  1183.  
  1184. ################################################################################
  1185.  
  1186. [module/wireless-network]
  1187. ;https://github.com/jaagr/polybar/wiki/Module:-network
  1188. type = internal/network
  1189. interface = wlp3s0
  1190. interval = 3.0
  1191. label-connected = %essid%
  1192.  
  1193. format-connected = <label-connected>
  1194. ;format-connected = <ramp-signal> <label-connected>
  1195. format-connected-foreground = ${colors.foreground}
  1196. format-connected-background = #00000000
  1197. format-connected-prefix = "  "
  1198. format-connected-prefix-foreground = #7e52c6
  1199. format-connected-prefix-background = #00000000
  1200. format-connected-underline = #7e52c6
  1201.  
  1202. label-disconnected = %ifname% disconnected
  1203. label-disconnected-foreground = ${colors.alert}
  1204. label-disconnected-background = #00000000
  1205.  
  1206. format-disconnected = <label-disconnected>
  1207. format-disconnected-foreground = ${colors.alert}
  1208. format-disconnected-background = #00000000
  1209. format-disconnected-prefix = "  "
  1210. format-disconnected-prefix-foreground = ${colors.alert}
  1211. format-disconnected-prefix-background = #00000000
  1212. format-disconnected-underline =${colors.alert}
  1213.  
  1214. ramp-signal-0 = ▁
  1215. ramp-signal-1 = ▂
  1216. ramp-signal-2 = ▃
  1217. ramp-signal-3 = ▄
  1218. ramp-signal-4 = ▅
  1219. ramp-signal-5 = ▆
  1220. ramp-signal-6 = ▇
  1221. ramp-signal-7 = █
  1222. ramp-signal-foreground = #7e52c6
  1223.  
  1224. ################################################################################
  1225.  
  1226. [module/xbacklight]
  1227. ;https://github.com/jaagr/polybar/wiki/Module:-xbacklight
  1228. type = internal/xbacklight
  1229. format = <label> <bar>
  1230. format-prefix = "  "
  1231. format-prefix-foreground = ${colors.foreground}
  1232. format-prefix-background = #00000000
  1233. format-prefix-underline = #9f78e1
  1234. format-underline = #9f78e1
  1235. label = %percentage%%
  1236. bar-width = 10
  1237. bar-indicator = 
  1238. bar-indicator-foreground = #fff
  1239. bar-indicator-font = 2
  1240. bar-fill = 
  1241. bar-fill-font = 2
  1242. bar-fill-foreground = #9f78e1
  1243. bar-empty = 
  1244. bar-empty-font = 2
  1245. bar-empty-foreground = #fff
  1246. format-foreground = ${colors.foreground}
  1247. format-background = #00000000
  1248.  
  1249. ################################################################################
  1250.  
  1251. [module/xkeyboard]
  1252. ;https://github.com/jaagr/polybar/wiki/Module:-xkeyboard
  1253. type = internal/xkeyboard
  1254. blacklist-0 = num lock
  1255.  
  1256. format-prefix = " "
  1257. format-prefix-foreground = ${colors.foreground}
  1258. format-prefix-background = #00000000
  1259. format-prefix-underline = #3ecfb2
  1260. format-foreground = ${colors.foreground}
  1261. format-background = #00000000
  1262.  
  1263. label-layout = %layout%
  1264. label-layout-underline = #3ecfb2
  1265. label-indicator-padding = 2
  1266. label-indicator-margin = 1
  1267. label-indicator-background = #00000000
  1268. label-indicator-underline = ${colors.foreground}
  1269.  
  1270. ################################################################################
  1271.  
  1272. [module/xwindow]
  1273. ;https://github.com/jaagr/polybar/wiki/Module:-xwindow
  1274. type = internal/xwindow
  1275.  
  1276. ; Available tokens:
  1277. ; %title%
  1278. ; Default: %title%
  1279. label = %title%
  1280. label-maxlen = 50
  1281.  
  1282. format-foreground = ${colors.foreground}
  1283. format-background = #00000000
  1284.  
  1285. ###############################################################################
  1286.  
Add Comment
Please, Sign In to add comment