Advertisement
Guest User

Untitled

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