Advertisement
Guest User

polybar config

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