config 11 KB

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