Advertisement
Guest User

polybar settings

a guest
Sep 5th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.64 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-alt = ${xrdb:color6:#222}
  13. foreground = ${xrdb:color7:#222}
  14. foreground-alt = ${xrdb:color7:#222}
  15. primary = ${xrdb:color1:#222}
  16. secondary = ${xrdb:color2:#222}
  17. alert = ${xrdb:color3:#222}
  18.  
  19. [bar/example]
  20. width = 100%
  21. height = 27
  22. radius = 0.0
  23. fixed-center = false
  24.  
  25.  
  26. background = ${colors.background}
  27. background-alt = ${colors.background-alt}
  28. foreground = ${colors.foreground}
  29. foreground-alt = ${colors.foreground-alt}
  30.  
  31. line-size = 3
  32. line-color = #f00
  33.  
  34. border-size = 0
  35. border-color = #00000000
  36.  
  37. padding-left = 2
  38. padding-right = 2
  39.  
  40. module-margin-left = 1
  41. module-margin-right = 2
  42.  
  43. font-0 = "xos4 Terminus:size=10:antialias=false"
  44. font-2 = "Unifont:size=10:antialias=false"
  45. font-1 = "Wuncon Siji:pixelsize=10:antialias=false;1"
  46.  
  47. modules-left = bspwm i3
  48. modules-center = mpd
  49. modules-right = filesystem eth volume xkeyboard memory cpu battery temperature date powermenu
  50.  
  51. tray-position = right
  52. tray-padding = 2
  53. #tray-transparent = true
  54. #tray-background = ${colors.background}
  55.  
  56. wm-restack = bspwm
  57. ;wm-restack = i3
  58.  
  59. ;override-redirect = true
  60.  
  61. scroll-up = bspwm-desknext
  62. scroll-down = bspwm-deskprev
  63.  
  64. ;scroll-up = i3wm-wsnext
  65. ;scroll-down = i3wm-wsprev
  66.  
  67. [module/xwindow]
  68. type = internal/xwindow
  69. label = %title:0:30:...%
  70.  
  71. [module/xkeyboard]
  72. type = internal/xkeyboard
  73. blacklist-0 = num lock
  74.  
  75. format-prefix = "๎‰ฏ "
  76. format-prefix-foreground = ${colors.foreground-alt}
  77. format-prefix-underline = ${colors.primary}
  78.  
  79. label-layout = %layout%
  80. label-layout-underline = ${colors.primary}
  81.  
  82. label-indicator-padding = 2
  83. label-indicator-margin = 1
  84. label-indicator-background = ${colors.secondary}
  85. label-indicator-underline = ${colors.primary}
  86.  
  87. [module/filesystem]
  88. type = internal/fs
  89. interval = 25
  90.  
  91. mount-0 = /
  92. mount-1 = /home
  93.  
  94. format-mounted-prefix = "๎€ช "
  95. format-mounted-prefix-foreground = ${colors.foreground-alt}
  96. ;label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  97. ;label-mounted = %percentage_used%%
  98. label-mounted = %mountpoint%%{F-}: %percentage_used%%
  99. ;label-unmounted = %mountpoint% not mounted
  100. ;label-unmounted-foreground = ${colors.foreground-alt}
  101.  
  102.  
  103.  
  104. [module/bspwm]
  105. type = internal/bspwm
  106.  
  107. label-focused = %name%
  108. label-focused-background = ${colors.background-alt}
  109. label-focused-underline= ${colors.secondary}
  110. label-focused-padding = 2
  111.  
  112. label-occupied = %name%
  113. label-occupied-padding = 2
  114. label-occupied-underline= ${colors.primary}
  115. label-occupied-foreground = ${colors.foreground-alt}
  116.  
  117. label-urgent = %name%!
  118. label-urgent-background = ${colors.alert}
  119. label-urgent-padding = 2
  120.  
  121. label-empty = %name%
  122. label-empty-foreground = ${colors.foreground-alt}
  123. label-empty-padding = 2
  124.  
  125.  
  126.  
  127. [module/i3]
  128. type = internal/i3
  129. format = <label-state> <label-mode>
  130. index-sort = true
  131. wrapping-scroll = false
  132. strip-wsnumbers = true
  133.  
  134. ; Only show workspaces on the same output as the bar
  135. ;pin-workspaces = true
  136.  
  137. label-mode-padding = 2
  138. label-mode-foreground = #000
  139. label-mode-background = ${colors.primary}
  140.  
  141. ; focused = Active workspace on focused monitor
  142. label-focused = %name%
  143. label-focused-background = ${module/bspwm.label-focused-background}
  144. label-focused-underline = ${module/bspwm.label-focused-underline}
  145. label-focused-padding = ${module/bspwm.label-focused-padding}
  146.  
  147. ; unfocused = Inactive workspace on any monitor
  148. label-unfocused = %name%
  149. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  150.  
  151. ; visible = Active workspace on unfocused monitor
  152. label-visible = %name%
  153. label-visible-background = ${self.label-focused-background}
  154. label-visible-underline = ${self.label-focused-underline}
  155. label-visible-padding = ${self.label-focused-padding}
  156.  
  157. ; urgent = Workspace with urgency hint set
  158. label-urgent = %name%
  159. label-urgent-background = ${module/bspwm.label-urgent-background}
  160. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  161.  
  162. [module/mpd]
  163. type = internal/mpd
  164. host = 127.0.0.1
  165. port = 3938
  166. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> <label-time>
  167. label-offline = ๐ŸŽœ mpd is offline
  168. icon-prev = ๎‚–
  169. icon-stop = ๎‚™
  170. icon-play = ๎‚š
  171. icon-pause = ๎‚›
  172. icon-next = ๎‚œ
  173.  
  174. label-song-maxlen = 50
  175. label-song-ellipsis = true
  176.  
  177. [module/xbacklight]
  178. type = internal/xbacklight
  179.  
  180. format = <label> <bar>
  181. label = BL
  182.  
  183. bar-width = 10
  184. bar-indicator = |
  185. bar-indicator-foreground = #ff
  186. bar-indicator-font = 2
  187. bar-fill = โ”€
  188. bar-fill-font = 2
  189. bar-fill-foreground = #9f78e1
  190. bar-empty = โ”€
  191. bar-empty-font = 2
  192. bar-empty-foreground = ${colors.foreground-alt}
  193.  
  194. [module/backlight-acpi]
  195. inherit = module/xbacklight
  196. type = internal/backlight
  197. card = intel_backlight
  198.  
  199. [module/cpu]
  200. type = internal/cpu
  201. interval = 2
  202. format-prefix = "๎€ฆ "
  203. format-prefix-foreground = ${colors.foreground-alt}
  204. format-underline = ${colors.primary}
  205. label = CPU %percentage%%
  206.  
  207. [module/memory]
  208.  
  209. type = internal/memory
  210. interval = 2
  211. format-prefix = "๎€จ "
  212. format-prefix-foreground = ${colors.foreground-alt}
  213. format-underline = ${colors.secondary}
  214. label = %mb_used%
  215.  
  216. [module/wlan]
  217. type = internal/network
  218. interface = wlp2s0
  219. interval = 3.0
  220.  
  221. format-connected = <ramp-signal> <label-connected>
  222. ;format-connected-underline = ${colors.primary}
  223. label-connected = %essid%
  224.  
  225. format-disconnected =
  226. ;format-disconnected = <label-disconnected>
  227. ;format-disconnected-underline = ${self.format-connected-underline}
  228. ;label-disconnected = %ifname% disconnected
  229. ;label-disconnected-foreground = ${colors.foreground-alt}
  230.  
  231. ramp-signal-0 = ๎ˆ˜
  232. ramp-signal-1 = ๎ˆ™
  233. ramp-signal-2 = ๎ˆš
  234. ramp-signal-3 = ๎ˆš
  235. ramp-signal-4 = ๎ˆš
  236. ramp-signal-foreground = ${colors.foreground-alt}
  237.  
  238. [module/eth]
  239. type = internal/network
  240. interface = wlp2s0
  241. interval = 3.0
  242.  
  243. ;format-connected-underline = ${colors.primary}
  244. format-connected-prefix = "๎†œ "
  245. format-connected-prefix-foreground = ${colors.foreground-alt}
  246. label-connected = %local_ip%
  247.  
  248. format-disconnected =
  249. ;format-disconnected = <label-disconnected>
  250. ;format-disconnected-underline = ${self.format-connected-underline}
  251. ;label-disconnected = %ifname% disconnected
  252. ;label-disconnected-foreground = ${colors.foreground-alt}
  253.  
  254. [module/date]
  255. type = internal/date
  256. interval = 5
  257.  
  258. date =
  259. date-alt = " %d-%m-%Y"
  260.  
  261. time = %H:%M
  262. time-alt = %H:%M:%S
  263.  
  264. format-prefix = ๎€–
  265. format-prefix-foreground = ${colors.foreground-alt}
  266. format-underline = ${colors.primary}
  267.  
  268. label = %date% %time%
  269.  
  270. [module/volume]
  271. type = internal/volume
  272.  
  273. format-volume-prefix = "๎ "
  274. format-volume-prefix-foreground = ${colors.foreground-alt}
  275. format-volume = <bar-volume>
  276. ;label-volume = VOL
  277. ;label-volume-foreground = ${root.foreground}
  278.  
  279. format-muted-prefix = "๎ "
  280. format-muted-foreground = ${colors.foreground-alt}
  281. label-muted = sound muted
  282.  
  283. bar-volume-width = 12
  284. bar-volume-foreground-0 = #6557E8
  285. bar-volume-foreground-1 = #6557E8
  286. bar-volume-foreground-2 = #6557E8
  287. bar-volume-foreground-3 = #6557E8
  288. bar-volume-foreground-4 = #6557E8
  289. bar-volume-foreground-5 = #6557E8
  290. bar-volume-foreground-6 = #6557E8
  291. bar-volume-gradient = false
  292. bar-volume-indicator = โ€ข
  293. bar-volume-indicator-font = 0
  294. bar-volume-fill = โ€ข
  295. bar-volume-fill-font = 0
  296. bar-volume-empty = ยท
  297. ;bar-volume-empty = |
  298. bar-volume-empty-font = 0
  299. bar-volume-empty-foreground = ${colors.foreground-alt}
  300.  
  301. [module/battery]
  302. type = internal/battery
  303. battery = BAT0
  304. adapter = AC
  305. full-at = 98
  306.  
  307. format-charging = <animation-charging> <label-charging>
  308. format-charging-underline = ${colors.primary}
  309.  
  310. format-discharging = <ramp-capacity> <label-discharging>
  311. format-discharging-underline = ${self.format-charging-underline}
  312.  
  313. format-full-prefix = "๎ˆบ "
  314. format-full-prefix-foreground = ${colors.foreground-alt}
  315. format-full-underline = ${self.format-charging-underline}
  316.  
  317. ramp-capacity-0 = ๎ˆถ
  318. ramp-capacity-1 = ๎ˆท
  319. ramp-capacity-2 = ๎ˆธ
  320. ramp-capacity-foreground = ${colors.foreground-alt}
  321.  
  322. animation-charging-0 = ๎ˆถ
  323. animation-charging-1 = ๎ˆท
  324. animation-charging-2 = ๎ˆธ
  325. animation-charging-foreground = ${colors.foreground-alt}
  326. animation-charging-framerate = 750
  327.  
  328. [module/temperature]
  329. type = internal/temperature
  330. thermal-zone = 0
  331. warn-temperature = 60
  332.  
  333. format = <ramp> <label>
  334. format-underline = ${colors.secondary}
  335. format-warn = <ramp> <label-warn>
  336. format-warn-underline = #BA58E5
  337.  
  338. label = %temperature%
  339. label-warn = %temperature%
  340. label-warn-foreground = ${colors.secondary}
  341.  
  342. ramp-0 = ๎ƒ‰
  343. ramp-1 = ๎ƒŠ
  344. ramp-2 = ๎ƒ‹
  345. ramp-foreground = ${colors.foreground-alt}
  346.  
  347. [module/powermenu]
  348. type = custom/menu
  349.  
  350. format-spacing = 1
  351.  
  352. label-open = ๎„Œ
  353. label-open-foreground = ${colors.secondary}
  354. label-close = ๎ฅ cancel
  355. label-close-foreground = ${colors.secondary}
  356. label-separator = |
  357. label-separator-foreground = ${colors.foreground-alt}
  358.  
  359. menu-0-0 = reboot
  360. menu-0-0-exec = menu-open-1
  361. menu-0-1 = power off
  362. menu-0-1-exec = menu-open-2
  363.  
  364. menu-1-0 = cancel
  365. menu-1-0-exec = menu-open-0
  366. menu-1-1 = reboot
  367. menu-1-1-exec = sudo reboot
  368.  
  369. menu-2-0 = power off
  370. menu-2-0-exec = sudo poweroff
  371. menu-2-1 = cancel
  372. menu-2-1-exec = menu-open-0
  373.  
  374. [settings]
  375. screenchange-reload = true
  376. ;compositing-background = xor
  377. ;compositing-background = screen
  378. ;compositing-foreground = source
  379. ;compositing-border = over
  380.  
  381. [global/wm]
  382. margin-top = 0
  383. margin-bottom = 0
  384.  
  385. [module/backlight]
  386. type = custom/script
  387. interval = 0.1
  388. ;format-underline = #f90000
  389. format-prefix = "๎ˆด "
  390. format-prefix-foreground = ${colors.foreground-alt}
  391. exec = cat /sys/class/backlight/intel_backlight/brightness
  392. format-underline = ${colors.primary}
  393.  
  394. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement