poetician

Polybar for Bspwm (only)

May 6th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.57 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. throttle-input-for = 30
  24. screenchange-reload = true
  25. compositing-background = over
  26. compositing-foreground = over
  27. compositing-overline = over
  28. compositing-underline = over
  29. compositing-border = over
  30.  
  31. ; Define fallback values used by all module formats
  32. format-foreground = #ffbf00
  33. format-background = #1a000000
  34. format-underline = #ffbf00
  35. format-overline =
  36. format-spacing =
  37. format-padding =
  38. format-margin =
  39. format-offset =
  40.  
  41. [colors]
  42. ; Nord theme ============
  43. ;background = #1a000000
  44. ;foreground = #ffbf00
  45. ;alert = #d08770
  46. ;volume-min = #a3be8c
  47. ;volume-med = #ebcb8b
  48. ;volume-max = #bf616a
  49. ; =======================
  50.  
  51. ; Poetician theme ==========
  52. background = #40000000
  53. foreground = #ffbf00
  54. alert = #cb410b
  55. volume-min = #8446d4
  56. volume-med = #4c2882
  57. volume-max = #7c0a02
  58. ; =======================
  59.  
  60. ; INTRCPTR theme ============
  61. ;background = ${xrdb:color0:#222}
  62. ;background = #aa000000
  63. ;background-alt = #444
  64. ;foreground = ${xrdb:color7:#222}
  65. ;foreground = #fff
  66. ;foreground-alt = #555
  67. ;primary = #ffb52a
  68. ;secondary = #e60053
  69. ;alert = #bd2c40
  70.  
  71. ################################################################################
  72. ################################################################################
  73. ############ MAINBAR-BSPWM ############
  74. ################################################################################
  75. ################################################################################
  76.  
  77. [bar/mainbar-bspwm]
  78. monitor = ${env:MONITOR}
  79. ;monitor-fallback = VGA-1
  80. width = 80%
  81. height = 28
  82. offset-x = 10%
  83. offset-y = 0.4%
  84. radius = 15
  85. fixed-center = false
  86. bottom = false
  87. separator = 
  88.  
  89. background = ${colors.background}
  90. foreground = ${colors.foreground}
  91.  
  92. line-size = 2
  93. line-color = #ffbf00
  94.  
  95. dim-value = 0.5
  96.  
  97. wm-restack = bspwm
  98. override-redirect = true
  99.  
  100. ; Enable support for inter-process messaging
  101. ; See the Messaging wiki page for more details.
  102. enable-ipc = true
  103.  
  104. ;border-size = 4
  105. ;border-left-size = 0
  106. ;border-right-size = 25
  107. ;border-top-size = 2
  108. ;border-bottom-size = 25
  109. ;border-color = #1a4b0082
  110.  
  111. padding-left = 2
  112. padding-right = 4
  113.  
  114. module-margin-left = 2
  115. module-margin-right = 2
  116.  
  117. ;https://github.com/jaagr/polybar/wiki/Fonts
  118. font-0 = "Bahaus:size=11;0"
  119. font-1 = "FontAwesome:size=13;0"
  120. font-2 = "Bahaus:size=11;0"
  121. font-3 = "Noto Sans Mono:size=10;0"
  122.  
  123. modules-left = bspwm pacman-updates pamac-manager
  124. modules-center =
  125. modules-right = volume memory1 cpu1 date
  126.  
  127. tray-detached = false
  128. tray-offset-x = -20
  129. tray-offset-y = 0
  130. tray-padding = 0
  131. tray-maxsize = 18
  132. tray-scale = 1.0
  133. tray-position = center
  134. tray-background = ${colors.background}
  135.  
  136. scroll-up = bspwm-desknext
  137. scroll-down = bspwm-deskprev
  138.  
  139. ################################################################################
  140. ################################################################################
  141. ############ MAINBAR-BSPWM-EXTRA ############
  142. ################################################################################
  143. ################################################################################
  144.  
  145. [bar/mainbar-bspwm-extra]
  146. monitor = ${env:MONITOR}
  147. ;monitor-fallback = HDMI1
  148. width = 100%
  149. height = 30
  150. ;offset-x = 1%
  151. ;offset-y = 1%
  152. radius = 0.0
  153. fixed-center = true
  154. bottom = true
  155. separator = |
  156.  
  157. background = ${colors.background}
  158. foreground = ${colors.foreground}
  159.  
  160. line-size = 2
  161. line-color = #f00
  162.  
  163. wm-restack = bspwm
  164. override-redirect = true
  165.  
  166. ; Enable support for inter-process messaging
  167. ; See the Messaging wiki page for more details.
  168. enable-ipc = true
  169.  
  170. border-size = 0
  171. ;border-left-size = 0
  172. ;border-right-size = 25
  173. ;border-top-size = 0
  174. ;border-bottom-size = 25
  175. border-color = #00000000
  176.  
  177. padding-left = 0
  178. padding-right = 1
  179.  
  180. module-margin-left = 3
  181. module-margin-right = 3
  182.  
  183. ;https://github.com/jaagr/polybar/wiki/Fonts
  184. font-0 = "Noto Sans:size=10;0"
  185. font-1 = "FontAwesome:size=13;0"
  186. font-2 = "Noto Sans:size=10;0"
  187. font-3 = "Noto Sans Mono:size=10;0"
  188.  
  189. modules-left = load-average
  190. modules-center = networkspeeddown networkspeedup
  191. modules-right = filesystem
  192.  
  193. ;tray-detached = false
  194. ;tray-offset-x = 0
  195. ;tray-offset-y = 0
  196. ;tray-padding = 2
  197. ;tray-maxsize = 20
  198. ;tray-scale = 1.0
  199. ;tray-position = right
  200. ;tray-background = ${colors.background}
  201.  
  202. scroll-up = bspwm-desknext
  203. scroll-down = bspwm-deskprev
  204.  
  205. ################################################################################
  206. ################################################################################
  207. ############ MODULE BSPWM ############
  208. ################################################################################
  209. ################################################################################
  210.  
  211. [module/bspwm]
  212. type = internal/bspwm
  213.  
  214. enable-click = true
  215. enable-scroll = true
  216. reverse-scroll = true
  217. pin-workspaces = true
  218.  
  219. ws-icon-0 = 1;
  220. ws-icon-1 = 2;
  221. ws-icon-2 = 3;
  222. ws-icon-3 = 4;
  223. ws-icon-4 = 5;
  224. ws-icon-5 = 6;
  225. ws-icon-6 = 7;
  226. ws-icon-7 = 8;
  227. ws-icon-8 = 9;
  228. ws-icon-9 = 10;
  229.  
  230. format = <label-state> <label-mode>
  231.  
  232. label-focused = %icon%
  233. label-focused-background = ${colors.background}
  234. label-focused-underline= ${colors.background}
  235. label-focused-padding = 2
  236. label-focused-foreground = ${colors.foreground}
  237.  
  238. label-occupied = %icon%
  239. label-occupied-padding = 2
  240. label-occupied-background = ${colors.background}
  241.  
  242. label-urgent = %icon%
  243. label-urgent-padding = 2
  244.  
  245. label-empty = %icon%
  246. label-empty-foreground = ${colors.foreground}
  247. label-empty-padding = 2
  248. label-empty-background = ${colors.background}
  249. label-monocle = "  "
  250. label-monocle-foreground = ${colors.foreground}
  251. label-tiled = "  "
  252. label-tiled-foreground = ${colors.foreground}
  253. label-fullscreen = "  "
  254. label-fullscreen-foreground = ${colors.foreground}
  255. label-floating = "  "
  256. label-floating-foreground = ${colors.foreground}
  257. label-pseudotiled = "  "
  258. label-pseudotiled-foreground = ${colors.foreground}
  259. label-locked = "  "
  260. label-locked-foreground = ${colors.foreground}
  261. label-sticky = "  "
  262. label-sticky-foreground = ${colors.foreground}
  263. label-private = "  "
  264. label-private-foreground = ${colors.foreground}
  265.  
  266. ; Separator in between workspaces
  267. label-separator = 
  268. ;label-separator-padding = 10
  269. label-separator-foreground = #cb410b
  270.  
  271. format-foreground = ${colors.foreground}
  272. format-background = ${colors.background}
  273.  
  274. ################################################################################
  275. ###############################################################################
  276. ############ MODULES A-Z ############
  277. ################################################################################
  278. ################################################################################
  279.  
  280. [module/arch-aur-updates]
  281. type = custom/script
  282. exec = ~/.config/polybar/scripts/check-all-updates.sh
  283. interval = 1000
  284. label = Updates: %output%
  285. format-foreground = ${colors.foreground}
  286. format-background = ${colors.background}
  287. format-prefix = "  "
  288. format-prefix-foreground = #FFBB00
  289. format-underline = #FFBB00
  290.  
  291.  
  292. [module/aur-updates]
  293. type = custom/script
  294. exec = cower -u | wc -l
  295. interval = 1000
  296. label = Aur: %output%
  297. format-foreground = ${colors.foreground}
  298. format-background = ${colors.background}
  299. format-prefix = "  "
  300. format-prefix-foreground = #FFBB00
  301. format-underline = #FFBB00
  302.  
  303. ################################################################################
  304.  
  305. [module/backlight-acpi]
  306. inherit = module/xbacklight
  307. type = internal/backlight
  308. card = intel_backlight
  309. format-foreground = ${colors.foreground}
  310. format-background = ${colors.background}
  311. format-prefix-foreground = #7D49B6
  312. format-prefix-underline = #7D49B6
  313. format-underline = #7D49B6
  314. ################################################################################
  315.  
  316. [module/backlight]
  317. ;https://github.com/jaagr/polybar/wiki/Module:-backlight
  318.  
  319. type = internal/backlight
  320.  
  321. ; Use the following command to list available cards:
  322. ; $ ls -1 /sys/class/backlight/
  323. card = intel_backlight
  324.  
  325. ; Available tags:
  326. ; <label> (default)
  327. ; <ramp>
  328. ; <bar>
  329. format = <label>
  330. format-foreground = ${colors.foreground}
  331. format-background = ${colors.background}
  332.  
  333. ; Available tokens:
  334. ; %percentage% (default)
  335. label = %percentage%%
  336.  
  337. ; Only applies if <ramp> is used
  338. ramp-0 = 🌕
  339. ramp-1 = 🌔
  340. ramp-2 = 🌓
  341. ramp-3 = 🌒
  342. ramp-4 = 🌑
  343.  
  344. ; Only applies if <bar> is used
  345. bar-width = 10
  346. bar-indicator = |
  347. bar-fill = ─
  348. bar-empty = ─
  349.  
  350. ################################################################################
  351.  
  352. [module/battery]
  353. ;https://github.com/jaagr/polybar/wiki/Module:-battery
  354. type = internal/battery
  355. battery = BAT0
  356. adapter = AC0
  357. full-at = 100
  358.  
  359. format-charging = <animation-charging> <label-charging>
  360. label-charging =  %percentage%%
  361. format-charging-foreground = ${colors.foreground}
  362. format-charging-background = ${colors.background}
  363. format-charging-underline = #a3c725
  364.  
  365. format-discharging = <ramp-capacity> <label-discharging>
  366. label-discharging =  %percentage%%
  367. format-discharging-underline = #c7ae25
  368. format-discharging-foreground = ${colors.foreground}
  369. format-discharging-background = ${colors.background}
  370.  
  371. format-full-prefix = " "
  372. format-full-prefix-foreground = #a3c725
  373. format-full-underline = #a3c725
  374. format-foreground = ${colors.foreground}
  375. format-background = ${colors.background}
  376.  
  377. ramp-capacity-0 = 
  378. ramp-capacity-1 = 
  379. ramp-capacity-2 = 
  380. ramp-capacity-3 = 
  381. ramp-capacity-4 = 
  382. ramp-capacity-foreground = #c7ae25
  383.  
  384. animation-charging-0 = 
  385. animation-charging-1 = 
  386. animation-charging-2 = 
  387. animation-charging-3 = 
  388. animation-charging-4 = 
  389. animation-charging-foreground = #a3c725
  390. animation-charging-framerate = 750
  391.  
  392. ################################################################################
  393.  
  394. [module/compton]
  395. ;https://github.com/jaagr/polybar/wiki/User-contributed-modules#compton
  396. type = custom/script
  397. exec = ~/.config/polybar/scripts/compton.sh
  398. click-left = ~/.config/polybar/scripts/compton-toggle.sh
  399. interval = 5
  400. format-foreground = ${colors.foreground}
  401. format-background = ${colors.background}
  402. ;format-underline = #00AF02
  403.  
  404. ################################################################################
  405.  
  406. [module/cpu1]
  407. ;https://github.com/jaagr/polybar/wiki/Module:-cpu
  408. type = internal/cpu
  409. ; Seconds to sleep between updates
  410. ; Default: 1
  411. interval = 1
  412. format-foreground = ${colors.foreground}
  413. format-background = ${colors.background}
  414. ;   
  415. format-prefix = " "
  416. format-prefix-foreground = #cb410b
  417. ;format-underline = #cd1f3f
  418.  
  419. ; Available tags:
  420. ; <label> (default)
  421. ; <bar-load>
  422. ; <ramp-load>
  423. ; <ramp-coreload>
  424. format = <label> <ramp-coreload>
  425.  
  426. format-padding = 2
  427.  
  428. ; Available tokens:
  429. ; %percentage% (default) - total cpu load
  430. ; %percentage-cores% - load percentage for each core
  431. ; %percentage-core[1-9]% - load percentage for specific core
  432. label-font = 3
  433. label = Cpu %percentage:3%%
  434. ramp-coreload-0 = ▁
  435. ramp-coreload-0-font = 3
  436. ramp-coreload-0-foreground = #7973bd
  437. ramp-coreload-1 = ▂
  438. ramp-coreload-1-font = 3
  439. ramp-coreload-1-foreground = #635bb2
  440. ramp-coreload-2 = ▃
  441. ramp-coreload-2-font = 3
  442. ramp-coreload-2-foreground = #4d44a7
  443. ramp-coreload-3 = ▄
  444. ramp-coreload-3-font = 3
  445. ramp-coreload-3-foreground = #372d9c
  446. ramp-coreload-4 = ▅
  447. ramp-coreload-4-font = 3
  448. ramp-coreload-4-foreground = #211692
  449. ramp-coreload-5 = ▆
  450. ramp-coreload-5-font = 3
  451. ramp-coreload-5-foreground = #ffa500
  452. ramp-coreload-6 = ▇
  453. ramp-coreload-6-font = 3
  454. ramp-coreload-6-foreground = #cb410b
  455. ramp-coreload-7 = █
  456. ramp-coreload-7-font = 3
  457. ramp-coreload-7-foreground = #7c0a02
  458.  
  459. ################################################################################
  460.  
  461. [module/cpu2]
  462. ;https://github.com/jaagr/polybar/wiki/Module:-cpu
  463. type = internal/cpu
  464. ; Seconds to sleep between updates
  465. ; Default: 1
  466. interval = 1
  467. format-foreground = ${colors.foreground}
  468. format-background = ${colors.background}
  469. format-prefix = "  "
  470. format-prefix-foreground = #cd1f3f
  471. format-underline = #cd1f3f
  472.  
  473. label-font = 3
  474.  
  475. ; Available tags:
  476. ; <label> (default)
  477. ; <bar-load>
  478. ; <ramp-load>
  479. ; <ramp-coreload>
  480. format = <label>
  481.  
  482. format-padding = 2
  483.  
  484. ; Available tokens:
  485. ; %percentage% (default) - total cpu load
  486. ; %percentage-cores% - load percentage for each core
  487. ; %percentage-core[1-9]% - load percentage for specific core
  488. label = Cpu %percentage:3%%
  489.  
  490. ################################################################################
  491.  
  492. [module/date]
  493. ;https://github.com/jaagr/polybar/wiki/Module:-date
  494. type = internal/date
  495. ; Seconds to sleep between updates
  496. interval = 5
  497. ; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
  498. ; NOTE: if you want to use syntax tags here you need to use %%{...}
  499. date = " %Y-%m-%d%"
  500. date-alt = " %d-%m-%Y"
  501. time = %H:%M
  502. time-alt = %H:%M
  503. format-prefix = " "
  504. format-prefix-foreground = #cb410b
  505. ;format-underline = #c1941a
  506. format-foreground = ${colors.foreground}
  507. format-background = ${colors.background}
  508. label = %date% %time%
  509.  
  510. #################################################################
  511.  
  512. [module/discord]
  513. type = custom/script
  514. exec = echo " Discord "
  515. ;exec = echo " "
  516. interval = 1
  517. tail = true
  518. format-foreground = ${colors.foreground}
  519. format-background = ${colors.background}
  520. format-prefix-foreground = #738adb
  521. format-underline = #738adb
  522. click-left = discord &
  523. click-right = killall Discord && killall Discord
  524. format-prefix = ""
  525.  
  526. #################################################################
  527.  
  528. [module/ewmh]
  529. type = internal/xworkspaces
  530.  
  531. pin-workspaces = false
  532. enable-click = true
  533. enable-scroll = true
  534. reverse-scroll = true
  535.  
  536.  
  537. icon-0 = 1;
  538. icon-1 = 2;
  539. icon-2 = 3;
  540. icon-3 = 4;
  541. icon-4 = 5;
  542. #icon-5 = 6;
  543. format = <label-state>
  544. label-monitor = %name%
  545.  
  546. label-active = %name%
  547. label-active-foreground = ${colors.foreground}
  548. label-active-background = ${colors.background}
  549. label-active-underline= #6790eb
  550. label-active-padding = 2
  551.  
  552. label-occupied = %name%
  553. label-occupied-background = ${colors.background}
  554. label-occupied-padding = 2
  555.  
  556. label-urgent = %name%
  557. label-urgent-foreground = ${colors.foreground}
  558. label-urgent-background = ${colors.alert}
  559. label-urgent-underline = ${colors.alert}
  560. label-urgent-padding = 2
  561.  
  562.  
  563. label-empty = %name%
  564. label-empty-foreground = ${colors.foreground}
  565. label-empty-padding = 2
  566. format-foreground = ${colors.foreground}
  567. format-background = ${colors.background}
  568.  
  569.  
  570. ################################################################################
  571.  
  572. [module/filesystem]
  573. ;https://github.com/jaagr/polybar/wiki/Module:-filesystem
  574. type = internal/fs
  575.  
  576. ; Mountpoints to display
  577. mount-0 = /
  578. ;mount-1 = /home
  579. ;mount-2 = /var
  580.  
  581. ; Seconds to sleep between updates
  582. ; Default: 30
  583. interval = 30
  584.  
  585. ; Display fixed precision values
  586. ; Default: false
  587. fixed-values = false
  588.  
  589. ; Spacing between entries
  590. ; Default: 2
  591. spacing = 4
  592.  
  593. ; Available tags:
  594. ; <label-mounted> (default)
  595. ; <bar-free>
  596. ; <bar-used>
  597. ; <ramp-capacity>
  598. format-mounted = <label-mounted>
  599. format-mounted-foreground = ${colors.foreground}
  600. format-mounted-background = ${colors.background}
  601. format-mounted-underline = #fe0000
  602.  
  603.  
  604. ; Available tokens:
  605. ; %mountpoint%
  606. ; %type%
  607. ; %fsname%
  608. ; %percentage_free%
  609. ; %percentage_used%
  610. ; %total%
  611. ; %free%
  612. ; %used%
  613. ; Default: %mountpoint% %percentage_free%%
  614. label-mounted = %mountpoint% : %used% used of %total%
  615.  
  616. ; Available tokens:
  617. ; %mountpoint%
  618. ; Default: %mountpoint% is not mounted
  619. label-unmounted = %mountpoint% not mounted
  620. format-unmounted-foreground = ${colors.foreground}
  621. format-unmounted-background = ${colors.background}
  622. ;format-unmounted-underline = ${colors.alert}
  623.  
  624. ################################################################################
  625.  
  626. [module/kernel]
  627. type = custom/script
  628. exec = uname -r
  629. tail = false
  630. interval = 1024
  631.  
  632. format-foreground = ${colors.foreground}
  633. format-background = ${colors.background}
  634. format-prefix = "  "
  635. format-prefix-foreground = #0084FF
  636. format-underline = #0084FF
  637.  
  638. ################################################################################
  639.  
  640. [module/jgmenu]
  641. type = custom/script
  642. interval = 120
  643. exec = echo "ArcoLinux"
  644. click-left = "jgmenu_run >/dev/null 2>&1 &"
  645. format-foreground = ${colors.foreground}
  646. format-background = ${colors.background}
  647.  
  648. ################################################################################
  649.  
  650. [module/load-average]
  651. type = custom/script
  652. exec = uptime | grep -ohe 'load average[s:][: ].*' | awk '{ print $3" "$4" "$5"," }' | sed 's/,//g'
  653. interval = 100
  654.  
  655. ;HOW TO SET IT MINIMAL 10 CHARACTERS - HIDDEN BEHIND SYSTEM ICONS
  656. ;label = %output%
  657. label = %output:10%
  658.  
  659. format-foreground = ${colors.foreground}
  660. format-background = ${colors.background}
  661. format-prefix = "  "
  662. format-prefix-foreground = #62FF00
  663. format-underline = #62FF00
  664.  
  665. ################################################################################
  666.  
  667. [module/memory1]
  668. ;https://github.com/jaagr/polybar/wiki/Module:-memory
  669. type = internal/memory
  670. interval = 1
  671. ; Available tokens:
  672. ; %percentage_used% (default)
  673. ; %percentage_free%
  674. ; %gb_used%
  675. ; %gb_free%
  676. ; %gb_total%
  677. ; %mb_used%
  678. ; %mb_free%
  679. ; %mb_total%
  680. label = %percentage_used%%
  681. bar-used-indicator =
  682. bar-used-width = 10
  683. bar-used-foreground-0 = #cd7f32
  684. bar-used-fill = 
  685. bar-used-empty = 
  686. bar-used-empty-foreground = #8446d4
  687.  
  688. format = <label> <bar-used>
  689. format-prefix = "  "
  690. format-prefix-foreground = #cb410b
  691. ;format-underline = #3384d0
  692. format-foreground = ${colors.foreground}
  693. format-background = ${colors.background}
  694.  
  695. ################################################################################
  696.  
  697. [module/memory2]
  698. ;https://github.com/jaagr/polybar/wiki/Module:-memory
  699. type = internal/memory
  700. interval = 1
  701. ; Available tokens:
  702. ; %percentage_used% (default)
  703. ; %percentage_free%
  704. ; %gb_used%
  705. ; %gb_free%
  706. ; %gb_total%
  707. ; %mb_used%
  708. ; %mb_free%
  709. ; %mb_total%
  710. label = %percentage_used%%
  711.  
  712. format = Mem <label>
  713. format-prefix = "  "
  714. format-prefix-foreground = #3384d0
  715. format-underline = #3384d0
  716. format-foreground = ${colors.foreground}
  717. format-background = ${colors.background}
  718.  
  719. ################################################################################
  720.  
  721. [module/memory3]
  722. ;https://github.com/jaagr/polybar/wiki/Module:-memory
  723. type = internal/memory
  724. interval = 1
  725. ; Available tokens:
  726. ; %percentage_used% (default)
  727. ; %percentage_free%
  728. ; %gb_used%
  729. ; %gb_free%
  730. ; %gb_total%
  731. ; %mb_used%
  732. ; %mb_free%
  733. ; %mb_total%
  734. label = %gb_used%/%gb_free%
  735.  
  736. format = Mem <label>
  737. format-prefix = "  "
  738. format-prefix-foreground = #3384d0
  739. format-underline = #3384d0
  740. format-foreground = ${colors.foreground}
  741. format-background = ${colors.background}
  742.  
  743.  
  744. ################################################################################
  745.  
  746. [module/mpd]
  747. ;https://github.com/jaagr/polybar/wiki/Module:-mpd
  748. type = internal/mpd
  749. ;format-online = "<label-song> <icon-prev> <icon-stop> <toggle> <icon-next>"
  750. format-online = "<label-song> <bar-progress>"
  751. ;format-online = "<label-song> <bar-progress> <icon-prev> <icon-stop> <toggle> <icon-next>"
  752. icon-prev = 
  753. icon-stop = 
  754. icon-play = 
  755. icon-pause = 
  756. icon-next = 
  757. label-song-maxlen = 40
  758. label-song-ellipsis = true
  759. bar-progress-width = 10
  760. bar-progress-indicator = 
  761. bar-progress-fill = 
  762. bar-progress-empty = 
  763. bar-progress-fill-foreground = #ff0
  764. bar-progress-fill-background = ${colors.background}
  765. bar-progress-indicator-foreground = ${colors.foreground}
  766. format-online-foreground = ${colors.foreground}
  767. format-online-background = ${colors.background}
  768. ################################################################################
  769.  
  770. [module/networkspeedup]
  771. ;https://github.com/jaagr/polybar/wiki/Module:-network
  772. type = internal/network
  773. ;interface = wlp3s0
  774. ;interface = enp14s0
  775. interface = enp0s31f6
  776. ;interface = enp4s0
  777. label-connected = "%upspeed:7%"
  778. format-connected = <label-connected>
  779. format-connected-prefix = ""
  780. format-connected-prefix-foreground = #FE522C
  781. format-connected-foreground = ${colors.foreground}
  782. format-connected-background = ${colors.background}
  783. ;format-connected-underline = #62FF00
  784.  
  785. ################################################################################
  786.  
  787. [module/networkspeeddown]
  788. ;https://github.com/jaagr/polybar/wiki/Module:-network
  789. type = internal/network
  790. ;interface = wlp3s0
  791. ;interface = enp14s0
  792. interface = enp0s31f6
  793. ;interface = enp4s0
  794. label-connected = "%downspeed:7%"
  795. format-connected = <label-connected>
  796. format-connected-prefix = ""
  797. format-connected-prefix-foreground = #3EC13F
  798. format-connected-foreground = ${colors.foreground}
  799. format-connected-background = ${colors.background}
  800. ;format-connected-underline = #62FF00
  801.  
  802. ################################################################################
  803.  
  804. [module/pacman-updates]
  805. type = custom/script
  806. ;exec = pacman -Qu | wc -l
  807. exec = checkupdates | wc -l
  808. interval = 1000
  809. label = Repo: %output%
  810. format-foreground = ${colors.foreground}
  811. format-background = ${colors.background}
  812. format-prefix = "  "
  813. format-prefix-foreground = #8446d4
  814. ;format-underline = #FFBB00
  815.  
  816. ################################################################################
  817.  
  818. [module/pamac-manager]
  819. type = custom/script
  820. exec = pamac checkupdates -q | wc -l
  821. interval = 1000
  822. label = Pamac : %output%
  823. tail = true
  824. format-foreground = ${colors.foreground}
  825. format-background = ${colors.background}
  826. format-prefix-foreground = #8446d4
  827. ;format-underline = #8446d4
  828. click-right = pamac-manager &
  829. click-left = pamac-manager &
  830. format-prefix = " "
  831.  
  832. ################################################################################
  833.  
  834. [module/pavolume]
  835. type = custom/script
  836. tail = true
  837. label = %output%
  838. exec = ~/.config/polybar/scripts/pavolume.sh --listen
  839. click-right = exec pavucontrol
  840. click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
  841. scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
  842. scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
  843. format-underline = #3EC13F
  844. format-foreground = ${colors.foreground}
  845. format-background = ${colors.background}
  846.  
  847.  
  848.  
  849. ################################################################################
  850.  
  851. [module/pub-ip]
  852. ;https://linuxconfig.org/polybar-a-better-wm-panel-for-your-linux-system
  853. type = custom/script
  854. exec = ~/.config/polybar/scripts/pub-ip.sh
  855. interval = 100
  856. format-foreground = ${colors.foreground}
  857. format-background = ${colors.background}
  858. format-underline = #FFBB00
  859. label = %output%
  860. format-prefix = "  "
  861. format-prefix-foreground = #FFBB00
  862.  
  863. ################################################################################
  864.  
  865. [module/release]
  866. type = custom/script
  867. exec = (lsb_release -d | awk {'print $2'} ;echo " "; lsb_release -r | awk {'print $2'}) | tr -d '\n'
  868. interval = 6000
  869.  
  870. format-foreground = ${colors.foreground}
  871. format-background = ${colors.background}
  872. format-prefix = "  "
  873. format-prefix-foreground = #62FF00
  874. format-underline = #62FF00
  875.  
  876. ################################################################################
  877.  
  878. [module/sep]
  879. ; alternative separator
  880. type = custom/text
  881. content = 
  882. content-foreground = ${colors.foreground}
  883. content-background = ${colors.background}
  884. format-foreground = ${colors.foreground}
  885. format-background = ${colors.background}
  886.  
  887. ################################################################################
  888.  
  889. [module/spotify1]
  890. ;https://github.com/NicholasFeldman/dotfiles/blob/master/polybar/.config/polybar/spotify.sh
  891. type = custom/script
  892. exec = ~/.config/polybar/scripts/spotify1.sh
  893. interval = 1
  894.  
  895. ;format = <label>
  896. format-foreground = ${colors.foreground}
  897. format-background = ${colors.background}
  898. format-padding = 2
  899. format-underline = #0f0
  900. format-prefix = " "
  901. format-prefix-foreground = #0f0
  902. label = %output:0:150%
  903.  
  904. ################################################################################
  905.  
  906. [module/temperature1]
  907. ;https://github.com/jaagr/polybar/wiki/Module:-temperature
  908. type = internal/temperature
  909. ; Thermal zone to use
  910. ; To list all the zone types, run
  911. ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
  912. ; Default: 0
  913. thermal-zone = 0
  914.  
  915. ; Full path of temperature sysfs path
  916. ; Use `sensors` to find preferred temperature source, then run
  917. ; $ 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
  918. ; to find path to desired file
  919. ; Default reverts to thermal zone setting
  920. hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
  921.  
  922. warn-temperature = 70
  923. format = <ramp> <label>
  924. format-foreground = ${colors.foreground}
  925. format-background = ${colors.background}
  926. format-underline = #c72581
  927. format-warn = <ramp> <label-warn>
  928. format-warn-underline = #c7254f
  929. label = %temperature%
  930. label-warn =  %temperature%
  931. label-warn-foreground = #c7254f
  932.  
  933. ramp-0 = 
  934. ramp-1 = 
  935. ramp-2 = 
  936. ramp-3 = 
  937. ramp-4 = 
  938. ramp-foreground =${colors.foreground}
  939.  
  940. ################################################################################
  941.  
  942. [module/temperature2]
  943. type = custom/script
  944. exec = ~/.config/polybar/scripts/tempcores.sh
  945. interval = 2
  946. format-padding = 1
  947. format-foreground = ${colors.foreground}
  948. format-background = ${colors.background}
  949. format-underline = #C1B93E
  950. format-prefix-foreground = #C1B93E
  951. label =  %output:0:150:%
  952.  
  953. ################################################################################
  954.  
  955. [module/uptime]
  956. ;https://github.com/jaagr/polybar/wiki/User-contributed-modules#uptime
  957. type = custom/script
  958. exec = uptime | awk -F, '{sub(".*up ",x,$1);print $1}'
  959. interval = 100
  960. label = Uptime : %output%
  961.  
  962. format-foreground = ${colors.foreground}
  963. format-background = ${colors.background}
  964. format-prefix = " "
  965. format-prefix-foreground = #C15D3E
  966. format-underline = #C15D3E
  967.  
  968. ################################################################################
  969.  
  970. [module/variety]
  971. type = custom/script
  972. exec = echo " Variety"
  973. ;exec = echo " "
  974. interval = 1
  975. tail = true
  976. format-foreground = ${colors.foreground}
  977. format-background = ${colors.background}
  978. format-prefix = ""
  979. format-prefix-foreground = #FFFFF
  980. format-underline = #0084FF
  981. click-right = variety --preferences
  982. click-left = variety --selector
  983.  
  984. ################################################################################
  985.  
  986. [module/volume]
  987. ;https://github.com/jaagr/polybar/wiki/Module:-volume
  988. type = internal/volume
  989. format-volume = "<label-volume> <bar-volume>"
  990.  
  991. label-volume = " "
  992. label-volume-foreground = #cb410b
  993. label-muted = muted
  994.  
  995. bar-volume-width = 10
  996. bar-volume-foreground-0 = #7973bd
  997. bar-volume-foreground-1 = #635bb2
  998. bar-volume-foreground-2 = #4d44a7
  999. bar-volume-foreground-3 = #372c9d
  1000. bar-volume-foreground-4 = #211692
  1001. bar-volume-foreground-5 = #560319
  1002. bar-volume-foreground-6 = #7c0a02
  1003. bar-volume-foreground-7 = #cb410b
  1004. bar-volume-foreground-8 = #cd7f32
  1005. bar-volume-gradient = true
  1006. bar-volume-indicator = 
  1007. bar-volume-indicator-font = 2
  1008. bar-volume-fill = 
  1009. bar-volume-fill-font = 2
  1010. bar-volume-empty = 
  1011. bar-volume-empty-font = 2
  1012. bar-volume-empty-foreground = ${colors.foreground}
  1013. format-volume-foreground = ${colors.foreground}
  1014. format-volume-background = ${colors.background}
  1015. format-muted-prefix = "  "
  1016. format-muted-prefix-foreground = "#7c0a02"
  1017. format-muted-foreground = ${colors.foreground}
  1018. format-muted-background = ${colors.background}
  1019.  
  1020. ################################################################################
  1021.  
  1022. [module/weather]
  1023. type = custom/script
  1024. interval = 10
  1025. format = <label>
  1026. format-prefix = " "
  1027. format-prefix-foreground = #3EC13F
  1028. format-underline = #3EC13F
  1029. format-foreground = ${colors.foreground}
  1030. format-background = ${colors.background}
  1031. exec = python -u ~/.config/polybar/scripts/weather.py
  1032. tail = true
  1033.  
  1034. #################################################################################
  1035.  
  1036. [module/wired-network]
  1037. ;https://github.com/jaagr/polybar/wiki/Module:-network
  1038. type = internal/network
  1039. interface = enp4s0
  1040. ;interface = enp14s0
  1041. interval = 3.0
  1042.  
  1043. ; Available tokens:
  1044. ; %ifname% [wireless+wired]
  1045. ; %local_ip% [wireless+wired]
  1046. ; %essid% [wireless]
  1047. ; %signal% [wireless]
  1048. ; %upspeed% [wireless+wired]
  1049. ; %downspeed% [wireless+wired]
  1050. ; %linkspeed% [wired]
  1051. ; Default: %ifname% %local_ip%
  1052. label-connected = %ifname%
  1053. label-disconnected = %ifname% disconnected
  1054.  
  1055. format-connected-foreground = ${colors.foreground}
  1056. format-connected-background = ${colors.background}
  1057. format-connected-underline = #55aa55
  1058. format-connected-prefix = " "
  1059. format-connected-prefix-foreground = #55aa55
  1060. format-connected-prefix-background = ${colors.background}
  1061.  
  1062. format-disconnected = <label-disconnected>
  1063. format-disconnected-underline = ${colors.alert}
  1064. label-disconnected-foreground = ${colors.foreground}
  1065.  
  1066. ################################################################################
  1067.  
  1068. [module/wireless-network]
  1069. ;https://github.com/jaagr/polybar/wiki/Module:-network
  1070. type = internal/network
  1071. interface = wlp3s0
  1072. interval = 3.0
  1073. label-connected = %essid%
  1074.  
  1075. format-connected = <label-connected>
  1076. ;format-connected = <ramp-signal> <label-connected>
  1077. format-connected-foreground = ${colors.foreground}
  1078. format-connected-background = ${colors.background}
  1079. format-connected-prefix = "  "
  1080. format-connected-prefix-foreground = #7e52c6
  1081. format-connected-prefix-background = ${colors.background}
  1082. format-connected-underline = #7e52c6
  1083.  
  1084. label-disconnected = %ifname% disconnected
  1085. label-disconnected-foreground = ${colors.alert}
  1086. label-disconnected-background = ${colors.background}
  1087.  
  1088. format-disconnected = <label-disconnected>
  1089. format-disconnected-foreground = ${colors.alert}
  1090. format-disconnected-background = ${colors.background}
  1091. format-disconnected-prefix = "  "
  1092. format-disconnected-prefix-foreground = ${colors.alert}
  1093. format-disconnected-prefix-background = ${colors.background}
  1094. format-disconnected-underline =${colors.alert}
  1095.  
  1096. ramp-signal-0 = ▁
  1097. ramp-signal-1 = ▂
  1098. ramp-signal-2 = ▃
  1099. ramp-signal-3 = ▄
  1100. ramp-signal-4 = ▅
  1101. ramp-signal-5 = ▆
  1102. ramp-signal-6 = ▇
  1103. ramp-signal-7 = █
  1104. ramp-signal-foreground = #7e52c6
  1105.  
  1106. ################################################################################
  1107.  
  1108. [module/xbacklight]
  1109. ;https://github.com/jaagr/polybar/wiki/Module:-xbacklight
  1110. type = internal/xbacklight
  1111. format = <label> <bar>
  1112. format-prefix = "  "
  1113. format-prefix-foreground = ${colors.foreground}
  1114. format-prefix-background = ${colors.background}
  1115. format-prefix-underline = #9f78e1
  1116. format-underline = #9f78e1
  1117. label = %percentage%%
  1118. bar-width = 10
  1119. bar-indicator = 
  1120. bar-indicator-foreground = #fff
  1121. bar-indicator-font = 2
  1122. bar-fill = 
  1123. bar-fill-font = 2
  1124. bar-fill-foreground = #9f78e1
  1125. bar-empty = 
  1126. bar-empty-font = 2
  1127. bar-empty-foreground = #fff
  1128. format-foreground = ${colors.foreground}
  1129. format-background = ${colors.background}
  1130.  
  1131. ################################################################################
  1132.  
  1133. [module/xkeyboard]
  1134. ;https://github.com/jaagr/polybar/wiki/Module:-xkeyboard
  1135. type = internal/xkeyboard
  1136. blacklist-0 = num lock
  1137.  
  1138. format-prefix = " "
  1139. format-prefix-foreground = ${colors.foreground}
  1140. format-prefix-background = ${colors.background}
  1141. format-prefix-underline = #3ecfb2
  1142. format-foreground = ${colors.foreground}
  1143. format-background = ${colors.background}
  1144.  
  1145. label-layout = %layout%
  1146. label-layout-underline = #3ecfb2
  1147. label-indicator-padding = 2
  1148. label-indicator-margin = 1
  1149. label-indicator-background = ${colors.background}
  1150. label-indicator-underline = ${colors.foreground}
  1151.  
  1152. ################################################################################
  1153.  
  1154. [module/xwindow]
  1155. ;https://github.com/jaagr/polybar/wiki/Module:-xwindow
  1156. type = internal/xwindow
  1157.  
  1158. ; Available tokens:
  1159. ; %title%
  1160. ; Default: %title%
  1161. label = %title%
  1162. label-maxlen = 50
  1163.  
  1164. format-foreground = ${colors.foreground}
  1165. format-background = ${colors.background}
  1166.  
  1167. ###############################################################################
Add Comment
Please, Sign In to add comment