config 10 KB

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