Advertisement
Guest User

polybar

a guest
Jun 16th, 2019
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 13.16 KB | None | 0 0
  1. ;==========================================================
  2. ;
  3. ;
  4. ;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
  5. ;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
  6. ;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
  7. ;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
  8. ;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
  9. ;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
  10. ;
  11. ;
  12. ;   To learn more about how to configure Polybar
  13. ;   go to https://github.com/polybar/polybar
  14. ;
  15. ;   The README contains a lot of information
  16. ;
  17. ;==========================================================
  18.  
  19. [colors]
  20. ;background = ${xrdb:color0:#222}
  21. background = #00774F38
  22. background-alt = #444
  23. ;foreground = ${xrdb:color7:#222}
  24. foreground = #fff
  25. foreground-alt = #555
  26. primary = #fff
  27. secondary = #e60053
  28. alert = #bd2c40
  29.  
  30. ; https://www.colourlovers.com/palette/49963/let_them_eat_cake
  31. banquette = #774F38
  32. strawberry = #E08E79
  33. creme = #F1D4AF
  34. powderpuff = #ECE5CE
  35. charlotte = #C5E0DC
  36.  
  37.  
  38. [bar/example]
  39. monitor = ${env:MONITOR:HDMI-1}
  40. width = 100%
  41. height = 27
  42. ;offset-x = 1%
  43. ;offset-y = 1%
  44. #radius = 10.0
  45. fixed-center = false
  46.  
  47. background = ${colors.background}
  48. foreground = ${colors.foreground}
  49.  
  50. line-size = 0
  51. line-color = #f00
  52.  
  53. border-size = 0
  54. border-top-size = 5
  55. border-left-size = 50
  56. border-right-size = 50
  57. border-color = #00000000
  58.  
  59. padding-left = 0
  60. padding-right = 2
  61.  
  62. module-margin-left = 0
  63. module-margin-right = 0
  64.  
  65. font-0 = Roboto:style=Bold:size=10:antialiasing=true;2
  66. font-1 = Material\-Design\-Iconic\-Font:style=Design-Iconic-Font;3
  67. font-2 = RobotoMono Nerd Font:style=Regular:size=18;4
  68.  
  69. modules-left =  i3 xwindow
  70. modules-center =
  71. modules-right = begin filesystem _ pulseaudio _  xkeyboard _  memory _  cpu _  wlan _  eth _  battery _  temperature _  date end
  72.  
  73. tray-position = right
  74. tray-padding = 2
  75. ;tray-background = #0063ff
  76.  
  77. ;wm-restack = bspwm
  78. wm-restack = i3
  79.  
  80. ;override-redirect = true
  81.  
  82. ;scroll-up = bspwm-desknext
  83. ;scroll-down = bspwm-deskprev
  84.  
  85. ;scroll-up = i3wm-wsnext
  86. ;scroll-down = i3wm-wsprev
  87.  
  88. cursor-click = pointer
  89. cursor-scroll = ns-resize
  90.  
  91.  
  92. #Cosmetic modules
  93. [module/begin]
  94. type = custom/text
  95. content = ""
  96.  
  97. content-foreground = ${colors.banquette}
  98.  
  99. [module/end]
  100. type = custom/text
  101. content = ""
  102.  
  103. content-foreground = ${colors.creme}
  104.  
  105. [module/_]
  106. type = custom/text
  107. content = " "
  108.  
  109. content-background = ${colors.banquette}
  110.  
  111.  
  112.  
  113.  
  114. [module/xwindow]
  115. type = internal/xwindow
  116. format-background = ${colors.banquette}
  117.  
  118. format-prefix = " "
  119. format-prefix-background = $00
  120. format-prefix-foreground = ${colors.banquette}
  121.  
  122.  
  123. format-suffix = ""
  124. format-suffix-background = $00
  125. format-suffix-foreground = ${colors.banquette}
  126.  
  127. label = " %title:0:150:...%"
  128.  
  129. [module/xkeyboard]
  130. type = internal/xkeyboard
  131. blacklist-0 = num lock
  132.  
  133. format-background = ${colors.banquette}
  134.  
  135. format-prefix-foreground = ${colors.foreground-alt}
  136. format-prefix-underline = ${colors.powderpuff}
  137. format-prefix = "%{F#F1D4AF} %{F-}"  
  138.  
  139. label-layout = %layout%
  140. label-layout-underline = ${colors.powderpuff}
  141.  
  142. label-indicator-padding = 2
  143. label-indicator-margin = 0
  144. label-indicator-background = ${colors.powderpuff}
  145. label-indicator-foreground = ${colors.banquette}
  146.  
  147. [module/filesystem]
  148. type = internal/fs
  149. interval = 25
  150.  
  151. format-mounted-background = ${colors.banquette}
  152. format-unmounted-background = ${colors.banquette}
  153.  
  154.  
  155.  
  156. mount-0 = /
  157. mount-1= /home/Data
  158. label-mounted = %{F#F1D4AF}%mountpoint%[%total%] %{F-}: %percentage_used%%
  159. label-unmounted = %mountpoint% not mounted
  160. label-unmounted-foreground = ${colors.powderpuff}
  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. ; Separator in between workspaces
  182. ; label-separator = |
  183.  
  184. [module/i3]
  185. type = internal/i3
  186. format = <label-state> <label-mode>
  187. format-background = ${colors.banquette}
  188. index-sort = true
  189. wrapping-scroll = false
  190.  
  191. #Prefix and suffix
  192. format-prefix = ""
  193. format-prefix-background = $00
  194. format-prefix-foreground = ${colors.banquette}
  195.  
  196. format-suffix = ""
  197. format-suffix-background = $00
  198. format-suffix-foreground = ${colors.banquette}
  199.  
  200.  
  201. ; Only show workspaces on the same output as the bar
  202. ;pin-workspaces = true
  203.  
  204. label-mode-padding = 2
  205. label-mode-foreground = #000
  206. label-mode-background = ${colors.creme}
  207.  
  208. ; focused = Active workspace on focused monitor
  209. label-focused = %index%
  210. label-focused-background = ${colors.creme}
  211. label-focused-underline = ${colors.charlotte}
  212. label-focused-padding = ${module/bspwm.label-focused-padding}
  213. label-focused-foreground = ${colors.banquette}
  214. ; unfocused = Inactive workspace on any monitor
  215. label-unfocused = %index%
  216. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  217. label-unfocused-background = ${colors.banquette}
  218.  
  219. ; visible = Active workspace on unfocused monitor
  220. label-visible = %index%
  221. label-visible-background = ${self.label-focused-background}
  222. label-visible-underline = ${self.label-focused-underline}
  223. label-visible-padding = ${self.label-focused-padding}
  224. label-visible-foreground = ${colors.strawberry}
  225. ; urgent = Workspace with urgency hint set
  226. label-urgent = %index%
  227. label-urgent-background = ${module/bspwm.label-urgent-background}
  228. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  229.  
  230. ; Separator in between workspaces
  231. ; label-separator = |
  232.  
  233.  
  234. [module/mpd]
  235. type = internal/mpd
  236. format-online = <label-song>  <icon-prev> <icon-stop> <toggle> <icon-next>
  237.  
  238. icon-prev = 
  239. icon-stop = 
  240. icon-play = 
  241. icon-pause = 
  242. icon-next = 
  243.  
  244. label-song-maxlen = 25
  245. label-song-ellipsis = true
  246.  
  247. [module/xbacklight]
  248. type = internal/xbacklight
  249.  
  250. format = <label> <bar>
  251. label = BL
  252.  
  253. bar-width = 10
  254. bar-indicator = |
  255. bar-indicator-foreground = #fff
  256. bar-indicator-font = 2
  257. bar-fill = ─
  258. bar-fill-font = 2
  259. bar-fill-foreground = #9f78e1
  260. bar-empty = ─
  261. bar-empty-font = 2
  262. bar-empty-foreground = ${colors.foreground-alt}
  263.  
  264. [module/backlight-acpi]
  265. inherit = module/xbacklight
  266. type = internal/backlight
  267. card = intel_backlight
  268.  
  269. [module/cpu]
  270. type = internal/cpu
  271. interval = 2
  272.  
  273. format-background = ${colors.banquette}
  274.  
  275. format-prefix = "%{F#F1D4AF} "
  276. format-prefix-foreground = ${colors.foreground-alt}
  277. format-underline = ${colors.powderpuff}
  278. label = %percentage:2%%
  279.  
  280. [module/memory]
  281. type = internal/memory
  282. interval = 2
  283. format-prefix = "%{F#F1D4AF} "
  284. format-background = ${colors.banquette}
  285. format = <label>
  286. format-prefix-foreground = ${colors.foreground-alt}
  287. format-underline = ${colors.powderpuff}
  288. label = %percentage_used%%
  289.  
  290. bar-used-indicator = ·
  291. bar-used-width = 20
  292.  
  293. [module/wlan]
  294. type = internal/network
  295. interface = wlp2s0
  296. interval = 3.0
  297.  
  298. format-connected-background = ${colors.banquette}
  299. format-disconnected-background = ${colors.banquette}
  300.  
  301. format-connected-prefix = "%{F#F1D4AF} %{F-}"
  302. format-connected = <label-connected>
  303. format-connected-underline = ${colors.powderpuff}
  304. label-connected = %essid%
  305.  
  306. ;format-disconnected =
  307. format-disconnected = <label-disconnected>
  308. ;format-disconnected-underline = ${self.format-connected-underline}
  309. ;label-disconnected = %ifname% disconnected
  310. ;label-disconnected-foreground = ${colors.foreground-alt}
  311.  
  312. ramp-signal-0 = 
  313. ramp-signal-1 = 
  314. ramp-signal-2 = 
  315. ramp-signal-3 = 
  316. ramp-signal-4 = 
  317. ramp-signal-foreground = ${colors.foreground-alt}
  318.  
  319. [module/eth]
  320. type = internal/network
  321. interface = net0
  322. interval = 3.0
  323.  
  324. format-connected-underline = #55aa55
  325. format-connected-prefix = " "
  326. format-connected-prefix-foreground = ${colors.foreground-alt}
  327. label-connected = %local_ip%
  328.  
  329. format-disconnected =
  330. ;format-disconnected = <label-disconnected>
  331. ;format-disconnected-underline = ${self.format-connected-underline}
  332. ;label-disconnected = %ifname% disconnected
  333. ;label-disconnected-foreground = ${colors.foreground-alt}
  334.  
  335. [module/date]
  336. type = internal/date
  337. interval = 5
  338.  
  339. format-background = ${colors.creme}
  340. format-foreground = ${colors.banquette}
  341.  
  342. format-prefix = ""
  343. format-prefix-background = ${colors.banquette}
  344. format-prefix-foreground = ${colors.creme}
  345. date =
  346. date-alt = " %Y-%m-%d "
  347.  
  348. time = "%H:%M "
  349. time-alt = " %H:%M:%S "
  350.  
  351. ;format-prefix = 
  352. ;format-prefix-foreground = ${colors.foreground-alt}
  353. format-underline = ${colors.powderpuff}
  354.  
  355. label = %date%%time%
  356.  
  357. [module/pulseaudio]
  358. type = internal/pulseaudio
  359.  
  360. format-volume-background = ${colors.banquette}
  361.  
  362. format-volume = <label-volume> <bar-volume>
  363. label-volume = "%{F#F1D4AF} %{F-}%percentage%%"
  364. label-volume-foreground = ${root.foreground}
  365.  
  366. label-muted = "%{F#F1D4AF} %{F-}"
  367. label-muted-foreground = ${colors.charlotte}
  368.  
  369. bar-volume-width = 10
  370. bar-volume-foreground-0 = #55aa55
  371. bar-volume-foreground-1 = #55aa55
  372. bar-volume-foreground-2 = #55aa55
  373. bar-volume-foreground-3 = #55aa55
  374. bar-volume-foreground-4 = #55aa55
  375. bar-volume-foreground-5 = #f5a70a
  376. bar-volume-foreground-6 = #ff5555
  377. bar-volume-gradient = true
  378. bar-volume-indicator = 
  379. bar-volume-indicator-font = 2
  380. bar-volume-fill = -
  381. bar-volume-fill-font = 2
  382. bar-volume-empty = -
  383. bar-volume-empty-font = 2
  384. bar-volume-empty-foreground = ${colors.foreground-alt}
  385.  
  386. [module/alsa]
  387. type = internal/alsa
  388.  
  389. format-volume = <label-volume> <bar-volume>
  390. label-volume = VOL
  391. label-volume-foreground = ${root.foreground}
  392.  
  393. format-muted-prefix = " "
  394. format-muted-foreground = ${colors.foreground-alt}
  395. label-muted = sound muted
  396.  
  397. bar-volume-width = 10
  398. bar-volume-foreground-0 = #55aa55
  399. bar-volume-foreground-1 = #55aa55
  400. bar-volume-foreground-2 = #55aa55
  401. bar-volume-foreground-3 = #55aa55
  402. bar-volume-foreground-4 = #55aa55
  403. bar-volume-foreground-5 = #f5a70a
  404. bar-volume-foreground-6 = #ff5555
  405. bar-volume-gradient = false
  406. bar-volume-indicator = |
  407. bar-volume-indicator-font = 2
  408. bar-volume-fill = ─
  409. bar-volume-fill-font = 2
  410. bar-volume-empty = ─
  411. bar-volume-empty-font = 2
  412. bar-volume-empty-foreground = ${colors.foreground-alt}
  413.  
  414. [module/battery]
  415. type = internal/battery
  416. battery = BAT0
  417. adapter = AC0
  418. full-at = 98
  419.  
  420. format-discharging-background = ${colors.banquette}
  421. format-charging-background = ${colors.banquette}
  422. format-full-background = ${colors.banquette}
  423.  
  424. format-charging = <label-charging>
  425. format-charging-underline = ${colors.powderpuff}
  426. format-charging-prefix = "%{F#F1D4AF} %{F-}"
  427.  
  428. format-discharging-prefix = "%{F#F1D4AF}%{F-} "
  429. format-discharging =  <label-discharging>
  430. format-discharging-underline = ${self.format-charging-underline}
  431.  
  432. format-full-prefix = "%{F#F1D4AF}%{F-} "
  433. format-full-prefix-foreground = ${colors.foreground-alt}
  434. format-full-underline = ${self.format-charging-underline}
  435.  
  436. ramp-capacity-0 = 
  437. ramp-capacity-1 = 
  438. ramp-capacity-2 = 
  439. ramp-capacity-foreground = ${colors.foreground-alt}
  440.  
  441. animation-charging-0 = >
  442. animation-charging-1 = ->
  443. animation-charging-2 = -->
  444. animation-charging-foreground = ${colors.creme}
  445. animation-charging-framerate = 750
  446.  
  447. animation-discharging-0 = <
  448. animation-discharging-1 = <-
  449. animation-discharging-2 = <--
  450. animation-discharging-foreground = ${colors.creme}
  451. animation-discharging-framerate = 750
  452.  
  453. [module/temperature]
  454. type = internal/temperature
  455. thermal-zone = 0
  456. warn-temperature = 70
  457.  
  458. format-background = ${colors.banquette}
  459. format-prefix = "%{F#F1D4AF} %{F-}"
  460. format = <label>
  461. format-underline = ${colors.powderpuff}
  462. format-warn = <label-warn>
  463. format-warn-underline = #BB0000
  464. format-warn-prefix = "%{F#BB0000} %{F-}"
  465.  
  466. label = %temperature-c%
  467. label-warn = %temperature-c%
  468. label-warn-foreground = #BB0000
  469.  
  470. ramp-0 = 
  471. ramp-1 = 
  472. ramp-2 = 
  473. ramp-foreground = ${colors.foreground-alt}
  474.  
  475. [module/powermenu]
  476. type = custom/menu
  477.  
  478. expand-right = true
  479.  
  480. format-spacing = 1
  481.  
  482. label-open = []
  483. label-open-foreground = ${colors.creme}
  484. label-close = [X]
  485. label-close-foreground = ${colors.secondary}
  486. label-separator = |
  487. label-separator-foreground = ${colors.foreground-alt}
  488.  
  489. menu-0-0 = reboot
  490. menu-0-0-exec = menu-open-1
  491. menu-0-1 = power off
  492. menu-0-1-exec = menu-open-2
  493.  
  494. menu-1-0 = [X]
  495. menu-1-0-exec = menu-open-0
  496. menu-1-1 = reboot
  497. menu-1-1-exec = sudo reboot
  498.  
  499. menu-2-0 = power off
  500. menu-2-0-exec = sudo poweroff
  501. menu-2-1 = [X]
  502. menu-2-1-exec = menu-open-0
  503.  
  504. [settings]
  505. screenchange-reload = true
  506. ;compositing-background = xor
  507. ;compositing-background = screen
  508. ;compositing-foreground = source
  509. ;compositing-border = over
  510. ;pseudo-transparency = false
  511.  
  512. [global/wm]
  513. margin-top = 0
  514. margin-bottom = 0
  515.  
  516. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement