SUP3R-US3R

Polybar config

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