Advertisement
mrneilypops

mrneilypops-archlabs-polybar-config-20-07-17

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