Guest User

Polybar Config

a guest
Feb 12th, 2020
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.29 KB | None | 0 0
  1. [colors]
  2. ;background = ${xrdb:color0:#222}
  3. ;background = #222
  4. background = #aa141414
  5. background-alt = #444
  6. ;foreground = ${xrdb:color7:#222}
  7. foreground = #dfdfdf
  8. foreground-alt = #555
  9. primary = #ffb52a
  10. secondary = #e60053
  11. alert = #bd2c40
  12.  
  13. ;[colors]
  14. ;background = ${xrdb:color0:#222}
  15. ;background-alt = ${xrdb:color0:#222}
  16. ;foreground = ${xrdb:color7:#222}
  17. ;foreground-alt = ${xrdb:color7:#222}
  18. ;primary = ${xrdb:color1:#222}
  19. ;secondary = ${xrdb:color2:#222}
  20. ;alert = ${xrdb:color3:#222}
  21.  
  22. [bar/bar]
  23. ; ...
  24. background = ${colors.background}
  25. foreground = ${colors.foreground}
  26.  
  27. [bar/example]
  28. monitor = ${env:MONITOR:VGA-0}
  29. width = 90%
  30. height = 26
  31. offset-x = 5%
  32. offset-y = 0.5%
  33. radius = 15.0
  34. fixed-center = true
  35.  
  36. background = ${colors.background}
  37. foreground = ${colors.foreground}
  38.  
  39. line-size = 1
  40. line-color = #f00
  41.  
  42. border-size = 0
  43. border-color = #353535
  44.  
  45. padding-left = 2
  46. padding-right = 2
  47.  
  48. module-margin-left = 1
  49. module-margin-right = 1
  50.  
  51. #font-0 = fixed:pixelsize=10;1
  52. font-0 = Roboto Regular:size=10;1
  53. font-1 = unifont:fontformat=truetype:size=8:antialias=true;0
  54. font-2 = siji:pixelsize=10;1
  55. font-3 = Font Awesome 5 Free:size=10;1
  56. font-4 = Iosevka:size=10;0
  57. font-5 = Hack:size=10;0
  58.  
  59. modules-left = Term_Label Manjaro_Label mpris xwindow
  60. modules-center = date
  61. modules-right = xbacklight pulseaudio xkeyboard memory cpu wlan temperature
  62.  
  63. tray-position = right
  64. tray-padding = 2
  65. ;tray-background = #0063ff
  66. tray-detached = false
  67. ;tray-offset-x = 0
  68. ;tray-offset-y = 0
  69. tray-maxsize = 20
  70. tray-scale = 1.0
  71.  
  72. wm-restack = bspwm
  73. ;wm-restack = i3
  74.  
  75. ;override-redirect = true
  76.  
  77. ;scroll-up = bspwm-desknext
  78. ;scroll-down = bspwm-deskprev
  79.  
  80. ;scroll-up = i3wm-wsnext
  81. ;scroll-down = i3wm-wsprev
  82.  
  83. cursor-click = pointer
  84. cursor-scroll = ns-resize
  85.  
  86. [bar/bottom_bar]
  87. monitor = ${env:MONITOR:VGA-0}
  88. width = 245
  89. height = 26
  90. offset-x = 43.6%
  91. offset-y = 0.5%
  92. radius = 10.0
  93. fixed-center = true
  94. bottom = true
  95.  
  96. ;background = ${colors.background}
  97. ;foreground = ${colors.foreground}
  98.  
  99. background = #aa141414
  100. foreground = #FFFFFF
  101.  
  102. line-size = 1
  103. line-color = #f00
  104.  
  105. border-size = 0
  106. border-color = #353535
  107.  
  108. padding-left = 0
  109. padding-right = 2
  110.  
  111. module-margin-left = 1
  112. module-margin-right = 1
  113.  
  114. #font-0 = fixed:pixelsize=10;1
  115. #font-0 = Droid Sans:size=10;1
  116. font-0 = Roboto Regular:size=10;1
  117. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  118. font-2 = siji:pixelsize=10;1
  119. font-3 = Font Awesome 5 Free:size=10;1
  120. font-4 = Iosevka:size=10;0
  121. font-5 = Hack:size=10;0
  122.  
  123. ;modules-left = bspwm xwindow
  124. modules-center = bspwm
  125. ;modules-right = xbacklight pulseaudio xkeyboard memory cpu wlan temperature
  126.  
  127. wm-restack = bspwm
  128. ;wm-restack = i3
  129.  
  130. ;override-redirect = true
  131.  
  132. ;scroll-up = bspwm-desknext
  133. ;scroll-down = bspwm-deskprev
  134.  
  135. ;scroll-up = i3wm-wsnext
  136. ;scroll-down = i3wm-wsprev
  137.  
  138. cursor-click = pointer
  139. cursor-scroll = ns-resize
  140.  
  141. [module/Manjaro_Label]
  142. type = custom/text
  143. content = 
  144. click-left = rofi -show
  145. click-middle = echo middle
  146. click-right = echo right
  147. content-padding = 2
  148.  
  149. [module/Term_Label]
  150. type = custom/text
  151. content = •
  152. click-left = alacritty -e tmux
  153.  
  154. ;content-background = #000
  155. content-foreground = #fff
  156. content-padding = 2
  157.  
  158. [module/xwindow]
  159. type = internal/xwindow
  160. label = %title:0:30:...%
  161. label-active-font = 0
  162.  
  163. [module/xkeyboard]
  164. type = internal/xkeyboard
  165. blacklist-0 = num lock
  166.  
  167. format-prefix = " "
  168. format-prefix-foreground = ${colors.foreground-alt}
  169. ;format-prefix-underline = ${colors.secondary}
  170.  
  171. label-layout = %layout%
  172. ;label-layout-underline = ${colors.secondary}
  173.  
  174. label-indicator-padding = 2
  175. label-indicator-margin = 1
  176. label-indicator-background = ${colors.secondary}
  177. ;label-indicator-underline = ${colors.secondary}
  178.  
  179. [module/filesystem]
  180. type = internal/fs
  181. interval = 25
  182.  
  183. mount-0 = /
  184. mount-1 = /home
  185.  
  186. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  187. label-unmounted = %mountpoint% not mounted
  188. label-unmounted-foreground = ${colors.foreground-alt}
  189.  
  190. [module/bspwm]
  191. type = internal/bspwm
  192.  
  193. ws-icon-0 = ;I
  194. ws-icon-1 = II;II
  195. ws-icon-2 = III;3
  196. ws-icon-3 = IV;4
  197. ws-icon-4 = 5
  198. ws-icon-5 = 6
  199. ws-icon-6 = 7
  200. ws-icon-7 = 8
  201. ws-icon-8 = 9
  202. ws-icon-9 = 10
  203. ws-icon-default = 
  204.  
  205. ; Only show workspaces defined on the same output as the bar
  206. ; ; NOTE: The bspwm and XRandR monitor names must match, which they do by default.
  207. ; ; Default: true
  208. pin-workspaces = true
  209. ;
  210. ; ; Output mode flags after focused state label
  211. ; ; Default: false
  212. inline-mode = false
  213. ;
  214. ; ; Create click handler used to focus workspace
  215. ; ; Default: true
  216. enable-click = true
  217. ;
  218. ; ; Create scroll handlers used to cycle workspaces
  219. ; ; Default: true
  220. enable-scroll = true
  221. ;
  222. ; ; Set the scroll cycle direction
  223. ; ; Default: true
  224. reverse-scroll = true
  225. ;
  226. ; ; Use fuzzy (partial) matching on labels when assigning
  227. ; ; icons to workspaces
  228. ; ; Example: code;♚ will apply the icon to all workspaces
  229. ; ; containing 'code' in the label
  230. ; ; Default: false
  231. fuzzy-match = false
  232.  
  233. label-focused = %index%
  234. ;label-focused-background = ${colors.background-alt}
  235. label-focused-background = #aa2f2f2f
  236. ;label-focused-underline= ${colors.primary}
  237. label-focused-underline= #A0A0A0
  238. label-focused-padding = 2
  239.  
  240. label-occupied = %index%
  241. label-occupied-padding = 2
  242.  
  243. label-urgent = %index%!
  244. label-urgent-background = ${colors.alert}
  245. label-urgent-padding = 2
  246.  
  247. label-empty = %index%
  248. label-empty-foreground = ${colors.foreground-alt}
  249. label-empty-padding = 2
  250.  
  251. ; Separator in between workspaces
  252. ; label-separator = |
  253.  
  254. [module/i3]
  255. type = internal/i3
  256. format = <label-state> <label-mode>
  257. index-sort = true
  258. wrapping-scroll = false
  259.  
  260. ; Only show workspaces on the same output as the bar
  261. ;pin-workspaces = true
  262.  
  263. label-mode-padding = 2
  264. label-mode-foreground = #000
  265. label-mode-background = ${colors.primary}
  266.  
  267. ; focused = Active workspace on focused monitor
  268. label-focused = %index%
  269. label-focused-background = ${colors.background-alt}
  270. label-focused-underline= ${colors.primary}
  271. label-focused-padding = 2
  272.  
  273. ; unfocused = Inactive workspace on any monitor
  274. label-unfocused = %index%
  275. label-unfocused-padding = 2
  276.  
  277. ; visible = Active workspace on unfocused monitor
  278. label-visible = %index%
  279. label-visible-background = ${self.label-focused-background}
  280. label-visible-underline = ${self.label-focused-underline}
  281. label-visible-padding = ${self.label-focused-padding}
  282.  
  283. ; urgent = Workspace with urgency hint set
  284. label-urgent = %index%
  285. label-urgent-background = ${colors.alert}
  286. label-urgent-padding = 2
  287.  
  288. ; Separator in between workspaces
  289. ; label-separator = |
  290.  
  291.  
  292. [module/mpd]
  293. type = internal/mpd
  294. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  295.  
  296. icon-prev = 
  297. icon-stop = 
  298. icon-play = 
  299. icon-pause = 
  300. icon-next = 
  301.  
  302. label-song-maxlen = 25
  303. label-song-ellipsis = true
  304.  
  305. [module/xbacklight]
  306. type = internal/xbacklight
  307.  
  308. format = <label> <bar>
  309. label = BL
  310.  
  311. bar-width = 10
  312. bar-indicator = |
  313. bar-indicator-foreground = #fff
  314. bar-indicator-font = 2
  315. bar-fill = ─
  316. bar-fill-font = 2
  317. bar-fill-foreground = #9f78e1
  318. bar-empty = ─
  319. bar-empty-font = 2
  320. bar-empty-foreground = ${colors.foreground-alt}
  321.  
  322. [module/backlight-acpi]
  323. inherit = module/xbacklight
  324. type = internal/backlight
  325. card = intel_backlight
  326.  
  327. [module/cpu]
  328. type = internal/cpu
  329. interval = 2
  330. format-prefix = " "
  331. format-prefix-foreground = ${colors.foreground-alt}
  332. ;format-underline = #808080
  333. label = %percentage:2%%
  334.  
  335. [module/memory]
  336. type = internal/memory
  337. interval = 2
  338. format-prefix = " "
  339. format-prefix-foreground = ${colors.foreground-alt}
  340. ;format-underline = #808080
  341. label = %percentage_used%%
  342.  
  343. [module/wlan]
  344. type = internal/network
  345. interface = wlp4s0
  346. interval = 3.0
  347.  
  348. label-active-font = 0
  349.  
  350. format-connected = <ramp-signal> <label-connected>
  351. ;format-connected-underline = #9f78e1
  352. label-connected = %essid%
  353.  
  354. format-disconnected =
  355. ;format-disconnected = <label-disconnected>
  356. ;format-disconnected-underline = ${self.format-connected-underline}
  357. ;label-disconnected = %ifname% disconnected
  358. ;label-disconnected-foreground = ${colors.foreground-alt}
  359.  
  360. ramp-signal-0 = 
  361. ramp-signal-1 = 
  362. ramp-signal-2 = 
  363. ramp-signal-3 = 
  364. ramp-signal-4 = 
  365. ramp-signal-foreground = ${colors.foreground-alt}
  366.  
  367. [module/eth]
  368. type = internal/network
  369. interface = enp5s0f5
  370. interval = 3.0
  371.  
  372. ;format-connected-underline = #55aa55
  373. format-connected-prefix = " "
  374. format-connected-prefix-foreground = ${colors.foreground-alt}
  375. label-connected = %local_ip%
  376.  
  377. format-disconnected =
  378. ;format-disconnected = <label-disconnected>
  379. ;format-disconnected-underline = ${self.format-connected-underline}
  380. ;label-disconnected = %ifname% disconnected
  381. ;label-disconnected-foreground = ${colors.foreground-alt}
  382.  
  383. [module/date]
  384. type = internal/date
  385. interval = 1
  386.  
  387. date =
  388. date-alt = " %Y-%m-%d"
  389.  
  390. time = " %H:%M:%S "
  391. time-alt = %H:%M:%S
  392.  
  393. ;format-prefix = 
  394. ;format-prefix-foreground = ${colors.foreground-alt}
  395. ;format-underline = #808080
  396.  
  397. label = %date% %time%
  398.  
  399. [module/pulseaudio]
  400. type = internal/pulseaudio
  401.  
  402. format-volume = <label-volume>
  403. ;<bar-volume>
  404. label-volume = ♪: %percentage%%
  405. label-volume-foreground = ${root.foreground}
  406.  
  407. label-muted = 🔇 muted
  408. label-muted-foreground = #666
  409.  
  410. bar-volume-width = 10
  411. bar-volume-foreground-0 = #55aa55
  412. bar-volume-foreground-1 = #55aa55
  413. bar-volume-foreground-2 = #55aa55
  414. bar-volume-foreground-3 = #55aa55
  415. bar-volume-foreground-4 = #55aa55
  416. bar-volume-foreground-5 = #f5a70a
  417. bar-volume-foreground-6 = #ff5555
  418. bar-volume-gradient = false
  419. bar-volume-indicator = |
  420. bar-volume-indicator-font = 2
  421. bar-volume-fill = ─
  422. bar-volume-fill-font = 2
  423. bar-volume-empty = ─
  424. bar-volume-empty-font = 2
  425. bar-volume-empty-foreground = ${colors.foreground-alt}
  426.  
  427. [module/alsa]
  428. type = internal/alsa
  429.  
  430. format-volume = <label-volume> <bar-volume>
  431. label-volume = VOL
  432. label-volume-foreground = ${root.foreground}
  433.  
  434. format-muted-prefix = " "
  435. format-muted-foreground = ${colors.foreground-alt}
  436. label-muted = sound muted
  437.  
  438. bar-volume-width = 10
  439. bar-volume-foreground-0 = #55aa55
  440. bar-volume-foreground-1 = #55aa55
  441. bar-volume-foreground-2 = #55aa55
  442. bar-volume-foreground-3 = #55aa55
  443. bar-volume-foreground-4 = #55aa55
  444. bar-volume-foreground-5 = #f5a70a
  445. bar-volume-foreground-6 = #ff5555
  446. bar-volume-gradient = false
  447. bar-volume-indicator = |
  448. bar-volume-indicator-font = 2
  449. bar-volume-fill = ─
  450. bar-volume-fill-font = 2
  451. bar-volume-empty = ─
  452. bar-volume-empty-font = 2
  453. bar-volume-empty-foreground = ${colors.foreground-alt}
  454.  
  455. [module/battery]
  456. type = internal/battery
  457. battery = BAT0
  458. adapter = AC
  459. full-at = 98
  460.  
  461. format-charging = <animation-charging> <label-charging>
  462. format-charging-underline = #ffb52a
  463.  
  464. format-discharging = <animation-discharging> <label-discharging>
  465. format-discharging-underline = ${self.format-charging-underline}
  466.  
  467. format-full-prefix = " "
  468. format-full-prefix-foreground = ${colors.foreground-alt}
  469. format-full-underline = ${self.format-charging-underline}
  470.  
  471. ramp-capacity-0 = 
  472. ramp-capacity-1 = 
  473. ramp-capacity-2 = 
  474. ramp-capacity-foreground = ${colors.foreground-alt}
  475.  
  476. animation-charging-0 = 
  477. animation-charging-1 = 
  478. animation-charging-2 = 
  479. animation-charging-foreground = ${colors.foreground-alt}
  480. animation-charging-framerate = 750
  481.  
  482. animation-discharging-0 = 
  483. animation-discharging-1 = 
  484. animation-discharging-2 = 
  485. animation-discharging-foreground = ${colors.foreground-alt}
  486. animation-discharging-framerate = 750
  487.  
  488. [module/temperature]
  489. type = internal/temperature
  490. thermal-zone = 0
  491. warn-temperature = 70
  492.  
  493. format = <ramp> <label>
  494. ;format-underline = #808080
  495. format-warn = <ramp> <label-warn>
  496. ;format-warn-underline = ${self.format-underline}
  497.  
  498. label = %temperature-c%
  499. label-warn = %temperature-c%
  500. label-warn-foreground = ${colors.secondary}
  501.  
  502. ramp-0 = 
  503. ramp-1 = 
  504. ramp-2 = 
  505. ramp-foreground = ${colors.foreground-alt}
  506.  
  507. [module/powermenu]
  508. type = custom/menu
  509.  
  510. expand-right = true
  511.  
  512. format-spacing = 1
  513.  
  514. label-open = 
  515. label-open-foreground = ${colors.secondary}
  516. label-close =  cancel
  517. label-close-foreground = ${colors.secondary}
  518. label-separator = |
  519. label-separator-foreground = ${colors.foreground-alt}
  520.  
  521. menu-0-0 = reboot
  522. menu-0-0-exec = menu-open-1
  523. menu-0-1 = power off
  524. menu-0-1-exec = menu-open-2
  525.  
  526. menu-1-0 = cancel
  527. menu-1-0-exec = menu-open-0
  528. menu-1-1 = reboot
  529. menu-1-1-exec = sudo reboot
  530.  
  531. menu-2-0 = power off
  532. menu-2-0-exec = sudo poweroff
  533. menu-2-1 = cancel
  534. menu-2-1-exec = menu-open-0
  535.  
  536. [module/mpris]
  537. type = custom/script
  538. exec = ~/.config/polybar/scripts/mpris.py -f '%{A1:~/.config/polybar/scripts/mpris.py previous -b vlc -b plasma-browser-integration:} ⏮ %{A} %{A1:~/.config/polybar/scripts/mpris.py play-pause -b vlc -b plasma-browser-integration:} {icon-reversed} %{A} %{A1:~/.config/polybar/scripts/mpris.py next -b vlc -b plasma-browser-integration:} ⏭ %{A} {:artist:t18:{artist}:}{:artist: - :}{:t20:{title}:} ' -b vlc -b plasma-browser-integration
  539. tail = true
  540.  
  541. [module/mpris-simple]
  542. type = custom/script
  543. exec = ~/.config/polybar/scripts/mpris-simple.sh
  544. interval = 3
  545. content-padding = 10
  546. click-left = playerctl previous &
  547. click-right = playerctl next &
  548. click-middle = playerctl play-pause &
  549.  
  550. [settings]
  551. screenchange-reload = true
  552. #compositing-background = xor
  553. #compositing-background = screen
  554. compositing-foreground = source
  555. compositing-border = over
  556. pseudo-transparency = true
  557.  
  558. [global/wm]
  559. margin-top = 5
  560. margin-bottom = 5
  561.  
  562. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment