Advertisement
mrneilypops

polybar config

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