Advertisement
mrneilypops

polybar-config-27-01-18

Jan 27th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 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. ;
  8. ;=====================================================
  9.  
  10. [colors]
  11. ;background = ${xrdb:color0:#222}
  12. #background = #051519
  13. background = #40051519
  14. background-alt = #444
  15. ;foreground = ${xrdb:color7:#222}
  16. foreground = #E0E5E6
  17. foreground-alt = #E0E5E6
  18. primary = #E0E5E6
  19. secondary = #E0E5E6
  20. alert = #FB3D66
  21.  
  22. [bar/example]
  23. monitor = ${env:MONITOR:HDMI-0}
  24. width = 100%
  25. height = 27
  26. ;offset-x = 1%
  27. ;offset-y = 1%
  28. radius = 0.0
  29. fixed-center = false
  30.  
  31. background = ${colors.background}
  32. foreground = ${colors.foreground}
  33.  
  34. line-size = 1
  35. line-color = #f00
  36.  
  37. border-size = 0
  38. border-color = #00000000
  39.  
  40. padding-left = 0
  41. padding-right = 2
  42.  
  43. module-margin-left = 1
  44. module-margin-right = 2
  45.  
  46. font-0 = ohsnap:pixelsize=14;1
  47. font-1 = unifont:fontformat=truetype:size=10:antialias=false;0
  48. font-2 = siji:pixelsize=10;1
  49.  
  50. modules-left = script1 script2 i3 xwindow
  51. modules-center = mpd
  52. modules-right = volume memory cpu date powermenu
  53.  
  54. tray-position = right
  55. tray-padding = 2
  56. ;tray-transparent = true
  57. tray-background = #051519
  58.  
  59. ;wm-restack = bspwm
  60. ;wm-restack = i3
  61.  
  62. ;override-redirect = true
  63.  
  64. ;scroll-up = bspwm-desknext
  65. ;scroll-down = bspwm-deskprev
  66.  
  67. ;scroll-up = i3wm-wsnext
  68. ;scroll-down = i3wm-wsprev
  69.  
  70. cursor-click = pointer
  71. cursor-scroll = ns-resize
  72.  
  73. [module/script1]
  74. type = custom/script
  75. exec = hostname
  76. #format-underline = ${colors.thirdly}
  77. #label-indicator-underline = ${colors.thirdly}
  78.  
  79. [module/script2]
  80. type = custom/script
  81. exec = uname -r
  82. #format-underline = ${colors.thirdly}
  83. #label-indicator-underline = ${colors.thirdly}
  84.  
  85. [module/xwindow]
  86. type = internal/xwindow
  87. label = %title:0:30:...%
  88.  
  89. [module/filesystem]
  90. type = internal/fs
  91. interval = 25
  92.  
  93. mount-0 = /
  94.  
  95. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  96. label-unmounted = %mountpoint% not mounted
  97. label-unmounted-foreground = ${colors.foreground-alt}
  98.  
  99. [module/i3]
  100. type = internal/i3
  101. index-sort = false
  102. wrapping-scroll = false
  103.  
  104. ; Available tags:
  105. ; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
  106. ; <label-mode> (default)
  107. format = <label-state> <label-mode>
  108.  
  109. ; Available tokens:
  110. ; %mode%
  111. ; Default: %mode%
  112. label-mode = %mode%
  113. label-mode-padding = 2
  114. label-mode-background = #e60053
  115.  
  116. ; Available tokens:
  117. ; %name%
  118. ; %icon%
  119. ; %index%
  120. ; %output%
  121. ; Default: %icon% %name%
  122. label-focused = %index%
  123. label-focused-foreground = #ffffff
  124. label-focused-background = #22292A
  125. label-focused-underline = #E0E5E6
  126.  
  127. label-focused-padding = 2
  128.  
  129. ; Available tokens:
  130. ; %name%
  131. ; %icon%
  132. ; %index%
  133. ; Default: %icon% %name%
  134. label-unfocused = %index%
  135. label-unfocused-padding = 2
  136.  
  137. ; Available tokens:
  138. ; %name%
  139. ; %icon%
  140. ; %index%
  141. ; Default: %icon% %name%
  142. label-visible = %index%
  143. label-visible-underline = #E0E5E6
  144. label-visible-padding = 2
  145.  
  146. ; Available tokens:
  147. ; %name%
  148. ; %icon%
  149. ; %index%
  150. ; Default: %icon% %name%
  151. label-urgent = %index%
  152. label-urgent-foreground = #000000
  153. label-urgent-background = #bd2c40
  154. label-urgent-padding = 2
  155.  
  156. ; Separator in between workspaces
  157. label-separator = |
  158. label-separator-padding = 2
  159. label-separator-foreground = #ffb52a
  160.  
  161. [module/mpd]
  162. type = internal/mpd
  163. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  164. label-song = %title%
  165. label-offline = ? mpd is offline
  166.  
  167. icon-prev = ?
  168. icon-stop = ?
  169. icon-play = ?
  170. icon-pause = ?
  171. icon-next = ?
  172.  
  173. label-song-maxlen = 25
  174. label-song-ellipsis = true
  175.  
  176. [module/xbacklight]
  177. type = internal/xbacklight
  178.  
  179. format = <label> <bar>
  180. label = BL
  181.  
  182. bar-width = 10
  183. bar-indicator = |
  184. bar-indicator-foreground = #ff
  185. bar-indicator-font = 2
  186. bar-fill = ?
  187. bar-fill-font = 2
  188. bar-fill-foreground = #9f78e1
  189. bar-empty = ?
  190. bar-empty-font = 2
  191. bar-empty-foreground = ${colors.foreground-alt}
  192.  
  193. [module/backlight-acpi]
  194. inherit = module/xbacklight
  195. type = internal/backlight
  196. card = intel_backlight
  197.  
  198. [module/cpu]
  199. type = internal/cpu
  200. interval = 2
  201. format-prefix = "? "
  202. format-prefix-foreground = ${colors.foreground-alt}
  203. #format-underline = #f90000
  204. #label = %percentage:2%%
  205. format = <label> <ramp-coreload>
  206. label = CPU %percentage%%
  207.  
  208. ramp-coreload-0 = ?
  209. ramp-coreload-1 = ?
  210. ramp-coreload-2 = ?
  211. ramp-coreload-3 = ?
  212.  
  213. [module/memory]
  214. type = internal/memory
  215. interval = 2
  216. format-prefix = "? "
  217. format-prefix-foreground = ${colors.foreground-alt}
  218. #format-underline = #4bffdc
  219. label = %percentage_used%%
  220.  
  221. [module/wlan]
  222. type = internal/network
  223. interface = wlp0s18f2u2
  224. interval = 3.0
  225.  
  226. format-connected = <ramp-signal> <label-connected>
  227. format-connected-underline = #9f78e1
  228. label-connected = %essid%
  229.  
  230. format-disconnected =
  231. ;format-disconnected = <label-disconnected>
  232. ;format-disconnected-underline = ${self.format-connected-underline}
  233. ;label-disconnected = %ifname% disconnected
  234. ;label-disconnected-foreground = ${colors.foreground-alt}
  235.  
  236. ramp-signal-0 = ?
  237. ramp-signal-1 = ?
  238. ramp-signal-2 = ?
  239. ramp-signal-3 = ?
  240. ramp-signal-4 = ?
  241. ramp-signal-foreground = ${colors.foreground-alt}
  242.  
  243. [module/eth]
  244. type = internal/network
  245. interface = enp4s0
  246. interval = 3.0
  247.  
  248. format-connected-underline = #55aa55
  249. format-connected-prefix = "? "
  250. format-connected-prefix-foreground = ${colors.foreground-alt}
  251. label-connected = %local_ip%
  252.  
  253. format-disconnected =
  254. ;format-disconnected = <label-disconnected>
  255. ;format-disconnected-underline = ${self.format-connected-underline}
  256. ;label-disconnected = %ifname% disconnected
  257. ;label-disconnected-foreground = ${colors.foreground-alt}
  258.  
  259. [module/date]
  260. type = internal/date
  261. interval = 5
  262.  
  263. date =
  264. date-alt = " %Y-%m-%d"
  265.  
  266. time = %H:%M
  267. time-alt = %H:%M:%S
  268.  
  269. format-prefix = ?
  270. format-prefix-foreground = ${colors.foreground-alt}
  271. #format-underline = #0a6cf5
  272.  
  273. label = %date% %time%
  274.  
  275. [module/volume]
  276. type = internal/volume
  277.  
  278. format-volume = <label-volume> <bar-volume>
  279. label-volume = VOL
  280. label-volume-foreground = ${root.foreground}
  281.  
  282. format-muted-prefix = "? "
  283. format-muted-foreground = ${colors.foreground-alt}
  284. label-muted = sound muted
  285.  
  286. bar-volume-width = 10
  287. bar-volume-foreground-0 = #55aa55
  288. bar-volume-foreground-1 = #55aa55
  289. bar-volume-foreground-2 = #55aa55
  290. bar-volume-foreground-3 = #55aa55
  291. bar-volume-foreground-4 = #55aa55
  292. bar-volume-foreground-5 = #f5a70a
  293. bar-volume-foreground-6 = #ff5555
  294. bar-volume-gradient = false
  295. bar-volume-indicator = |
  296. bar-volume-indicator-font = 2
  297. bar-volume-fill = ?
  298. bar-volume-fill-font = 2
  299. bar-volume-empty = ?
  300. bar-volume-empty-font = 2
  301. bar-volume-empty-foreground = ${colors.foreground-alt}
  302.  
  303. [module/powermenu]
  304. type = custom/menu
  305.  
  306. expand-right = true
  307.  
  308. format-spacing = 1
  309.  
  310. label-open = ?
  311. label-open-foreground = ${colors.secondary}
  312. label-close = ? cancel
  313. label-close-foreground = ${colors.secondary}
  314. label-separator = |
  315. label-separator-foreground = ${colors.foreground-alt}
  316.  
  317. menu-0-0 = reboot
  318. menu-0-0-exec = menu-open-1
  319. menu-0-1 = power off
  320. menu-0-1-exec = menu-open-2
  321.  
  322. menu-1-0 = cancel
  323. menu-1-0-exec = menu-open-0
  324. menu-1-1 = reboot
  325. menu-1-1-exec = sudo reboot
  326.  
  327. menu-2-0 = power off
  328. menu-2-0-exec = sudo poweroff
  329. menu-2-1 = cancel
  330. menu-2-1-exec = menu-open-0
  331.  
  332. [settings]
  333. screenchange-reload = true
  334. ;compositing-background = xor
  335. ;compositing-background = screen
  336. ;compositing-foreground = source
  337. ;compositing-border = over
  338.  
  339. [global/wm]
  340. margin-top = 5
  341. margin-bottom = 5
  342.  
  343. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement