Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.19 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 = #222
  12. background-alt = #444
  13. foreground = #dfdfdf
  14. foreground-alt = #55
  15. primary = #ffb52a
  16. secondary = #e60053
  17. alert = #bd2c40
  18.  
  19. [global/wm]
  20. margin-top = 5
  21. margin-bottom = 5
  22.  
  23. [bar/example]
  24. ;monitor = ${env:MONITOR:HDMI-1}
  25. width = 100%
  26. height = 27
  27. offset-x = 0
  28. offset-y = 0
  29.  
  30. ;background = ${xrdb:color9}
  31. background = ${colors.background}
  32. foreground = ${colors.foreground}
  33.  
  34. overline-size = 2
  35. overline-color = #f00
  36. underline-size = 2
  37. underline-color = #00f
  38.  
  39. border-bottom = 2
  40. border-bottom-color = #333
  41.  
  42. spacing = 1
  43. padding-left = 0
  44. padding-right = 2
  45. module-margin-left = 1
  46. module-margin-right = 2
  47.  
  48. font-0 = fixed:pixelsize=10;0
  49. font-1 = unifont:size=6:heavy:fontformat=truetype;-2
  50. font-2 = siji:pixelsize=10;0
  51.  
  52. modules-left = bspwm i3 xwindow
  53. modules-center =
  54. modules-right = backlight volume xkeyboard memory cpu wlan eth battery temperature date powermenu
  55.  
  56. tray-position = right
  57. tray-padding = 2
  58. ;tray-transparent = true
  59. ;tray-background = #0063ff
  60.  
  61. ;wm-restack = bspwm
  62. ;wm-restack = i3
  63.  
  64. ;override-redirect = true
  65.  
  66. ;scroll-up = bspwm-desknext
  67. ;scroll-down = bspwm-deskprev
  68.  
  69. ;scroll-up = i3wm-wsnext
  70. ;scroll-down = i3wm-wsprev
  71.  
  72.  
  73. [module/xwindow]
  74. type = internal/xwindow
  75. label = %title:0:30:...%
  76.  
  77. [module/xkeyboard]
  78. type = internal/xkeyboard
  79. blacklist-0 = num lock
  80.  
  81. format-underline = ${colors.secondary}
  82. format-prefix = " "
  83. format-prefix-foreground = ${colors.foreground-alt}
  84.  
  85. label-layout = %layout%
  86.  
  87. label-indicator-padding = 2
  88. label-indicator-background = ${colors.secondary}
  89. label-indicator-underline = ${colors.secondary}
  90.  
  91. [module/filesystem]
  92. type = internal/fs
  93. interval = 25
  94.  
  95. mount-0 = /
  96. mount-1 = /home
  97. mount-2 = /invalid/mountpoint
  98.  
  99. label-mounted = %mountpoint%: %percentage_free%
  100.  
  101. label-unmounted = %mountpoint%: not mounted
  102. label-unmounted-foreground = ${colors.foreground-alt}
  103.  
  104. [module/bspwm]
  105. type = internal/bspwm
  106. ws-icon-default = x
  107.  
  108. label-focused = %index%
  109. label-focused-background = ${colors.background-alt}
  110. label-focused-underline= ${colors.primary}
  111. label-focused-padding = 2
  112.  
  113. label-occupied = %index%
  114. label-occupied-padding = 2
  115.  
  116. label-urgent = %index%
  117. label-urgent-background = ${colors.alert}
  118. label-urgent-padding = 2
  119.  
  120. label-empty = %index%
  121. label-empty-foreground = ${colors.foreground-alt}
  122. label-empty-padding = 2
  123.  
  124. [module/i3]
  125. type = internal/i3
  126. format = <label-state> <label-mode>
  127. index-sort = true
  128.  
  129. label-mode = %mode%
  130. label-mode-padding = 2
  131. label-mode-foreground = #000
  132. label-mode-background = ${colors.primary}
  133.  
  134. label-focused = %index%
  135. label-focused-background = ${module/bspwm.label-focused-background}
  136. label-focused-underline = ${module/bspwm.label-focused-underline}
  137. label-focused-padding = ${module/bspwm.label-focused-padding}
  138.  
  139. label-unfocused = %index%
  140. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  141.  
  142. label-urgent = %index%!
  143. label-urgent-background = ${colors.alert}
  144. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  145.  
  146. label-visible = %index%
  147. label-visible-foreground = ${module/bspwm.label-empty-padding}
  148. label-visible-padding = ${module/bspwm.label-empty-padding}
  149.  
  150. [module/mpd]
  151. type = internal/mpd
  152.  
  153. format-online = <label-song> <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next> <icon-repeat> <icon-random>
  154.  
  155. label-song-maxlen = 25
  156. label-song-ellipsis = true
  157.  
  158. icon-prev = 
  159. icon-seekb = 
  160. icon-stop = 
  161. icon-play = 
  162. icon-pause = 
  163. icon-next = 
  164. icon-seekf = 
  165.  
  166. icon-random = 
  167. icon-repeat = 
  168.  
  169. toggle-on-foreground = ${colors.primary}
  170. toggle-off-foreground = #66
  171.  
  172. [module/backlight]
  173. type = internal/xbacklight
  174.  
  175. format = <label> <bar>
  176. label = BL
  177.  
  178. bar-width = 10
  179. bar-indicator = │
  180. bar-indicator-foreground = #ff
  181. bar-indicator-font = 2
  182. bar-fill = ─
  183. bar-fill-font = 2
  184. bar-fill-foreground = #9f78e1
  185. bar-empty = ─
  186. bar-empty-font = 2
  187. bar-empty-foreground = ${colors.foreground-alt}
  188.  
  189. [module/cpu]
  190. type = internal/cpu
  191. interval = 2
  192. format-prefix = " "
  193. format-prefix-foreground = ${colors.foreground-alt}
  194. format-underline = #f90000
  195. label = %percentage%
  196.  
  197. [module/memory]
  198. type = internal/memory
  199. interval = 2
  200. format-prefix = " "
  201. format-prefix-foreground = ${colors.foreground-alt}
  202. format-underline = #4bffdc
  203. label = %percentage_used%
  204.  
  205. [module/wlan]
  206. type = internal/network
  207. interface = net1
  208. interval = 3.0
  209.  
  210. format-connected = <ramp-signal> <label-connected>
  211. format-connected-underline = #9f78e1
  212. format-disconnected-underline = ${self.format-connected-underline}
  213.  
  214. label-connected = %essid%
  215. label-disconnected = %ifname% disconnected
  216. label-disconnected-foreground = ${colors.foreground-alt}
  217.  
  218. ramp-signal-0 = 
  219. ramp-signal-1 = 
  220. ramp-signal-2 = 
  221. ramp-signal-3 = 
  222. ramp-signal-4 = 
  223. ramp-signal-foreground = ${colors.foreground-alt}
  224.  
  225. [module/eth]
  226. type = internal/network
  227. interface = enp0s3
  228. interval = 3.0
  229.  
  230. format-connected-underline = #55aa55
  231. format-connected-prefix = " "
  232. format-connected-foreground-foreground = ${colors.foreground-alt}
  233. label-connected = %local_ip%
  234.  
  235. format-disconnected-underline = ${self.format-connected-underline}
  236. label-disconnected = %ifname% disconnected
  237. label-disconnected-foreground = ${colors.foreground-alt}
  238.  
  239. [module/date]
  240. type = internal/date
  241. interval = 5
  242.  
  243. date =
  244. date-alt = " %Y-%m-%d"
  245.  
  246. time = %H:%M
  247. time-alt = %H:%M:%S
  248.  
  249. format-prefix = 
  250. format-prefix-foreground = ${colors.foreground-alt}
  251. format-underline = #0a6cf5
  252.  
  253. label = %date% %time%
  254.  
  255. [module/volume]
  256. type = internal/volume
  257.  
  258. format-volume = <label-volume> <bar-volume>
  259. label-volume = VOL
  260. label-volume-foreground = ${root.foreground}
  261.  
  262. format-muted-prefix = " "
  263. format-muted-foreground = ${colors.foreground-alt}
  264. label-muted = sound muted
  265.  
  266. bar-volume-width = 10
  267. bar-volume-foreground-0 = #55aa55
  268. bar-volume-foreground-1 = #55aa55
  269. bar-volume-foreground-2 = #55aa55
  270. bar-volume-foreground-3 = #55aa55
  271. bar-volume-foreground-4 = #55aa55
  272. bar-volume-foreground-5 = #f5a70a
  273. bar-volume-foreground-6 = #ff5555
  274. bar-volume-gradient = false
  275. bar-volume-indicator = │
  276. bar-volume-indicator-font = 2
  277. bar-volume-indicator-foreground = #ff
  278. bar-volume-fill = ─
  279. bar-volume-fill-font = 2
  280. bar-volume-empty = ─
  281. bar-volume-empty-font = 2
  282. bar-volume-empty-foreground = ${colors.foreground-alt}
  283.  
  284. [module/battery]
  285. type = internal/battery
  286. battery = BAT0
  287. adapter = AC
  288. full-at = 98
  289.  
  290. format-charging = <animation-charging> <label-charging>
  291. format-charging-underline = #ffb52a
  292.  
  293. format-discharging = <ramp-capacity> <label-discharging>
  294. format-discharging-underline = ${self.format-charging-underline}
  295.  
  296. format-full-prefix = " "
  297. format-full-prefix-foreground = ${colors.foreground-alt}
  298. format-full-underline = ${self.format-charging-underline}
  299.  
  300. ramp-capacity-0 = 
  301. ramp-capacity-1 = 
  302. ramp-capacity-2 = 
  303. ramp-capacity-foreground = ${colors.foreground-alt}
  304.  
  305. animation-charging-0 = 
  306. animation-charging-1 = 
  307. animation-charging-2 = 
  308. animation-charging-foreground = ${colors.foreground-alt}
  309. animation-charging-framerate = 750
  310.  
  311. [module/temperature]
  312. type = internal/temperature
  313. thermal-zone = 0
  314. warn-temperature = 60
  315.  
  316. format = <ramp> <label>
  317. format-underline = #f50a4d
  318. format-warn = <ramp> <label-warn>
  319. format-warn-underline = ${self.format-underline}
  320.  
  321. label = %temperature%
  322. label-warn = %temperature%
  323. label-warn-foreground = ${colors.secondary}
  324.  
  325. ramp-0 = 
  326. ramp-1 = 
  327. ramp-2 = 
  328. ramp-foreground = ${colors.foreground-alt}
  329.  
  330. [module/powermenu]
  331. type = custom/menu
  332.  
  333. label-open =  power
  334. label-open-foreground = ${colors.secondary}
  335. label-close =  cancel
  336. label-close-foreground = ${colors.secondary}
  337. label-separator = |
  338. label-separator-foreground = ${colors.foreground-alt}
  339.  
  340. menu-0-0 = reboot
  341. menu-0-0-exec = menu-open-1
  342. menu-0-1 = power off
  343. menu-0-1-exec = menu-open-2
  344.  
  345. menu-1-0 = cancel
  346. menu-1-0-exec = menu-open-0
  347. menu-1-1 = reboot
  348. menu-1-1-exec = sudo reboot
  349.  
  350. menu-2-0 = power off
  351. menu-2-0-exec = sudo poweroff
  352. menu-2-1 = cancel
  353. menu-2-1-exec = menu-open-0
  354.  
  355. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement