SHARE
TWEET

polybar config

a guest Jul 15th, 2019 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;==========================================================
  2. ;
  3. ;
  4. ;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
  5. ;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
  6. ;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
  7. ;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
  8. ;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
  9. ;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
  10. ;
  11. ;
  12. ;   To learn more about how to configure Polybar
  13. ;   go to https://github.com/jaagr/polybar
  14. ;
  15. ;   The README contains alot of information
  16. ;
  17. ;==========================================================
  18.  
  19. [colors]
  20. ;background = ${xrdb:color0:#222}
  21. background = #212121
  22. background-alt = #444
  23. ;foreground = ${xrdb:color7:#222}
  24. foreground = #dfdfdf
  25. foreground-alt = #555
  26. primary = #ffb52a
  27. secondary = #e60053
  28. alert = #bd2c40
  29.  
  30. [bar/traybar]
  31. width = 100%
  32. height = 20
  33. radius = 0.0
  34. bottom = true
  35.  
  36. font-0 = fixed:pixelsize=12;1
  37.  
  38. modules-center = dummy
  39.  
  40. background = #00000000
  41. foreground = ${colors.foreground}
  42.  
  43. tray-position = right
  44. tray-padding = 2
  45. tray-scale = 1
  46.  
  47. override-redirect = true
  48. wm-restack = i3
  49.  
  50. [bar/mainbar]
  51. ;monitor = ${env:MONITOR:HDMI-1}
  52. width = 100%
  53. height = 32
  54. ;offset-x = 1%
  55. ;offset-y = 1%
  56. radius = 0.0
  57. fixed-center = true
  58.  
  59. background = ${colors.background}
  60. foreground = ${colors.foreground}
  61.  
  62. ; workspace underline
  63. line-size = 3
  64. line-color = #f00
  65.  
  66. border-top-size = 15
  67. border-left-size = 30
  68. border-right-size = 30
  69. border-color = #00000000
  70.  
  71. padding-left = 0
  72. padding-right = 2
  73.  
  74. module-margin-left = 1
  75. module-margin-right = 2
  76.  
  77. font-0 = fixed:pixelsize=12;1
  78. font-1 = unifont:fontformat=truetype:size=10:antialias=false;0
  79. font-2 = siji:pixelsize=20;1
  80. font-3 = FontAwesome:style=Regular:pixelsize=15;1
  81. font-4 = Font Awesome 5 Free Solid:style=Solid:pixelsize=12;1
  82. font-5 = Font Awesome 5 Brands Regular:style=Regular:pixelsize=11;1
  83. font-6 = icomoon:style=Regular:pixelsize=15;1
  84.  
  85. modules-left = i3
  86. modules-center = time
  87. modules-right = pulseaudio memory eth temperature date
  88.  
  89. ;tray-position = right
  90. tray-padding = 2
  91. tray-scale = 1
  92. ;tray-detached = true
  93. tray-maxsize = 21
  94. ;tray-offset-x = -350
  95. ;tray-offset-y = -2
  96. ;tray-background = #00000000
  97.  
  98. ;wm-restack = i3
  99.  
  100. ;override-redirect = true
  101.  
  102. scroll-up = i3wm-wsnext
  103. scroll-down = i3wm-wsprev
  104.  
  105. cursor-click = pointer
  106.  
  107. ;not needed
  108. [module/bspwm]
  109. type = internal/bspwm
  110.  
  111. label-focused = %index%
  112. label-focused-background = ${colors.background-alt}
  113. label-focused-underline= ${colors.primary}
  114. label-focused-padding = 2
  115.  
  116. label-occupied = %index%
  117. label-occupied-padding = 2
  118.  
  119. label-urgent = %index%!
  120. label-urgent-background = ${colors.alert}
  121. label-urgent-padding = 2
  122.  
  123. label-empty = %index%
  124. label-empty-foreground = ${colors.foreground-alt}
  125. label-empty-padding = 2
  126.  
  127. ; Separator in between workspaces
  128. ;label-separator = |
  129.  
  130. [module/i3]
  131. type = internal/i3
  132. format = <label-state> <label-mode>
  133. index-sort = true
  134. wrapping-scroll = true
  135.  
  136. ws-icon-0 = "1;"
  137. ws-icon-1 = "2;"
  138. ws-icon-2 = "3;"
  139. ws-icon-3 = "4;4"
  140. ws-icon-4 = "5;5"
  141. ws-icon-5 = "6;6"
  142. ws-icon-6 = "7;7"
  143. ws-icon-7 = "8;8"
  144. ws-icon-8 = "9;9"
  145. ws-icon-9 = "10;"
  146.  
  147. ; Only show workspaces on the same output as the bar
  148. ;pin-workspaces = true
  149.  
  150. label-mode-padding = 2
  151. label-mode-foreground = #000
  152. label-mode-background = ${colors.primary}
  153.  
  154. ; focused = Active workspace on focused monitor
  155. label-focused = %icon%
  156. label-focused-background = ${module/bspwm.label-focused-background}
  157. label-focused-underline = ${module/bspwm.label-focused-underline}
  158. label-focused-padding = ${module/bspwm.label-focused-padding}
  159.  
  160. ; unfocused = Inactive workspace on any monitor
  161. label-unfocused = %icon%
  162. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  163.  
  164. ; visible = Active workspace on unfocused monitor
  165. label-visible = %icon%
  166. label-visible-background = ${self.label-focused-background}
  167. label-visible-underline = ${self.label-focused-underline}
  168. label-visible-padding = ${self.label-focused-padding}
  169.  
  170. ; urgent = Workspace with urgency hint set
  171. label-urgent = %icon%
  172. label-urgent-background = ${module/bspwm.label-urgent-background}
  173. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  174.  
  175. ; Separator in between workspaces
  176. ;label-separator = |
  177.  
  178.  
  179. ;modify
  180. [module/cpu]
  181. type = internal/cpu
  182. interval = 2
  183. format-prefix = " "
  184. format-prefix-foreground = ${colors.foreground}
  185. label = %percentage:2%%
  186.  
  187. ;modify
  188. [module/memory]
  189. type = internal/memory
  190. interval = 2
  191. format-prefix = " "
  192. format-prefix-foreground = ${colors.foreground}
  193. label = %gb_used:2GB%
  194.  
  195. ;modify
  196. [module/eth]
  197. type = internal/network
  198. interface = enp3s0
  199. interval = 1
  200.  
  201. format-connected-prefix-foreground = ${colors.foreground}
  202. label-connected = ""
  203.  
  204. label-disconnected = ""
  205. label-disconnected-foreground = ${colors.foreground-alt}
  206.  
  207. ;modify
  208. [module/date]
  209. type = internal/date
  210. interval = 5
  211.  
  212. format-foreground = ${colors.foreground}
  213. date = %a %d/%m
  214.  
  215. [module/time]
  216. type = internal/date
  217. interval = 5
  218.  
  219. format-foreground = ${colors.foreground}
  220. date = %I:%M %p
  221.  
  222. ;modify
  223. [module/pulseaudio]
  224. type = internal/pulseaudio
  225. sink = alsa_output.pci-0000_01_00.1.hdmi-stereo
  226.  
  227. format-volume = <label-volume>
  228. label-volume =  %percentage%%
  229. label-volume-foreground = ${root.foreground}
  230.  
  231. label-muted =  %percentage%%
  232.  
  233. ;modify
  234. [module/temperature]
  235. type = internal/temperature
  236. thermal-zone = 0
  237. warn-temperature = 60
  238.  
  239. format = <ramp> <label>
  240. format-underline = #f50a4d
  241. format-warn = <ramp> <label-warn>
  242. format-warn-underline = ${self.format-underline}
  243.  
  244. label = %temperature-c%
  245. label-warn = %temperature-c%
  246. label-warn-foreground = ${colors.secondary}
  247.  
  248. ramp-0 =
  249. ramp-1 =
  250. ramp-2 =
  251. ramp-foreground = ${colors.foreground-alt}
  252.  
  253. [module/powermenu]
  254. type = custom/menu
  255.  
  256. expand-right = true
  257.  
  258. format-spacing = 1
  259.  
  260. label-open =
  261. label-open-foreground = ${colors.secondary}
  262. label-close =  cancel
  263. label-close-foreground = ${colors.secondary}
  264. label-separator = |
  265. label-separator-foreground = ${colors.foreground-alt}
  266.  
  267. menu-0-0 = reboot
  268. menu-0-0-exec = menu-open-1
  269. menu-0-1 = power off
  270. menu-0-1-exec = menu-open-2
  271.  
  272. menu-1-0 = cancel
  273. menu-1-0-exec = menu-open-0
  274. menu-1-1 = reboot
  275. menu-1-1-exec = sudo reboot
  276.  
  277. menu-2-0 = power off
  278. menu-2-0-exec = sudo poweroff
  279. menu-2-1 = cancel
  280. menu-2-1-exec = menu-open-0
  281.  
  282. [module/dummy]
  283. type = internal/date
  284. interval = 60
  285.  
  286. format-foreground = #00000000
  287. date = 0
  288.  
  289. [settings]
  290. screenchange-reload = true
  291. ;compositing-background = xor
  292. ;compositing-background = screen
  293. ;compositing-foreground = source
  294. ;compositing-border = over
  295. ;pseudo-transparency = true
  296.  
  297. [global/wm]
  298. margin-top = 0
  299. margin-bottom = 0
  300.  
  301. ; vim:ft=dosini
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top