mrneilypops

polybar config

Jun 8th, 2017
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.01 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 = #2F343F
  12. background = #00000000
  13. background-alt = #444
  14. #foreground = #dfdfdf
  15. foreground = #000000
  16. foreground-alt = #55
  17. primary = #ffb52a
  18. secondary = #BA5157
  19. thirdly = #cdcdcd
  20. alert = #bd2c40
  21.  
  22. [global/wm]
  23. margin-top = 0
  24. margin-bottom = 0
  25.  
  26. [bar/example]
  27. ;monitor = ${env:MONITOR:HDMI-1}
  28. width = 100%
  29. height = 20
  30. offset-x = 0
  31. offset-y = 0
  32.  
  33. ;background = ${xrdb:color9}
  34. background = ${colors.background}
  35. foreground = ${colors.foreground}
  36.  
  37. dim-value = 0.9
  38.  
  39. overline-size = 2
  40. overline-color = #f00
  41. underline-size = 2
  42. underline-color = #00f
  43.  
  44. border-bottom-size = 1
  45. border-bottom-color = #18191B
  46.  
  47. padding-left = 0
  48. padding-right = 2
  49. module-margin-left = 1
  50. module-margin-right = 2
  51.  
  52. #font-0 = inconsolata:pixelsize=10;0
  53. font-0 = ohsnap:pixelsize=10;0
  54. font-1 = unifont:fontformat=truetype:size=6:heavy;-2
  55. #font-1 = FontAwesome:size=10;1
  56. font-2 = siji:pixelsize=10;1
  57. #font-2 = FontAwesome:pixelsize=10
  58.  
  59. label-active-font = 0
  60.  
  61. modules-left = script ewmh xwindow
  62. modules-center = mpd
  63. modules-right = cpu memory eth volume date powermenu vpncheck
  64.  
  65. tray-position = right
  66. tray-padding = 2
  67. #tray-transparent = true
  68. #tray-background = #55000000
  69. tray-background = ${root.background}
  70.  
  71. ;wm-restack = bspwm
  72. ;wm-restack = i3
  73.  
  74. ;override-redirect = true
  75.  
  76. ;scroll-up = bspwm-desknext
  77. ;scroll-down = bspwm-deskprev
  78.  
  79. ;scroll-up = i3wm-wsnext
  80. ;scroll-down = i3wm-wsprev
  81.  
  82. enable-ipc = true
  83.  
  84.  
  85. [module/ewmh]
  86. type = internal/xworkspaces
  87.  
  88. ; Only show workspaces defined on the same output as the bar
  89. ;
  90. ; Useful if you want to show monitor specific workspaces
  91. ; on different bars
  92. ;
  93. ; Default: false
  94. pin-workspaces = false
  95.  
  96. ; Create click handler used to focus desktop
  97. ; Default: true
  98. enable-click = true
  99.  
  100. ; Create scroll handlers used to cycle desktops
  101. ; Default: true
  102. enable-scroll = true
  103.  
  104. icon-0 = 1;
  105. icon-1 = 2;
  106. icon-2 = 3;
  107. icon-3 = 4;
  108. icon-4 = 5;
  109. icon-5 = 6;
  110. #icon-default = ?
  111. icon-default =
  112. format = <label-state>
  113. label-monitor = %name%
  114. #label-active = %name%
  115. label-active = %icon% %name% %icon%
  116. label-active-foreground = #ffffff
  117. #label-active-background = #3B78C2
  118. label-active-background = #944045
  119. #label-active-underline = #D3D7DD
  120. label-occupied = %icon% %name% %icon%
  121. #label-occupied = %name%
  122. label-occupied-foreground = #ffffff
  123. label-occupied-background = #BB5158
  124. label-occupied-underline = #ffffff
  125. label-urgent = %icon% %icon%
  126. label-urgent-foreground = #000000
  127. label-urgent-background = #bd2c40
  128. label-urgent-underline = #9b0a20
  129. label-empty = %icon% %name% %icon%
  130. #label-empty = %name%
  131. #label-empty-foreground = #55
  132. label-empty-foreground = #000000
  133.  
  134.  
  135.  
  136. [module/script]
  137. type = custom/script
  138. exec = uname -r
  139. #format-underline = ${colors.thirdly}
  140. #label-indicator-underline = ${colors.thirdly}
  141.  
  142.  
  143. [module/xwindow]
  144. type = internal/xwindow
  145. label = %title:0:30:...%
  146.  
  147.  
  148.  
  149. [module/xkeyboard]
  150. type = internal/xkeyboard
  151. blacklist-0 = num lock
  152. label-layout = %{F#55}?%{F-} %layout%
  153. #label-layout-underline = ${colors.secondary}
  154. label-indicator-padding = 2
  155. label-indicator-margin = 1
  156. label-indicator-background = ${colors.secondary}
  157. #label-indicator-underline = ${colors.secondary}
  158.  
  159. [module/filesystem]
  160. type = internal/fs
  161. interval = 25
  162.  
  163. mount-0 = /
  164. mount-1 = /home
  165. mount-2 = /invalid/mountpoint
  166.  
  167. label-mounted = %mountpoint%: %percentage_free%%
  168.  
  169. label-unmounted = %mountpoint%: not mounted
  170. label-unmounted-foreground = ${colors.foreground-alt}
  171.  
  172. [module/bspwm]
  173. type = internal/bspwm
  174.  
  175. label-focused = %index%
  176. label-focused-background = ${colors.background-alt}
  177. label-focused-underline= ${colors.primary}
  178. label-focused-padding = 2
  179.  
  180. label-occupied = %index%
  181. label-occupied-padding = 2
  182.  
  183. label-urgent = %index%!
  184. label-urgent-background = ${colors.alert}
  185. label-urgent-padding = 2
  186.  
  187. label-empty = %index%
  188. label-empty-foreground = ${colors.foreground-alt}
  189. label-empty-padding = 2
  190.  
  191. [module/i3]
  192. type = internal/i3
  193. format = <label-state> <label-mode>
  194. index-sort = true
  195. wrapping-scroll = false
  196.  
  197. label-mode-padding = 2
  198. label-mode-foreground = #000
  199. label-mode-background = ${colors.primary}
  200.  
  201. label-focused = %index%
  202. label-focused-background = ${module/bspwm.label-focused-background}
  203. #label-focused-underline = ${module/bspwm.label-focused-underline}
  204. label-focused-padding = ${module/bspwm.label-focused-padding}
  205.  
  206. label-unfocused = %index%
  207. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  208.  
  209. label-urgent = %index%!
  210. label-urgent-background = ${module/bspwm.label-urgent-background}
  211. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  212.  
  213. label-visible = %index%
  214. label-visible-background = ${self.label-focused-background}
  215. label-visible-underline = ${self.label-focused-underline}
  216. label-visible-padding = ${self.label-focused-padding}
  217.  
  218. [module/mpd]
  219. type = internal/mpd
  220.  
  221. format-online = <label-song> <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next> <icon-repeat> <icon-random>
  222.  
  223. label-song-maxlen = 25
  224. label-song-ellipsis = true
  225. #label-song = ? %title%
  226. label-song = %title%
  227.  
  228. icon-prev = ?
  229. icon-seekb = ?
  230. icon-stop = ?
  231. icon-play = ?
  232. icon-pause = ?
  233. icon-next = ?
  234. icon-seekf = ?
  235.  
  236. icon-random = ?
  237. icon-repeat = ?
  238.  
  239. toggle-on-foreground = ${colors.primary}
  240. toggle-off-foreground = #66
  241.  
  242. [module/xbacklight]
  243. type = internal/xbacklight
  244.  
  245. format = <label> <bar>
  246. label = BL
  247.  
  248. bar-width = 10
  249. bar-indicator = ?
  250. bar-indicator-foreground = #ff
  251. bar-indicator-font = 2
  252. bar-fill = ?
  253. bar-fill-font = 2
  254. bar-fill-foreground = #9f78e1
  255. bar-empty = ?
  256. bar-empty-font = 2
  257. bar-empty-foreground = ${colors.foreground-alt}
  258.  
  259. [module/backlight-acpi]
  260. inherit = module/xbacklight
  261. type = internal/backlight
  262. card = intel_backlight
  263.  
  264. [module/cpu]
  265. type = internal/cpu
  266. interval = 2
  267. format-prefix = "? "
  268. format-prefix-foreground = ${colors.foreground-alt}
  269. #format-underline = #f90000
  270. label = %percentage%%
  271. format = <label> <ramp-coreload>
  272.  
  273. ramp-coreload-0 = ?
  274. ramp-coreload-1 = ?
  275. ramp-coreload-2 = ?
  276. ramp-coreload-3 = ?
  277.  
  278.  
  279. [module/memory]
  280. type = internal/memory
  281. interval = 2
  282. format-prefix = "? "
  283. format-prefix-foreground = ${colors.foreground-alt}
  284. #format-underline = #4bffdc
  285. label = %percentage_used%%
  286. #label = %mb_used%
  287.  
  288. #[module/wlan]
  289. #type = internal/network
  290. #interface = wlx801f024b6d06
  291. #interval = 3.0
  292.  
  293. #format-connected = <ramp-signal> <label-connected>
  294. #format-connected-underline = #9f78e1
  295. #format-disconnected-underline = ${self.format-connected-underline}
  296.  
  297. #label-connected = %essid%
  298. #label-disconnected = %ifname% disconnected
  299. #label-disconnected-foreground = ${colors.foreground-alt}
  300.  
  301. #ramp-signal-0 = ?
  302. #ramp-signal-1 = ?
  303. #ramp-signal-2 = ?
  304. #ramp-signal-3 = ?
  305. #ramp-signal-4 = ?
  306. #ramp-signal-foreground = ${colors.foreground-alt}
  307.  
  308. [module/eth]
  309. type = internal/network
  310. interface = enp5s0
  311. interval = 3.0
  312.  
  313. #format-connected-underline = #55aa55
  314. format-connected-prefix = "? "
  315. format-connected-foreground-foreground = ${colors.foreground-alt}
  316. #label-connected = %downspeed%%upspeed%%linkspeed%%local_ip%
  317. label-connected = %downspeed%
  318.  
  319. #format-disconnected-underline = ${self.format-connected-underline}
  320. label-disconnected = %ifname% disconnected
  321. label-disconnected-foreground = ${colors.foreground-alt}
  322.  
  323. [module/date]
  324. type = internal/date
  325. interval = 5
  326.  
  327. date =
  328. date-alt = " %Y-%m-%d"
  329.  
  330. time = %H:%M
  331. time-alt = %H:%M:%S
  332.  
  333. format-prefix = ?
  334. format-prefix-foreground = ${colors.foreground-alt}
  335. #format-underline = #0a6cf5
  336.  
  337. label = %date% %time%
  338.  
  339. [module/volume]
  340. type = internal/volume
  341.  
  342. format-volume = <label-volume> <bar-volume>
  343. label-volume = VOL
  344. label-volume-foreground = ${root.foreground}
  345.  
  346. format-muted-prefix = "? "
  347. format-muted-foreground = ${colors.foreground-alt}
  348. label-muted = sound muted
  349.  
  350. bar-volume-width = 10
  351. bar-volume-foreground-0 = #55aa55
  352. bar-volume-foreground-1 = #55aa55
  353. bar-volume-foreground-2 = #55aa55
  354. bar-volume-foreground-3 = #55aa55
  355. bar-volume-foreground-4 = #55aa55
  356. bar-volume-foreground-5 = #f5a70a
  357. bar-volume-foreground-6 = #ff5555
  358. bar-volume-gradient = false
  359. bar-volume-indicator = ?
  360. bar-volume-indicator-font = 2
  361. bar-volume-indicator-foreground = #ff
  362. bar-volume-fill = ?
  363. bar-volume-fill-font = 2
  364. bar-volume-empty = ?
  365. bar-volume-empty-font = 2
  366. bar-volume-empty-foreground = ${colors.foreground-alt}
  367.  
  368. [module/battery]
  369. type = internal/battery
  370. battery = BAT0
  371. adapter = ADP1
  372. full-at = 98
  373.  
  374. format-charging = <animation-charging> <label-charging>
  375. format-charging-underline = #ffb52a
  376.  
  377. format-discharging = <ramp-capacity> <label-discharging>
  378. format-discharging-underline = ${self.format-charging-underline}
  379.  
  380. format-full-prefix = "? "
  381. format-full-prefix-foreground = ${colors.foreground-alt}
  382. format-full-underline = ${self.format-charging-underline}
  383.  
  384. ramp-capacity-0 = ?
  385. ramp-capacity-1 = ?
  386. ramp-capacity-2 = ?
  387. ramp-capacity-foreground = ${colors.foreground-alt}
  388.  
  389. animation-charging-0 = ?
  390. animation-charging-1 = ?
  391. animation-charging-2 = ?
  392. animation-charging-foreground = ${colors.foreground-alt}
  393. animation-charging-framerate = 750
  394.  
  395. [module/temperature]
  396. type = internal/temperature
  397. thermal-zone = 0
  398. warn-temperature = 60
  399.  
  400. format = <ramp> <label>
  401. format-underline = #f50a4d
  402. format-warn = <ramp> <label-warn>
  403. format-warn-underline = ${self.format-underline}
  404.  
  405. label = %temperature%
  406. label-warn = %temperature%
  407. label-warn-foreground = ${colors.secondary}
  408.  
  409. ramp-0 = ?
  410. ramp-1 = ?
  411. ramp-2 = ?
  412. ramp-foreground = ${colors.foreground-alt}
  413.  
  414. [module/powermenu]
  415. type = custom/menu
  416.  
  417. format-spacing = 1
  418.  
  419. label-open = ? power
  420. label-open-foreground = ${colors.secondary}
  421. label-close = ? cancel
  422. label-close-foreground = ${colors.secondary}
  423. label-separator = |
  424. label-separator-foreground = ${colors.foreground-alt}
  425.  
  426. menu-0-0 = reboot
  427. menu-0-0-exec = menu-open-1
  428. menu-0-1 = power off
  429. menu-0-1-exec = menu-open-2
  430.  
  431. menu-1-0 = cancel
  432. menu-1-0-exec = menu-open-0
  433. menu-1-1 = reboot
  434. menu-1-1-exec = sudo reboot
  435.  
  436. menu-2-0 = power off
  437. menu-2-0-exec = sudo poweroff
  438. menu-2-1 = cancel
  439. menu-2-1-exec = menu-open-0
  440.  
  441. [module/vpncheck]
  442. type = custom/script
  443. exec = pgrep openvpn
  444. interval = 5
  445. label = vpn
  446. format-underline = #268bd2
  447. format-prefix = "? "
  448. format-prefix-foreground = #5b
  449.  
  450. [module/anews]
  451. type = custom/script
  452. interval = 1200
  453. format = <label>
  454. format-underline = #0a6cf5
  455. label = %output%
  456. exec = .config/polybar/anews.py
  457.  
  458. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment