Advertisement
Guest User

Untitled

a guest
Oct 27th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.42 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 = #2F2016
  13. background-alt = #444
  14. ;foreground = ${xrdb:color7:#222}
  15. foreground = #d4e6ea
  16. foreground-alt = #555
  17. primary =
  18. secondary =
  19. alert =
  20.  
  21. [bar/example]
  22. monitor = HDMI-0
  23. width = 100%
  24. height = 17
  25. offset-x = 0%
  26. offset-y = 0%
  27. radius = 0
  28. fixed-center = false
  29.  
  30.  
  31. background = ${colors.background}
  32. foreground = ${colors.foreground}
  33.  
  34. line-size = 3
  35. line-color = #f00
  36.  
  37. ;border-size = 4
  38. border-color = #00000000
  39.  
  40. padding-left = 2
  41. padding-right = 2
  42.  
  43. module-margin-left = 1
  44. module-margin-right = 2
  45.  
  46. font-0 = Courier Prime Code Regular:pixelsize=11;1
  47. font-1 = Courier Prime Code Regular:fontformat=truetype:size=8:antialias=true;1
  48. font-2 = Courier Prime Code Regular:pixelsize=11;1
  49.  
  50. modules-left = ewmh xwindow
  51. modules-center = date
  52. modules-right = xkeyboard volume memory cpu temperature
  53.  
  54. tray-position = right
  55. tray-padding = 2
  56. ;tray-transparent = true
  57. ;tray-background = #0063ff
  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. [module/xwindow]
  71. type = internal/xwindow
  72. label = %title:0:64:...%
  73.  
  74. [module/xkeyboard]
  75. type = internal/xkeyboard
  76. blacklist-0 = num lock
  77.  
  78. format-prefix = " "
  79. format-prefix-foreground = ${colors.foreground-alt}
  80. format-prefix-underline = ${colors.secondary}
  81.  
  82. label-layout = %layout%
  83. label-layout-underline = ${colors.secondary}
  84.  
  85. label-indicator-padding = 2
  86. label-indicator-margin = 1
  87. label-indicator-background = ${colors.secondary}
  88. label-indicator-underline = ${colors.secondary}
  89.  
  90. [module/filesystem]
  91. #type = internal/fs
  92. interval = 1
  93.  
  94. mount-0 = /
  95.  
  96. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  97. label-unmounted = %mountpoint% not mounted
  98. label-unmounted-foreground = ${colors.foreground-alt}
  99.  
  100. [module/bspwm]
  101. type = internal/bspwm
  102.  
  103. label-focused = %index%
  104. label-focused-background = ${colors.background-alt}
  105. label-focused-underline= ${colors.primary}
  106. label-focused-padding = 2
  107.  
  108. label-occupied = %index%
  109. label-occupied-padding = 2
  110.  
  111. label-urgent = %index%!
  112. label-urgent-background = ${colors.alert}
  113. label-urgent-padding = 2
  114.  
  115. label-empty = %index%
  116. label-empty-foreground = ${colors.foreground-alt}
  117. label-empty-padding = 2
  118.  
  119. [module/i3]
  120. type = internal/i3
  121. format = <label-state> <label-mode>
  122. index-sort = true
  123. wrapping-scroll = false
  124. enable-click = true
  125. fuzzy-match = true
  126. strip-wsnumbers = true
  127.  
  128. Only show workspaces on the same output as the bar
  129. pin-workspaces = true
  130.  
  131. label-mode-padding = 2
  132. label-mode-foreground = #000
  133. label-mode-background = ${colors.primary}
  134.  
  135. ; focused = Active workspace on focused monitor
  136. label-focused = %index%
  137. label-focused-background = ${module/bspwm.label-focused-background}
  138. label-focused-underline = ${module/bspwm.label-focused-underline}
  139. label-focused-padding = ${module/bspwm.label-focused-padding}
  140.  
  141. ; unfocused = Inactive workspace on any monitor
  142. label-unfocused = %index%
  143. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  144.  
  145. ; visible = Active workspace on unfocused monitor
  146. label-visible = %index%
  147. label-visible-background = ${self.label-focused-background}
  148. label-visible-underline = ${self.label-focused-underline}
  149. label-visible-padding = ${self.label-focused-padding}
  150.  
  151. ; urgent = Workspace with urgency hint set
  152. label-urgent = %index%
  153. label-urgent-background = ${module/bspwm.label-urgent-background}
  154. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  155.  
  156. [module/ewmh]
  157. type = internal/xworkspaces
  158.  
  159. ; Only show workspaces defined on the same output as the bar
  160. ;
  161. ; Useful if you want to show monitor specific workspaces
  162. ; on different bars
  163. ;
  164. ; Default: false
  165. pin-workspaces = false
  166.  
  167. ; Create click handler used to focus desktop
  168. ; Default: true
  169. enable-click = false
  170.  
  171. ; Create scroll handlers used to cycle desktops
  172. ; Default: true
  173. enable-scroll = false
  174.  
  175.  
  176.  
  177. [module/mpd]
  178. type = internal/mpd
  179. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  180.  
  181. icon-prev = 
  182. icon-stop = 
  183. icon-play = 
  184. icon-pause = 
  185. icon-next = 
  186.  
  187. label-song-maxlen = 25
  188. label-song-ellipsis = true
  189.  
  190. [module/xbacklight]
  191. type = internal/xbacklight
  192.  
  193. format = <label> <bar>
  194. label = BL
  195.  
  196. bar-width = 10
  197. bar-indicator = |
  198. bar-indicator-foreground = #ff
  199. bar-indicator-font = 2
  200. bar-fill = ─
  201. bar-fill-font = 2
  202. bar-fill-foreground = #9f78e1
  203. bar-empty = ─
  204. bar-empty-font = 2
  205. bar-empty-foreground = ${colors.foreground-alt}
  206.  
  207. [module/backlight-acpi]
  208. inherit = module/xbacklight
  209. type = internal/backlight
  210. card = intel_backlight
  211.  
  212. [module/cpu]
  213. type = internal/cpu
  214. interval = 1
  215. format-prefix = " "
  216. format-prefix-foreground = ${colors.foreground-alt}
  217. #format-underline = #f90000
  218. label =CPU %percentage%%
  219.  
  220. [module/memory]
  221. type = internal/memory
  222. interval = 1
  223. format-prefix = " "
  224. format-prefix-foreground = ${colors.foreground-alt}
  225. #format-underline = #4bffdc
  226. label =RAM %percentage_used%%
  227.  
  228. [module/wlan]
  229. #type = internal/network
  230. interface = wlp3s0
  231. interval = 3.0
  232.  
  233. format-connected = <ramp-signal> <label-connected>
  234. format-connected-underline = #9f78e1
  235. label-connected = %essid%
  236.  
  237. format-disconnected =
  238. ;format-disconnected = <label-disconnected>
  239. ;format-disconnected-underline = ${self.format-connected-underline}
  240. ;label-disconnected = %ifname% disconnected
  241. ;label-disconnected-foreground = ${colors.foreground-alt}
  242.  
  243. ramp-signal-0 = 
  244. ramp-signal-1 = 
  245. ramp-signal-2 = 
  246. ramp-signal-3 = 
  247. ramp-signal-4 = 
  248. ramp-signal-foreground = ${colors.foreground-alt}
  249.  
  250. [module/wireless]
  251. type = internal/network
  252. interface = wlp7s0
  253. format-connected = <label-connected>
  254. format-disconnected = <label-disconnected>
  255. label-connected =  %essid%
  256. label-disconnected = 
  257.  
  258. [module/eth]
  259. type = internal/network
  260. interface = eno1
  261. interval = 3.0
  262.  
  263. format-connected-underline = #55aa55
  264. format-connected-prefix = " "
  265. format-connected-prefix-foreground = ${colors.foreground-alt}
  266. label-connected = %local_ip%
  267.  
  268. format-disconnected =
  269. ;format-disconnected = <label-disconnected>
  270. ;format-disconnected-underline = ${self.format-connected-underline}
  271. ;label-disconnected = %ifname% disconnected
  272. ;label-disconnected-foreground = ${colors.foreground-alt}
  273.  
  274. [module/date]
  275. type = internal/date
  276. interval = 1
  277.  
  278. date =
  279. date-alt = " %Y-%m-%d"
  280.  
  281. time = "%a %b %d, %I:%M %p"
  282. time-alt = %H:%M:%S
  283.  
  284. format-prefix = 
  285. format-prefix-foreground = ${colors.foreground-alt}
  286. #format-underline = #0a6cf5
  287.  
  288. label = %date% %time%
  289.  
  290. [module/volume]
  291. type = internal/volume
  292.  
  293. format-volume = <label-volume> <bar-volume>
  294. format-volume-prefix = 
  295. label-volume =
  296. label-volume-foreground = ${root.foreground}
  297.  
  298. format-muted-prefix = " "
  299. format-muted-foreground = #969494
  300. label-muted = sound muted
  301.  
  302. bar-volume-width = 6
  303. bar-volume-foreground-0 = #dfdfdf
  304. bar-volume-foreground-1 = #dfdfdf
  305. bar-volume-foreground-2 = #dfdfdf
  306. bar-volume-foreground-3 = #dfdfdf
  307. bar-volume-foreground-4 = #dfdfdf
  308. bar-volume-foreground-5 = #dfdfdf
  309. bar-volume-foreground-6 = #dfdfdf
  310. bar-volume-gradient = false
  311. bar-volume-indicator =
  312. bar-volume-indicator-font = 1
  313. bar-volume-fill = #
  314. bar-volume-fill-font = 1
  315. bar-volume-empty = #
  316. bar-volume-empty-font = 1
  317. bar-volume-empty-foreground = #969494
  318.  
  319. [module/battery]
  320. type = internal/battery
  321. battery = BAT0
  322. adapter = ADP1
  323. full-at = 98
  324.  
  325. format-charging = <animation-charging> <label-charging>
  326. format-charging-underline = #ffb52a
  327.  
  328. format-discharging = <ramp-capacity> <label-discharging>
  329. format-discharging-underline = ${self.format-charging-underline}
  330.  
  331. format-full-prefix = " "
  332. format-full-prefix-foreground = ${colors.foreground-alt}
  333. format-full-underline = ${self.format-charging-underline}
  334.  
  335. ramp-capacity-0 = 
  336. ramp-capacity-1 = 
  337. ramp-capacity-2 = 
  338. ramp-capacity-foreground = ${colors.foreground-alt}
  339.  
  340. animation-charging-0 = 
  341. animation-charging-1 = 
  342. animation-charging-2 = 
  343. animation-charging-foreground = ${colors.foreground-alt}
  344. animation-charging-framerate = 750
  345.  
  346. [module/temperature]
  347. #type = internal/temperature
  348. #thermal-zone = 2
  349. #warn-temperature = 60
  350.  
  351. format = <ramp> <label>
  352. format-underline =
  353. format-warn = <ramp> <label-warn>
  354. format-warn-underline = ${self.format-underline}
  355.  
  356. label = %temperature%
  357. label-warn = %temperature%
  358. label-warn-foreground = ${colors.secondary}
  359.  
  360. ramp-0 = 
  361. ramp-1 = 
  362. ramp-2 = 
  363. ramp-foreground = ${colors.foreground-alt}
  364.  
  365. [module/powermenu]
  366. type = custom/menu
  367.  
  368. format-spacing = 1
  369.  
  370. label-open = 
  371. label-open-foreground = ${colors.secondary}
  372. label-close =  cancel
  373. label-close-foreground = ${colors.secondary}
  374. label-separator = |
  375. label-separator-foreground = ${colors.foreground-alt}
  376.  
  377. menu-0-0 = restart
  378. menu-0-0-exec = menu-open-1
  379. menu-0-1 = power off
  380. menu-0-1-exec = menu-open-2
  381.  
  382. menu-1-0 = cancel
  383. menu-1-0-exec = menu-open-0
  384. menu-1-1 = restart
  385. menu-1-1-exec = sudo reboot
  386.  
  387. menu-2-0 = power off
  388. menu-2-0-exec = sudo poweroff
  389. menu-2-1 = cancel
  390. menu-2-1-exec = menu-open-0
  391.  
  392. [settings]
  393. screenchange-reload = true
  394. ;compositing-background = xor
  395. ;compositing-background = screen
  396. ;compositing-foreground = source
  397. ;compositing-border = over
  398.  
  399. [global/wm]
  400. margin-top = 5
  401. margin-bottom = 5
  402.  
  403. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement