wizard10000

polybar.20210730.config

Jul 30th, 2021
1,002
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; setup
  2.  
  3. [colors]
  4. background = #363533
  5. background-alt = #444
  6. foreground = #dfdfdf
  7. foreground-alt = #555
  8. primary = #ffb52a
  9. secondary = #e60053
  10. alert = #bd2c40
  11.  
  12. [bar/default]
  13. width = 100%
  14. height = 32
  15. radius = 6.0
  16. fixed-center = false
  17.  
  18. background = ${colors.background}
  19. foreground = ${colors.foreground}
  20.  
  21. line-size = 3
  22. line-color = #f00
  23.  
  24. border-size = 4
  25. border-color = #00000000
  26.  
  27. padding-left = 0
  28. padding-right = 2
  29.  
  30. module-margin-left = 1
  31. module-margin-right = 2
  32.  
  33. font-0 = fixed:pixelsize=11;1
  34. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  35. font-2 = siji:pixelsize=11;1
  36.  
  37. modules-left = polywins
  38. modules-center =
  39. modules-right = pulseaudio memory filesystem temperature cpu wlan0 wlp2s0 wlp3s0 battery fujitsu-battery date
  40.  
  41.  
  42. tray-position = right
  43. tray-padding = 2
  44.  
  45. cursor-click = pointer
  46. cursor-scroll = ns-resize
  47.  
  48. [settings]
  49. screenchange-reload = true
  50.  
  51. [global/wm]
  52. margin-top = 5
  53. margin-bottom = 5
  54.  
  55. ; polywins
  56.  
  57. [module/polywins]
  58.  
  59. ; install wmctrl and slop
  60.  
  61. type = custom/script
  62. exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null
  63. format = <label>
  64. label = %output%
  65. label-padding = 1
  66. tail = true
  67.  
  68. ; pulseaudio
  69.  
  70. [module/pulseaudio]
  71. type = internal/pulseaudio
  72.  
  73. format-volume = <label-volume>
  74. label-volume = vol: %percentage%%
  75. label-volume-foreground = ${root.foreground}
  76.  
  77. label-muted = 🔇 muted
  78. label-muted-foreground = #666
  79.  
  80. ; memory module
  81.  
  82. [module/memory]
  83. type = internal/memory
  84. interval = 2
  85. format = <label>
  86. format-prefix = " "
  87. format-prefix-foreground = ${colors.foreground-alt}
  88. format-underline =
  89. label = %mb_used% / %gb_total%
  90.  
  91. ; disk module
  92.  
  93. [module/filesystem]
  94. type = internal/fs
  95. interval = 25
  96. fixed-values = true
  97.  
  98. mount-0 = /
  99. mount-1 = /media/internal
  100. label-mounted = %{F#dfdfdf}%mountpoint%: %used% / %total%
  101. label-unmounted = internal not mounted!
  102. label-unmounted-foreground = ${colors.foreground-alt}
  103.  
  104. ; temperature
  105.  
  106. [module/temperature]
  107. type = internal/temperature
  108. interval = 0.5
  109. thermal-zone = 1
  110. hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
  111. base-temperature = 20
  112. warn-temperature = 80
  113.  
  114. ; cpu
  115.  
  116. [module/cpu]
  117. type = internal/cpu
  118. interval = 2
  119. format-prefix = " "
  120. format-prefix-foreground = ${colors.foreground-alt}
  121. format-underline = #00dd00
  122. label = cpu: %percentage:2%%
  123.  
  124. ; wlan
  125.  
  126. [module/wlan0]
  127. type = internal/network
  128. interface = wlan0
  129. interval = 3.0
  130.  
  131. format-connected = <label-connected>
  132. format-connected-underline = #00dd00
  133. label-connected = wlan: %signal%
  134.  
  135. format-disconnected =
  136.  
  137. [module/wlp3s0]
  138. type = internal/network
  139. interface = wlp3s0
  140. interval = 3.0
  141.  
  142. format-connected = <label-connected>
  143. format-connected-underline = #00dd00
  144. label-connected = wlan: %signal%
  145.  
  146. format-disconnected =
  147.  
  148. ; battery
  149.  
  150.  
  151. [module/battery]
  152. type = internal/battery
  153. battery = BAT0
  154. adapter = AC
  155. full-at = 98
  156.  
  157. format-charging = <label-charging>
  158. format-charging-underline = #ffb52a
  159. label-charging = bat: %percentage%%
  160.  
  161. format-discharging = <label-discharging>
  162. format-discharging-underline = ${self.format-charging-underline}
  163. label-discharging = bat: %percentage%%
  164.  
  165.  
  166. format-full-prefix = " "
  167. format-full-prefix-foreground = ${colors.foreground-alt}
  168. format-full-underline = #00dd00
  169. label-full = bat: %percentage%%
  170.  
  171. [module/fujitsu-battery]
  172. type = internal/battery
  173. battery = CMB1
  174. adapter = AC
  175. full-at = 98
  176.  
  177. format-charging = <label-charging>
  178. format-charging-underline = #ffb52a
  179. label-charging = bat: %percentage%%
  180.  
  181. format-discharging = <label-discharging>
  182. format-discharging-underline = ${self.format-charging-underline}
  183. label-discharging = bat: %percentage%%
  184.  
  185.  
  186. format-full-prefix = " "
  187. format-full-prefix-foreground = ${colors.foreground-alt}
  188. format-full-underline = #00dd00
  189. label-full = bat: %percentage%%
  190.  
  191. ; date/time
  192.  
  193. [module/date]
  194. type = internal/date
  195. interval = 5
  196.  
  197. date =
  198. date-alt = " %a, %b %d "
  199.  
  200. time = "%I:%M %P"
  201. time-alt =
  202.  
  203. format-prefix = 
  204. format-prefix-foreground = ${colors.foreground-alt}
  205. format-underline =
  206.  
  207. label = %date% %time%
  208.  
RAW Paste Data