Advertisement
Dobbie03

Polybar

Jul 11th, 2017
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. [colors]
  2. background = #292d3e
  3. foreground = #bfc7d5
  4. yellow = #ffcb6b
  5. black = #073642
  6. white = #bfc7d5
  7. red = #ac4142
  8. green = #a9c77d
  9. blue = #82aaff
  10. magenta = #c792ea
  11. cyan = #89ddff
  12.  
  13. [bar/master]
  14. width = 100%
  15. height = 40
  16. separator = " "
  17. background = ${colors.background}
  18. foreground = ${colors.foreground}
  19. underline-size = 0
  20. overline-size = 0
  21. font-0 = "DejaVu Sans Mono:pixelsize=15:antialias=false;1"
  22. font-1 = "FontAwesome:pixelsize=15:antialias=false;1"
  23.  
  24. [bar/top]
  25. monitor = HDMI-A-0
  26. inherit = bar/master
  27. modules-left = mpd
  28. modules-center = title
  29. modules-right = ovpn network ram cpu temperature pavolume xkeyboard time powermenu
  30.  
  31. padding-right = 1
  32.  
  33. [module/ovpn]
  34. type = internal/network
  35. interface = enp2s0
  36. interval = 3.0
  37. exec-if = pgrep openvpn
  38.  
  39. format-connected-padding = 1
  40. format-disconnected-padding = 1
  41.  
  42. format-connected = <label-connected>
  43.  
  44. label-connected = 
  45. label-connected-foreground = ${colors.cyan}
  46.  
  47. label-disconnected = 
  48. label-disconnected-foreground = ${colors.red}
  49.  
  50. [module/pavolume]
  51. type = custom/script
  52. interval = 2
  53. exec = ~/.config/polybar/pavolume.sh
  54.  
  55. click-right = exec pavucontrol
  56. click-left = ~/.config/polybar/pavolume.sh --togmute
  57. scroll-up = ~/.config/polybar/pavolume.sh --up
  58. scroll-down = ~/.config/polybar/pavolume.sh --down
  59.  
  60. label = %output%
  61. label-foreground = ${colors.yellow}
  62. format-padding = 1
  63.  
  64. [module/temperature]
  65. type = internal/temperature
  66.  
  67. thermal-zone = 2
  68.  
  69. format = <ramp> <label>
  70. format-padding = 1
  71.  
  72. label-foreground = ${colors.green}
  73.  
  74. ramp-0 = 
  75. ramp-1 = 
  76. ramp-2 = 
  77.  
  78. ramp-foreground = ${colors.green}
  79.  
  80. [module/network]
  81. type = internal/network
  82. interface = enp2s0
  83. ping-interval = 3
  84. accumlate-stats = true
  85.  
  86. [module/title]
  87. type = internal/xwindow
  88. label = %title%
  89. label-maxlen = 75
  90.  
  91. [module/ram]
  92. type = internal/memory
  93. interval = 3
  94.  
  95. label-foreground = ${colors.blue}
  96. label-padding = 1
  97. format-prefix = ""
  98. format-prefix-foreground = ${colors.blue}
  99. format-padding = 1
  100.  
  101. [module/cpu]
  102. type = internal/cpu
  103. interval = 1
  104.  
  105. label-foreground = ${colors.cyan}
  106. label-padding = 1
  107. format-prefix = ""
  108. format-prefix-foreground = ${colors.cyan}
  109. format-padding = 1
  110.  
  111. [module/wm]
  112. type = internal/i3
  113. enable-click = true
  114. enable-scroll = false
  115. strip-wsnumbers = true
  116.  
  117. format-padding = 1
  118. label-focused-foreground = ${colors.magenta}
  119. label-focused-padding = 1
  120.  
  121. label-unfocused-padding = 1
  122.  
  123. label-visible-padding = 1
  124.  
  125. label-urgent-foreground = ${colors.red}
  126. label-urgent-padding = 1
  127.  
  128. [module/time]
  129. type = internal/date
  130. interval = 40
  131.  
  132.  
  133. label-foreground = ${colors.magenta}
  134.  
  135. date = "%I:%M %p"
  136.  
  137. format-prefix = 
  138. format-prefix-foreground = ${colors.magenta}
  139. format-padding = 1
  140.  
  141.  
  142. [module/mpd]
  143. type = internal/mpd
  144.  
  145. label-song =  %artist% - %title% - %album%
  146. label-song-maxlen = 100
  147. label-song-ellipsis = true
  148.  
  149. format-online = <label-song><toggle>
  150. # <icon-prev> <icon-seekb> <toggle> <icon-seekf> <icon-next> <icon-random> <icon-repeat>
  151.  
  152. label-song-foreground = ${colors.cyan}
  153. label-padding = 1
  154. label-song-background = ${colors.background}
  155. icon-pause-background = ${self.label-song-background}
  156. icon-play-background = ${self.label-song-background}
  157. icon-pause-foreground = ${self.label-song-foreground}
  158. icon-play-foreground = ${self.label-song-foreground}
  159.  
  160. label-song-padding = 2
  161. icon-pause-padding-right = 2
  162. icon-play-padding-right = 2
  163.  
  164. icon-prev = 
  165. icon-seekb = 
  166. icon-stop = 
  167. icon-pause = 
  168. icon-play = 
  169. icon-next = 
  170. icon-seekf = 
  171.  
  172. icon-random = 
  173. icon-repeat = 
  174. toggle-off-foreground = ${colors.grey}
  175. toggle-on-foreground = ${colors.red}
  176.  
  177. [module/powermenu]
  178. type = custom/menu
  179.  
  180. format-spacing = 1
  181.  
  182. label-open = 
  183. label-open-foreground = ${colors.cyan}
  184. label-close =  Cancel
  185. label-close-foreground = ${colors.blue}
  186. label-separator = |
  187. label-separator-foreground = ${colors.magenta}
  188.  
  189. menu-1-0 = Logout
  190. menu-1-0-exec = exit
  191. menu-1-1 = Reboot
  192. menu-1-1-exec = systemctl reboot
  193. menu-1-2 = Shutdown
  194. menu-1-2-exec = systemctl poweroff
  195.  
  196. ;menu-1-0 = Cancel
  197. ;menu-1-0-exec = menu-open-0
  198. ;menu-1-1 = Logout
  199. ;menu-1-1-exec = sudo logout
  200.  
  201. ;menu-2-0 = Cancel
  202. ;menu-2-0-exec = menu-open-0
  203. ;menu-2-1 = Reboot
  204. ;menu-2-1-exec = sudo reboot
  205.  
  206. ;menu-3-0 = Cancel
  207. ;menu-3-0-exec = menu-open-0
  208. ;menu-3-1 = Shutdown
  209. ;menu-3-1-exec = sudo poweroff
  210.  
  211. [module/xkeyboard]
  212. type = internal/xkeyboard
  213. blacklist-0 = num lock
  214.  
  215. format-prefix = " "
  216. format-prefix-foreground = ${colors.blue}
  217. ;format-prefix-underline = ${colors.secondary}
  218.  
  219. label-layout = %layout%
  220. ;label-layout-underline = ${colors.secondary}
  221.  
  222. label-indicator-padding = 2
  223. label-indicator-margin = 1
  224. label-indicator-background = ${colors.cyan}
  225. ;label-indicator-underline = ${colors.secondary}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement