Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. ; POLYBAR config file
  2.  
  3. [global/wm]
  4. margin-top = 0
  5. margin-bottom = 0
  6.  
  7. [settings]
  8. screenchange-reload = false
  9. pseudo-transparency = false
  10.  
  11. [colors]
  12. background = #e1e1e0
  13. background-alt = #444
  14. foreground = #000000
  15. foreground-alt = #555555
  16. primary = #ffb52a
  17. secondary = #e60053
  18. alert = #bd2c40
  19.  
  20. [bar/example]
  21. monitor = ${env:MONITOR:eDP1}
  22. #monitor = ${env:MONITOR:HDMI1}
  23. width = 100%
  24. height = 30
  25. ;offset-x = 1%
  26. ;offset-y = 1%
  27. ;radius = 6.0
  28. fixed-center = true
  29.  
  30. background = ${colors.background}
  31. foreground = ${colors.foreground}
  32.  
  33. ;line-size = 3
  34. ;line-color = #f00f00
  35.  
  36. padding-left = 2
  37. padding-right = 2
  38.  
  39. module-margin-left = 2
  40. module-margin-right = 2
  41.  
  42. font-0 = P052:style=Roman:size=11;4
  43. font-1 = P052:style=Roman:size=11:weight=bold;4
  44. font-2 = FontAwesome:size=12;4
  45.  
  46. modules-left = ewmh networkspeed memory cpu
  47. modules-center = date time
  48. modules-right = xbacklight pavolume wlan eth battery
  49.  
  50. separator = "|"
  51.  
  52. tray-detached = false
  53. tray-offset-x = 0
  54. tray-offset-y = 0
  55. tray-position = right
  56. tray-padding = 0
  57. tray-maxsize = 20
  58. tray-scale = 1.0
  59. tray-background = ${colors.background}
  60.  
  61. cursor-click = pointer
  62. cursor-scroll = ns-resize
  63.  
  64. [module/xbacklight]
  65. type = internal/xbacklight
  66.  
  67. format = <label>
  68. label =  %percentage%%
  69. format-underline = #0000ff
  70.  
  71. [module/networkspeed]
  72. type = internal/network
  73. interface = wlp3s0
  74. interval = 1.0
  75.  
  76. format-connected = <label-connected>
  77. format-connected-underline = #e60053
  78. label-connected = %downspeed:9% %upspeed:9%
  79.  
  80. [module/memory]
  81. type = custom/script
  82. exec = free -m | awk '/^Mem/ {print $3}'
  83. interval = 3
  84. label = %{A1:lxtask &:} %output% MB%{A}%{A}
  85.  
  86. [module/cpu]
  87. type = internal/cpu
  88. interval = 1
  89. label = %{A1:lxtask &:} %percentage%%{A}%{A}
  90.  
  91. [module/ewmh]
  92. type = internal/xworkspaces
  93.  
  94. enable-click = true
  95. enable-scroll = false
  96. format-padding = 0
  97.  
  98. format = <label-state>
  99.  
  100. label-active = %name%
  101. label-active-foreground = ${colors.background}
  102. label-active-background = #c93648
  103. label-active-underline = #fba922
  104. label-active-padding = 2
  105.  
  106. label-empty = %name%
  107. label-empty-foreground = ${colors.foreground}
  108. label-empty-padding = 2
  109.  
  110. [module/wlan]
  111. type = internal/network
  112. interface = wlp3s0
  113. interval = 3.0
  114. accumulate-stats = true
  115.  
  116. format-connected =  <label-connected>
  117. format-connected-underline = #9f78e1
  118. label-connected = %{A1:nm-applet &:}%{A3:killall -q nm-applet:}%essid% - %local_ip%%{A}%{A}
  119.  
  120. format-disconnected = <label-disconnected>
  121. format-disconnected-underline = ${self.format-connected-underline}
  122. label-disconnected = %{A1:nm-applet &:}No Wifi%{A}%{A}
  123. label-disconnected-foreground = ${colors.foreground}
  124.  
  125. [module/eth]
  126. type = internal/network
  127. interface = enp2s0f1
  128. interval = 3.0
  129.  
  130. format-connected =  <label-connected>
  131. format-connected-underline = #55aa55
  132. format-connected-prefix-foreground = ${colors.foreground}
  133. label-connected = %local_ip%
  134.  
  135. [module/date]
  136. type = internal/date
  137. interval = 5
  138.  
  139. date = %Y. %m. %d%
  140. ;date-alt = " %Y. %B %d."
  141.  
  142. format-prefix =
  143. format-prefix-foreground = ${colors.foreground}
  144. format-underline = #0a6cf5
  145.  
  146. #label =  %date%
  147. label = %date%
  148. label-font = 1
  149.  
  150. [module/time]
  151. type = internal/date
  152. interval = 5
  153.  
  154. time = %H:%M
  155. ;time-alt = %H:%M
  156.  
  157. format-prefix =
  158. format-prefix-foreground = ${colors.foreground}
  159. format-underline = #0a6cf5
  160.  
  161. label = %time%
  162. label-font = 2
  163.  
  164. [module/battery]
  165. type = internal/battery
  166. battery = BAT1
  167. adapter = ACAD
  168. full-at = 100
  169.  
  170. format-charging = <animation-charging> <label-charging>
  171. format-charging-underline = #ffb52a
  172. label-charging = %percentage%%
  173.  
  174. format-discharging = <ramp-capacity> <label-discharging>
  175. format-discharging-underline = ${self.format-charging-underline}
  176. label-discharging = %percentage%%
  177.  
  178. format-full-prefix =
  179. format-full-prefix-foreground = ${colors.foreground}
  180. format-full-underline = ${self.format-charging-underline}
  181.  
  182. animation-charging-0 = 
  183. animation-charging-1 = 
  184. animation-charging-2 = 
  185. animation-charging-3 = 
  186. animation-charging-4 = 
  187. animation-charging-foreground = ${colors.foreground}
  188. animation-charging-framerate = 700
  189.  
  190. ramp-capacity-0 = 
  191. ramp-capacity-1 = 
  192. ramp-capacity-2 = 
  193. ramp-capacity-3 = 
  194. ramp-capacity-4 = 
  195.  
  196. [module/pavolume]
  197. type = custom/script
  198. tail = true
  199. label-font = 1
  200. label = %output%
  201. exec = ~/.config/polybar/scripts/pavolume.sh --listen
  202. click-right = exec pavucontrol
  203. click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
  204. scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
  205. scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
  206. format-underline = #3EC13F
  207. format-foreground = ${colors.foreground}
  208. format-background = ${colors.background}
  209.  
  210. [module/powermenu]
  211. type = custom/menu
  212.  
  213. expand-right = true
  214. format-spacing = 1
  215.  
  216. label-open = 
  217. label-open-foreground = ${colors.foreground}
  218. label-close = cancel
  219. label-close-foreground = #ff0000
  220. label-separator = |
  221. label-separator-foreground = ${colors.foreground}
  222.  
  223. menu-0-0 = lock
  224. menu-0-0-exec = dm-tool lock
  225. menu-0-1 = reboot
  226. menu-0-1-exec = reboot
  227. menu-0-2 = power off
  228. menu-0-2-exec = shutdown -h now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement