config 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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 = siji:pixelsize=10;1
  49. font-3 = Font Awesome 6 Free:style=Regular
  50. font-4 = Font Awesome 6 Free:style=Solid
  51. font-5 = Font Awesome 6 Brands
  52. modules-left = i3
  53. ;modules-center = mpd
  54. modules-right = memory cpu mybattery date powermenu
  55. tray-position = right
  56. tray-padding = 2
  57. ;tray-background = #0063ff
  58. ;wm-restack = bspwm
  59. wm-restack = i3
  60. ;override-redirect = true
  61. ;scroll-up = bspwm-desknext
  62. ;scroll-down = bspwm-deskprev
  63. ;scroll-up = i3wm-wsnext
  64. ;scroll-down = i3wm-wsprev
  65. cursor-click = pointer
  66. cursor-scroll = ns-resize
  67. [module/xwindow]
  68. type = internal/xwindow
  69. label = %title:0:30:...%
  70. [module/xkeyboard]
  71. type = internal/xkeyboard
  72. blacklist-0 = num lock
  73. format-prefix = " "
  74. format-prefix-foreground = ${colors.foreground-alt}
  75. format-prefix-underline = ${colors.secondary}
  76. label-layout = %layout%
  77. label-layout-underline = ${colors.secondary}
  78. label-indicator-padding = 2
  79. label-indicator-margin = 1
  80. label-indicator-background = ${colors.secondary}
  81. label-indicator-underline = ${colors.secondary}
  82. [module/filesystem]
  83. type = internal/fs
  84. interval = 25
  85. mount-0 = /
  86. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  87. label-unmounted = %mountpoint% not mounted
  88. label-unmounted-foreground = ${colors.foreground-alt}
  89. [module/i3]
  90. type = internal/i3
  91. format = <label-state> <label-mode>
  92. index-sort = true
  93. wrapping-scroll = false
  94. ; Only show workspaces on the same output as the bar
  95. ;pin-workspaces = true
  96. label-mode-padding = 2
  97. label-mode-foreground = #000
  98. label-mode-background = ${colors.primary}
  99. ; focused = Active workspace on focused monitor
  100. label-focused = %index%
  101. label-focused-background = ${colors.background-alt}
  102. label-focused-underline= ${colors.primary}
  103. label-focused-padding = 2
  104. ; unfocused = Inactive workspace on any monitor
  105. label-unfocused = %index%
  106. label-unfocused-padding = 2
  107. ; visible = Active workspace on unfocused monitor
  108. label-visible = %index%
  109. label-visible-background = ${self.label-focused-background}
  110. label-visible-underline = ${self.label-focused-underline}
  111. label-visible-padding = ${self.label-focused-padding}
  112. ; urgent = Workspace with urgency hint set
  113. label-urgent = %index%
  114. label-urgent-background = ${colors.alert}
  115. label-urgent-padding = 2
  116. ; Separator in between workspaces
  117. ; label-separator = |
  118. [module/mpd]
  119. type = internal/mpd
  120. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  121. icon-prev = 
  122. icon-stop = 
  123. icon-play = 
  124. icon-pause = 
  125. icon-next = 
  126. label-song-maxlen = 25
  127. label-song-ellipsis = true
  128. [module/cpu]
  129. type = internal/cpu
  130. interval = 2
  131. format-prefix = " "
  132. format-prefix-foreground = ${colors.foreground-alt}
  133. format-underline = #f90000
  134. label = %percentage:2%%
  135. [module/memory]
  136. type = internal/memory
  137. interval = 2
  138. format-prefix = " "
  139. format-prefix-foreground = ${colors.foreground-alt}
  140. format-underline = #4bffdc
  141. label = %percentage_used%%
  142. [module/wlan]
  143. type = internal/network
  144. interface =
  145. interval = 3.0
  146. format-connected = <ramp-signal> <label-connected>
  147. format-connected-underline = #9f78e1
  148. label-connected = %essid%
  149. format-disconnected =
  150. ;format-disconnected = <label-disconnected>
  151. ;format-disconnected-underline = ${self.format-connected-underline}
  152. ;label-disconnected = %ifname% disconnected
  153. ;label-disconnected-foreground = ${colors.foreground-alt}
  154. ramp-signal-0 = 
  155. ramp-signal-1 = 
  156. ramp-signal-2 = 
  157. ramp-signal-3 = 
  158. ramp-signal-4 = 
  159. ramp-signal-foreground = ${colors.foreground-alt}
  160. [module/eth]
  161. type = internal/network
  162. interface =
  163. interval = 3.0
  164. format-connected-underline = #55aa55
  165. format-connected-prefix = " "
  166. format-connected-prefix-foreground = ${colors.foreground-alt}
  167. label-connected = %local_ip%
  168. format-disconnected =
  169. ;format-disconnected = <label-disconnected>
  170. ;format-disconnected-underline = ${self.format-connected-underline}
  171. ;label-disconnected = %ifname% disconnected
  172. ;label-disconnected-foreground = ${colors.foreground-alt}
  173. [module/date]
  174. type = internal/date
  175. interval = 5
  176. date =
  177. date-alt = " %Y-%m-%d"
  178. time = %a %b %e %H:%M
  179. time-alt = %H:%M:%S
  180. format-prefix = 
  181. format-prefix-foreground = ${colors.foreground-alt}
  182. format-underline = #0a6cf5
  183. label = %date% %time%
  184. [module/pulseaudio]
  185. type = internal/pulseaudio
  186. format-volume = <label-volume> <bar-volume>
  187. label-volume = VOL %percentage%%
  188. label-volume-foreground = ${root.foreground}
  189. label-muted = 🔇 muted
  190. label-muted-foreground = #666
  191. bar-volume-width = 10
  192. bar-volume-foreground-0 = #55aa55
  193. bar-volume-foreground-1 = #55aa55
  194. bar-volume-foreground-2 = #55aa55
  195. bar-volume-foreground-3 = #55aa55
  196. bar-volume-foreground-4 = #55aa55
  197. bar-volume-foreground-5 = #f5a70a
  198. bar-volume-foreground-6 = #ff5555
  199. bar-volume-gradient = false
  200. bar-volume-indicator = |
  201. bar-volume-indicator-font = 2
  202. bar-volume-fill = ─
  203. bar-volume-fill-font = 2
  204. bar-volume-empty = ─
  205. bar-volume-empty-font = 2
  206. bar-volume-empty-foreground = ${colors.foreground-alt}
  207. [module/alsa]
  208. type = internal/alsa
  209. format-volume = <label-volume> <bar-volume>
  210. label-volume = VOL
  211. label-volume-foreground = ${root.foreground}
  212. format-muted-prefix = " "
  213. format-muted-foreground = ${colors.foreground-alt}
  214. label-muted = sound muted
  215. bar-volume-width = 10
  216. bar-volume-foreground-0 = #55aa55
  217. bar-volume-foreground-1 = #55aa55
  218. bar-volume-foreground-2 = #55aa55
  219. bar-volume-foreground-3 = #55aa55
  220. bar-volume-foreground-4 = #55aa55
  221. bar-volume-foreground-5 = #f5a70a
  222. bar-volume-foreground-6 = #ff5555
  223. bar-volume-gradient = false
  224. bar-volume-indicator = |
  225. bar-volume-indicator-font = 2
  226. bar-volume-fill = ─
  227. bar-volume-fill-font = 2
  228. bar-volume-empty = ─
  229. bar-volume-empty-font = 2
  230. bar-volume-empty-foreground = ${colors.foreground-alt}
  231. [module/mybattery]
  232. type = custom/script
  233. exec = battery
  234. interval = 307
  235. [module/battery]
  236. type = internal/battery
  237. battery = ACPIBAT0
  238. adapter = ADP1
  239. full-at = 98
  240. format-charging = <animation-charging> <label-charging>
  241. format-charging-underline = #ffb52a
  242. format-discharging = <animation-discharging> <label-discharging>
  243. format-discharging-underline = ${self.format-charging-underline}
  244. format-full-prefix = " "
  245. format-full-prefix-foreground = ${colors.foreground-alt}
  246. format-full-underline = ${self.format-charging-underline}
  247. ramp-capacity-0 = 
  248. ramp-capacity-1 = 
  249. ramp-capacity-2 = 
  250. ramp-capacity-foreground = ${colors.foreground-alt}
  251. animation-charging-0 = 
  252. animation-charging-1 = 
  253. animation-charging-2 = 
  254. animation-charging-foreground = ${colors.foreground-alt}
  255. animation-charging-framerate = 750
  256. animation-discharging-0 = 
  257. animation-discharging-1 = 
  258. animation-discharging-2 = 
  259. animation-discharging-foreground = ${colors.foreground-alt}
  260. animation-discharging-framerate = 750
  261. [module/temperature]
  262. type = internal/temperature
  263. thermal-zone = 0
  264. warn-temperature = 60
  265. format = <ramp> <label>
  266. format-underline = #f50a4d
  267. format-warn = <ramp> <label-warn>
  268. format-warn-underline = ${self.format-underline}
  269. label = %temperature-c%
  270. label-warn = %temperature-c%
  271. label-warn-foreground = ${colors.secondary}
  272. ramp-0 = 
  273. ramp-1 = 
  274. ramp-2 = 
  275. ramp-foreground = ${colors.foreground-alt}
  276. [module/powermenu]
  277. type = custom/menu
  278. expand-right = true
  279. format-spacing = 1
  280. label-open = 
  281. label-open-foreground = ${colors.secondary}
  282. label-close =  cancel
  283. label-close-foreground = ${colors.secondary}
  284. label-separator = |
  285. label-separator-foreground = ${colors.foreground-alt}
  286. menu-0-0 = reboot
  287. menu-0-0-exec = menu-open-1
  288. menu-0-1 = power off
  289. menu-0-1-exec = menu-open-2
  290. menu-1-0 = cancel
  291. menu-1-0-exec = menu-open-0
  292. menu-1-1 = reboot
  293. menu-1-1-exec = sudo reboot
  294. menu-2-0 = power off
  295. menu-2-0-exec = sudo poweroff
  296. menu-2-1 = cancel
  297. menu-2-1-exec = menu-open-0
  298. [settings]
  299. screenchange-reload = true
  300. ;compositing-background = xor
  301. ;compositing-background = screen
  302. ;compositing-foreground = source
  303. ;compositing-border = over
  304. ;pseudo-transparency = false
  305. [global/wm]
  306. margin-top = 5
  307. margin-bottom = 5
  308. ; vim:ft=dosini