You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

433 lines
11 KiB

2 years ago
2 years ago
  1. ; THIS IS AN EXAMPLE CONFIGURATION FILE!
  2. ; IT IS NOT SUPPOSED TO WORK OUT OF THE BOX SINCE IS CONTAINS
  3. ; SETTINGS THAT ARE SPECIFIC TO THE MACHINE WHICH WAS USED
  4. ; TO GENERATE IT.
  5. ; Please refer to the web documentation hosted at:
  6. ; https://github.com/polybar/polybar#configuration
  7. ; and
  8. ; https://github.com/polybar/polybar/wiki/Configuration
  9. ; if you want to automatically generate one for you.
  10. ;
  11. ;==========================================================
  12. ;
  13. ;
  14. ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
  15. ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
  16. ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
  17. ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
  18. ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
  19. ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
  20. ;
  21. ;
  22. ; To learn more about how to configure Polybar
  23. ; go to https://github.com/polybar/polybar
  24. ;
  25. ; The README contains a lot of information
  26. ;
  27. ;==========================================================
  28. [colors]
  29. ;background = ${xrdb:color0:#222}
  30. background = #222
  31. background-alt = #444
  32. ;foreground = ${xrdb:color7:#222}
  33. foreground = #dfdfdf
  34. foreground-alt = #555
  35. primary = #ffb52a
  36. secondary = #e60053
  37. alert = #bd2c40
  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 = 6.0
  45. fixed-center = false
  46. background = ${colors.background}
  47. foreground = ${colors.foreground}
  48. line-size = 3
  49. line-color = #f00
  50. border-size = 4
  51. border-color = #00000000
  52. padding-left = 0
  53. padding-right = 2
  54. module-margin-left = 1
  55. module-margin-right = 2
  56. font-0 = fixed:pixelsize=10;1
  57. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  58. font-2 = siji:pixelsize=10;1
  59. modules-left = bspwm i3
  60. ;modules-center = mpd
  61. modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu
  62. tray-position = right
  63. tray-padding = 2
  64. ;tray-background = #0063ff
  65. ;wm-restack = bspwm
  66. ;wm-restack = i3
  67. ;override-redirect = true
  68. ;scroll-up = bspwm-desknext
  69. ;scroll-down = bspwm-deskprev
  70. ;scroll-up = i3wm-wsnext
  71. ;scroll-down = i3wm-wsprev
  72. cursor-click = pointer
  73. cursor-scroll = ns-resize
  74. [module/xwindow]
  75. type = internal/xwindow
  76. label = %title:0:30:...%
  77. [module/xkeyboard]
  78. type = internal/xkeyboard
  79. blacklist-0 = num lock
  80. format-prefix = " "
  81. format-prefix-foreground = ${colors.foreground-alt}
  82. format-prefix-underline = ${colors.secondary}
  83. label-layout = %layout%
  84. label-layout-underline = ${colors.secondary}
  85. label-indicator-padding = 2
  86. label-indicator-margin = 1
  87. label-indicator-background = ${colors.secondary}
  88. label-indicator-underline = ${colors.secondary}
  89. [module/filesystem]
  90. type = internal/fs
  91. interval = 25
  92. mount-0 = /
  93. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  94. label-unmounted = %mountpoint% not mounted
  95. label-unmounted-foreground = ${colors.foreground-alt}
  96. [module/bspwm]
  97. type = internal/bspwm
  98. label-focused = %index%
  99. label-focused-background = ${colors.background-alt}
  100. label-focused-underline= ${colors.primary}
  101. label-focused-padding = 2
  102. label-occupied = %index%
  103. label-occupied-padding = 2
  104. label-urgent = %index%!
  105. label-urgent-background = ${colors.alert}
  106. label-urgent-padding = 2
  107. label-empty = %index%
  108. label-empty-foreground = ${colors.foreground-alt}
  109. label-empty-padding = 2
  110. ; Separator in between workspaces
  111. ; label-separator = |
  112. [module/i3]
  113. type = internal/i3
  114. format = <label-state> <label-mode>
  115. index-sort = true
  116. wrapping-scroll = false
  117. ; Only show workspaces on the same output as the bar
  118. ;pin-workspaces = true
  119. label-mode-padding = 2
  120. label-mode-foreground = #000
  121. label-mode-background = ${colors.primary}
  122. ; focused = Active workspace on focused monitor
  123. label-focused = %index%
  124. label-focused-background = ${colors.background-alt}
  125. label-focused-underline= ${colors.primary}
  126. label-focused-padding = 2
  127. ; unfocused = Inactive workspace on any monitor
  128. label-unfocused = %index%
  129. label-unfocused-padding = 2
  130. ; visible = Active workspace on unfocused monitor
  131. label-visible = %index%
  132. label-visible-background = ${self.label-focused-background}
  133. label-visible-underline = ${self.label-focused-underline}
  134. label-visible-padding = ${self.label-focused-padding}
  135. ; urgent = Workspace with urgency hint set
  136. label-urgent = %index%
  137. label-urgent-background = ${colors.alert}
  138. label-urgent-padding = 2
  139. ; Separator in between workspaces
  140. ; label-separator = |
  141. [module/mpd]
  142. type = internal/mpd
  143. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  144. icon-prev =
  145. icon-stop =
  146. icon-play =
  147. icon-pause =
  148. icon-next =
  149. label-song-maxlen = 25
  150. label-song-ellipsis = true
  151. [module/xbacklight]
  152. type = internal/xbacklight
  153. format = <label> <bar>
  154. label = BL
  155. bar-width = 10
  156. bar-indicator = |
  157. bar-indicator-foreground = #fff
  158. bar-indicator-font = 2
  159. bar-fill =
  160. bar-fill-font = 2
  161. bar-fill-foreground = #9f78e1
  162. bar-empty =
  163. bar-empty-font = 2
  164. bar-empty-foreground = ${colors.foreground-alt}
  165. [module/backlight-acpi]
  166. inherit = module/xbacklight
  167. type = internal/backlight
  168. card = intel_backlight
  169. [module/cpu]
  170. type = internal/cpu
  171. interval = 2
  172. format-prefix = " "
  173. format-prefix-foreground = ${colors.foreground-alt}
  174. format-underline = #f90000
  175. label = %percentage:2%%
  176. [module/memory]
  177. type = internal/memory
  178. interval = 2
  179. format-prefix = " "
  180. format-prefix-foreground = ${colors.foreground-alt}
  181. format-underline = #4bffdc
  182. label = %percentage_used%%
  183. [module/wlan]
  184. type = internal/network
  185. interface = wlp59s0
  186. interval = 3.0
  187. format-connected = <ramp-signal> <label-connected>
  188. format-connected-underline = #9f78e1
  189. label-connected = %essid%
  190. format-disconnected =
  191. ;format-disconnected = <label-disconnected>
  192. ;format-disconnected-underline = ${self.format-connected-underline}
  193. ;label-disconnected = %ifname% disconnected
  194. ;label-disconnected-foreground = ${colors.foreground-alt}
  195. ramp-signal-0 =
  196. ramp-signal-1 =
  197. ramp-signal-2 =
  198. ramp-signal-3 =
  199. ramp-signal-4 =
  200. ramp-signal-foreground = ${colors.foreground-alt}
  201. [module/eth]
  202. type = internal/network
  203. interface = enp0s31f6
  204. interval = 3.0
  205. format-connected-underline = #55aa55
  206. format-connected-prefix = " "
  207. format-connected-prefix-foreground = ${colors.foreground-alt}
  208. label-connected = %local_ip%
  209. format-disconnected =
  210. ;format-disconnected = <label-disconnected>
  211. ;format-disconnected-underline = ${self.format-connected-underline}
  212. ;label-disconnected = %ifname% disconnected
  213. ;label-disconnected-foreground = ${colors.foreground-alt}
  214. [module/date]
  215. type = internal/date
  216. interval = 5
  217. date =
  218. date-alt = " %Y-%m-%d"
  219. time = %H:%M
  220. time-alt = %H:%M:%S
  221. format-prefix =
  222. format-prefix-foreground = ${colors.foreground-alt}
  223. format-underline = #0a6cf5
  224. label = %date% %time%
  225. [module/pulseaudio]
  226. type = internal/pulseaudio
  227. format-volume = <label-volume> <bar-volume>
  228. label-volume = VOL %percentage%%
  229. label-volume-foreground = ${root.foreground}
  230. label-muted = 🔇 muted
  231. label-muted-foreground = #666
  232. bar-volume-width = 10
  233. bar-volume-foreground-0 = #55aa55
  234. bar-volume-foreground-1 = #55aa55
  235. bar-volume-foreground-2 = #55aa55
  236. bar-volume-foreground-3 = #55aa55
  237. bar-volume-foreground-4 = #55aa55
  238. bar-volume-foreground-5 = #f5a70a
  239. bar-volume-foreground-6 = #ff5555
  240. bar-volume-gradient = false
  241. bar-volume-indicator = |
  242. bar-volume-indicator-font = 2
  243. bar-volume-fill =
  244. bar-volume-fill-font = 2
  245. bar-volume-empty =
  246. bar-volume-empty-font = 2
  247. bar-volume-empty-foreground = ${colors.foreground-alt}
  248. [module/alsa]
  249. type = internal/alsa
  250. format-volume = <label-volume> <bar-volume>
  251. label-volume = VOL
  252. label-volume-foreground = ${root.foreground}
  253. format-muted-prefix = " "
  254. format-muted-foreground = ${colors.foreground-alt}
  255. label-muted = sound muted
  256. bar-volume-width = 10
  257. bar-volume-foreground-0 = #55aa55
  258. bar-volume-foreground-1 = #55aa55
  259. bar-volume-foreground-2 = #55aa55
  260. bar-volume-foreground-3 = #55aa55
  261. bar-volume-foreground-4 = #55aa55
  262. bar-volume-foreground-5 = #f5a70a
  263. bar-volume-foreground-6 = #ff5555
  264. bar-volume-gradient = false
  265. bar-volume-indicator = |
  266. bar-volume-indicator-font = 2
  267. bar-volume-fill =
  268. bar-volume-fill-font = 2
  269. bar-volume-empty =
  270. bar-volume-empty-font = 2
  271. bar-volume-empty-foreground = ${colors.foreground-alt}
  272. [module/battery]
  273. type = internal/battery
  274. battery = BAT0
  275. adapter = AC
  276. full-at = 98
  277. format-charging = <animation-charging> <label-charging>
  278. format-charging-underline = #ffb52a
  279. format-discharging = <animation-discharging> <label-discharging>
  280. format-discharging-underline = ${self.format-charging-underline}
  281. format-full-prefix = " "
  282. format-full-prefix-foreground = ${colors.foreground-alt}
  283. format-full-underline = ${self.format-charging-underline}
  284. ramp-capacity-0 =
  285. ramp-capacity-1 =
  286. ramp-capacity-2 =
  287. ramp-capacity-foreground = ${colors.foreground-alt}
  288. animation-charging-0 =
  289. animation-charging-1 =
  290. animation-charging-2 =
  291. animation-charging-foreground = ${colors.foreground-alt}
  292. animation-charging-framerate = 750
  293. animation-discharging-0 =
  294. animation-discharging-1 =
  295. animation-discharging-2 =
  296. animation-discharging-foreground = ${colors.foreground-alt}
  297. animation-discharging-framerate = 750
  298. [module/temperature]
  299. type = internal/temperature
  300. thermal-zone = 0
  301. warn-temperature = 60
  302. format = <ramp> <label>
  303. format-underline = #f50a4d
  304. format-warn = <ramp> <label-warn>
  305. format-warn-underline = ${self.format-underline}
  306. label = %temperature-c%
  307. label-warn = %temperature-c%
  308. label-warn-foreground = ${colors.secondary}
  309. ramp-0 =
  310. ramp-1 =
  311. ramp-2 =
  312. ramp-foreground = ${colors.foreground-alt}
  313. [module/powermenu]
  314. type = custom/menu
  315. expand-right = true
  316. format-spacing = 1
  317. label-open =
  318. label-open-foreground = ${colors.secondary}
  319. label-close =  cancel
  320. label-close-foreground = ${colors.secondary}
  321. label-separator = |
  322. label-separator-foreground = ${colors.foreground-alt}
  323. menu-0-0 = reboot
  324. menu-0-0-exec = menu-open-1
  325. menu-0-1 = power off
  326. menu-0-1-exec = menu-open-2
  327. menu-1-0 = cancel
  328. menu-1-0-exec = menu-open-0
  329. menu-1-1 = reboot
  330. menu-1-1-exec = sudo reboot
  331. menu-2-0 = power off
  332. menu-2-0-exec = sudo poweroff
  333. menu-2-1 = cancel
  334. menu-2-1-exec = menu-open-0
  335. [settings]
  336. screenchange-reload = true
  337. ;compositing-background = xor
  338. ;compositing-background = screen
  339. ;compositing-foreground = source
  340. ;compositing-border = over
  341. ;pseudo-transparency = false
  342. [global/wm]
  343. margin-top = 5
  344. margin-bottom = 5
  345. ; vim:ft=dosini