Advertisement
poetician

Polybar i3 | Corn and Stable | Fr

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