poetician

Polybar i3 | Apart Theme

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