Advertisement
mrneilypops

neju-polybar-config-26-06-17

Jun 26th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.41 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 = #222
  12. background-alt = #444
  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.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 = ohsnap: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 xkeyboard powermenu
  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. #format = <label>
  106. label-monitor = %name%
  107. #label-active = %icon% %name%
  108. label-active = %icon% %name% %icon%
  109. label-active-foreground = #ffffff
  110. label-active-background = #3f3f3f
  111. #label-active-underline = #fba922
  112. label-occupied = %icon% %name% %icon%
  113. label-occupied-foreground = #ffffff
  114. label-occupied-background = #3f3f3f
  115. label-occupied-underline = #555555
  116. label-urgent = %icon% %icon%
  117. label-urgent-foreground = #000000
  118. label-urgent-background = #bd2c40
  119. label-urgent-underline = #9b0a20
  120. label-empty = %icon% %name% %icon%
  121. label-empty-foreground = #55
  122.  
  123.  
  124.  
  125. [module/script]
  126. type = custom/script
  127. exec = uname -r
  128. #format-underline = ${colors.thirdly}
  129. #label-indicator-underline = ${colors.thirdly}
  130.  
  131.  
  132. [module/xwindow]
  133. type = internal/xwindow
  134. label = %title:0:30:...%
  135.  
  136.  
  137.  
  138. [module/xkeyboard]
  139. type = internal/xkeyboard
  140. blacklist-0 = num lock
  141. label-layout = %{F#55}?%{F-} %layout%
  142. #label-layout-underline = ${colors.secondary}
  143. label-indicator-padding = 2
  144. label-indicator-margin = 1
  145. label-indicator-background = ${colors.secondary}
  146. #label-indicator-underline = ${colors.secondary}
  147.  
  148. [module/filesystem]
  149. type = internal/fs
  150. interval = 25
  151.  
  152. mount-0 = /
  153. mount-1 = /home
  154. mount-2 = /invalid/mountpoint
  155.  
  156. label-mounted = %mountpoint%: %percentage_free%%
  157.  
  158. label-unmounted = %mountpoint%: not mounted
  159. label-unmounted-foreground = ${colors.foreground-alt}
  160.  
  161. [module/bspwm]
  162. type = internal/bspwm
  163.  
  164. label-focused = %index%
  165. label-focused-background = ${colors.background-alt}
  166. label-focused-underline= ${colors.primary}
  167. label-focused-padding = 2
  168.  
  169. label-occupied = %index%
  170. label-occupied-padding = 2
  171.  
  172. label-urgent = %index%!
  173. label-urgent-background = ${colors.alert}
  174. label-urgent-padding = 2
  175.  
  176. label-empty = %index%
  177. label-empty-foreground = ${colors.foreground-alt}
  178. label-empty-padding = 2
  179.  
  180. [module/i3]
  181. type = internal/i3
  182. format = <label-state> <label-mode>
  183. index-sort = true
  184. wrapping-scroll = false
  185.  
  186. label-mode-padding = 2
  187. label-mode-foreground = #000
  188. label-mode-background = ${colors.primary}
  189.  
  190. label-focused = %index%
  191. label-focused-background = ${module/bspwm.label-focused-background}
  192. #label-focused-underline = ${module/bspwm.label-focused-underline}
  193. label-focused-padding = ${module/bspwm.label-focused-padding}
  194.  
  195. label-unfocused = %index%
  196. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  197.  
  198. label-urgent = %index%!
  199. label-urgent-background = ${module/bspwm.label-urgent-background}
  200. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  201.  
  202. label-visible = %index%
  203. label-visible-background = ${self.label-focused-background}
  204. label-visible-underline = ${self.label-focused-underline}
  205. label-visible-padding = ${self.label-focused-padding}
  206.  
  207. [module/mpd]
  208. type = internal/mpd
  209.  
  210. format-online = <label-song> <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next> <icon-repeat> <icon-random>
  211.  
  212. label-song-maxlen = 25
  213. label-song-ellipsis = true
  214. #label-song = ? %title%
  215. label-song = %title%
  216.  
  217. icon-prev = ?
  218. icon-seekb = ?
  219. icon-stop = ?
  220. icon-play = ?
  221. icon-pause = ?
  222. icon-next = ?
  223. icon-seekf = ?
  224.  
  225. icon-random = ?
  226. icon-repeat = ?
  227.  
  228. toggle-on-foreground = ${colors.primary}
  229. toggle-off-foreground = #66
  230.  
  231. [module/xbacklight]
  232. type = internal/xbacklight
  233.  
  234. format = <label> <bar>
  235. label = BL
  236.  
  237. bar-width = 10
  238. bar-indicator = ?
  239. bar-indicator-foreground = #ff
  240. bar-indicator-font = 2
  241. bar-fill = ?
  242. bar-fill-font = 2
  243. bar-fill-foreground = #9f78e1
  244. bar-empty = ?
  245. bar-empty-font = 2
  246. bar-empty-foreground = ${colors.foreground-alt}
  247.  
  248. [module/backlight-acpi]
  249. inherit = module/xbacklight
  250. type = internal/backlight
  251. card = intel_backlight
  252.  
  253. [module/cpu]
  254. type = internal/cpu
  255. interval = 2
  256. format-prefix = "? "
  257. format-prefix-foreground = ${colors.foreground-alt}
  258. #format-underline = #f90000
  259. label = %percentage%%
  260. format = <label> <ramp-coreload>
  261.  
  262. ramp-coreload-0 = ?
  263. ramp-coreload-1 = ?
  264. ramp-coreload-2 = ?
  265. ramp-coreload-3 = ?
  266.  
  267.  
  268. [module/memory]
  269. type = internal/memory
  270. interval = 2
  271. format-prefix = "? "
  272. format-prefix-foreground = ${colors.foreground-alt}
  273. #format-underline = #4bffdc
  274. label = %percentage_used%%
  275. #label = %mb_used%
  276.  
  277. #[module/wlan]
  278. #type = internal/network
  279. #interface = wlx801f024b6d06
  280. #interval = 3.0
  281.  
  282. #format-connected = <ramp-signal> <label-connected>
  283. #format-connected-underline = #9f78e1
  284. #format-disconnected-underline = ${self.format-connected-underline}
  285.  
  286. #label-connected = %essid%
  287. #label-disconnected = %ifname% disconnected
  288. #label-disconnected-foreground = ${colors.foreground-alt}
  289.  
  290. #ramp-signal-0 = ?
  291. #ramp-signal-1 = ?
  292. #ramp-signal-2 = ?
  293. #ramp-signal-3 = ?
  294. #ramp-signal-4 = ?
  295. #ramp-signal-foreground = ${colors.foreground-alt}
  296.  
  297. [module/eth]
  298. type = internal/network
  299. interface = enp4s0
  300. interval = 3.0
  301.  
  302. #format-connected-underline = #55aa55
  303. format-connected-prefix = "? "
  304. format-connected-foreground-foreground = ${colors.foreground-alt}
  305. #label-connected = %downspeed%%upspeed%%linkspeed%%local_ip%
  306. label-connected = %downspeed%
  307.  
  308. #format-disconnected-underline = ${self.format-connected-underline}
  309. label-disconnected = %ifname% disconnected
  310. label-disconnected-foreground = ${colors.foreground-alt}
  311.  
  312. [module/date]
  313. type = internal/date
  314. interval = 5
  315.  
  316. date =
  317. date-alt = " %Y-%m-%d"
  318.  
  319. time = %H:%M
  320. time-alt = %H:%M:%S
  321.  
  322. format-prefix = ?
  323. format-prefix-foreground = ${colors.foreground-alt}
  324. #format-underline = #0a6cf5
  325.  
  326. label = %date% %time%
  327.  
  328. [module/volume]
  329. type = internal/volume
  330.  
  331. format-volume = <label-volume> <bar-volume>
  332. label-volume = VOL
  333. label-volume-foreground = ${root.foreground}
  334.  
  335. format-muted-prefix = "? "
  336. format-muted-foreground = ${colors.foreground-alt}
  337. label-muted = sound muted
  338.  
  339. bar-volume-width = 10
  340. bar-volume-foreground-0 = #55aa55
  341. bar-volume-foreground-1 = #55aa55
  342. bar-volume-foreground-2 = #55aa55
  343. bar-volume-foreground-3 = #55aa55
  344. bar-volume-foreground-4 = #55aa55
  345. bar-volume-foreground-5 = #f5a70a
  346. bar-volume-foreground-6 = #ff5555
  347. bar-volume-gradient = false
  348. bar-volume-indicator = ?
  349. bar-volume-indicator-font = 2
  350. bar-volume-indicator-foreground = #ff
  351. bar-volume-fill = ?
  352. bar-volume-fill-font = 2
  353. bar-volume-empty = ?
  354. bar-volume-empty-font = 2
  355. bar-volume-empty-foreground = ${colors.foreground-alt}
  356.  
  357. [module/battery]
  358. type = internal/battery
  359. battery = BAT0
  360. adapter = ADP1
  361. full-at = 98
  362.  
  363. format-charging = <animation-charging> <label-charging>
  364. format-charging-underline = #ffb52a
  365.  
  366. format-discharging = <ramp-capacity> <label-discharging>
  367. format-discharging-underline = ${self.format-charging-underline}
  368.  
  369. format-full-prefix = "? "
  370. format-full-prefix-foreground = ${colors.foreground-alt}
  371. format-full-underline = ${self.format-charging-underline}
  372.  
  373. ramp-capacity-0 = ?
  374. ramp-capacity-1 = ?
  375. ramp-capacity-2 = ?
  376. ramp-capacity-foreground = ${colors.foreground-alt}
  377.  
  378. animation-charging-0 = ?
  379. animation-charging-1 = ?
  380. animation-charging-2 = ?
  381. animation-charging-foreground = ${colors.foreground-alt}
  382. animation-charging-framerate = 750
  383.  
  384. [module/temperature]
  385. type = internal/temperature
  386. thermal-zone = 0
  387. warn-temperature = 60
  388.  
  389. format = <ramp> <label>
  390. format-underline = #f50a4d
  391. format-warn = <ramp> <label-warn>
  392. format-warn-underline = ${self.format-underline}
  393.  
  394. label = %temperature%
  395. label-warn = %temperature%
  396. label-warn-foreground = ${colors.secondary}
  397.  
  398. ramp-0 = ?
  399. ramp-1 = ?
  400. ramp-2 = ?
  401. ramp-foreground = ${colors.foreground-alt}
  402.  
  403. [module/powermenu]
  404. type = custom/menu
  405.  
  406. format-spacing = 1
  407.  
  408. label-open = ? power
  409. label-open-foreground = ${colors.secondary}
  410. label-close = ? cancel
  411. label-close-foreground = ${colors.secondary}
  412. label-separator = |
  413. label-separator-foreground = ${colors.foreground-alt}
  414.  
  415. menu-0-0 = reboot
  416. menu-0-0-exec = menu-open-1
  417. menu-0-1 = power off
  418. menu-0-1-exec = menu-open-2
  419.  
  420. menu-1-0 = cancel
  421. menu-1-0-exec = menu-open-0
  422. menu-1-1 = reboot
  423. menu-1-1-exec = sudo reboot
  424.  
  425. menu-2-0 = power off
  426. menu-2-0-exec = sudo poweroff
  427. menu-2-1 = cancel
  428. menu-2-1-exec = menu-open-0
  429.  
  430. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement