poetician

Polybar i3 | Strawberry / Frosrty Flower

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