poetician

Polybar i3 | Shed Corner | Fr

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