config 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. ;=====================================================
  2. ;
  3. ; To learn more about how to configure Polybar
  4. ; go to https://github.com/jaagr/polybar
  5. ;
  6. ; The README contains alot of information
  7. ;
  8. ;=====================================================
  9. [colors]
  10. background = ${xrdb:background:#222}
  11. foreground = ${xrdb:foreground:#222}
  12. background-alt = ${xrdb:background:#222}
  13. foreground-alt = ${xrdb:foreground:#222}
  14. primary = ${xrdb:color1:#222}
  15. secondary = ${xrdb:color2:#222}
  16. alert = ${xrdb:color3:#222}
  17. [bar/dp2]
  18. monitor = ${env:MONITOR:DP-2}
  19. width = 100%
  20. height = 27
  21. ;offset-x = 1%
  22. ;offset-y = 1%
  23. ;radius = 6.0
  24. fixed-center = false
  25. background = ${colors.background}
  26. foreground = ${colors.foreground}
  27. line-size = 3
  28. line-color = #f00
  29. ;border-size = 4
  30. ;border-color = #00000000
  31. padding-left = 0
  32. padding-right = 2
  33. module-margin-left = 1
  34. module-margin-right = 2
  35. font-0 = "xos4 Terminus:style=Bold:pixelsize=18;1"
  36. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  37. font-2 = "Wuncon Siji:pixelsize=14;1"
  38. font-3 = "HanaMinA,花園明朝A:pixelsize=14;1"
  39. modules-left = bspwm i3 mpd
  40. modules-center =
  41. modules-right = xbacklight volume xkeyboard filesystem memory cpu wlan eth battery temperature date powermenu
  42. tray-position = right
  43. tray-padding = 2
  44. tray-background = ${colors.background}
  45. ;wm-restack = bspwm
  46. ;wm-restack = i3
  47. ;override-redirect = true
  48. ;scroll-up = bspwm-desknext
  49. ;scroll-down = bspwm-deskprev
  50. ;scroll-up = i3wm-wsnext
  51. ;scroll-down = i3wm-wsprev
  52. cursor-click = pointer
  53. cursor-scroll = ns-resize
  54. [module/xwindow]
  55. type = internal/xwindow
  56. label = %title:0:30:...%
  57. [module/xkeyboard]
  58. type = internal/xkeyboard
  59. blacklist-0 = num lock
  60. format-prefix = " "
  61. format-prefix-foreground = ${colors.foreground-alt}
  62. format-prefix-underline = ${colors.secondary}
  63. label-layout = %layout%
  64. label-layout-underline = ${colors.secondary}
  65. label-indicator-padding = 2
  66. label-indicator-margin = 1
  67. label-indicator-background = ${colors.secondary}
  68. label-indicator-underline = ${colors.secondary}
  69. [module/filesystem]
  70. type = internal/fs
  71. interval = 5
  72. mount-0 = /
  73. label-mounted = %free%
  74. label-unmounted = %mountpoint% not mounted
  75. label-unmounted-foreground = ${colors.foreground-alt}
  76. label-mounted-underline = ${xrdb:color4:#222}
  77. [module/bspwm]
  78. type = internal/bspwm
  79. label-focused = %index%
  80. label-focused-background = ${colors.background-alt}
  81. label-focused-underline= ${colors.primary}
  82. label-focused-padding = 2
  83. label-occupied = %index%
  84. label-occupied-padding = 2
  85. label-urgent = %index%!
  86. label-urgent-background = ${colors.alert}
  87. label-urgent-padding = 2
  88. label-empty = %index%
  89. label-empty-foreground = ${colors.foreground-alt}
  90. label-empty-padding = 2
  91. [module/i3]
  92. type = internal/i3
  93. format = <label-state> <label-mode>
  94. index-sort = true
  95. wrapping-scroll = false
  96. ; Only show workspaces on the same output as the bar
  97. ;pin-workspaces = true
  98. label-mode-padding = 2
  99. label-mode-foreground = #000
  100. label-mode-background = ${colors.primary}
  101. ; focused = Active workspace on focused monitor
  102. label-focused = %index%
  103. label-focused-background = ${module/bspwm.label-focused-background}
  104. label-focused-underline = ${module/bspwm.label-focused-underline}
  105. label-focused-padding = ${module/bspwm.label-focused-padding}
  106. ; unfocused = Inactive workspace on any monitor
  107. label-unfocused = %index%
  108. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  109. ; visible = Active workspace on unfocused monitor
  110. label-visible = %index%
  111. label-visible-background = ${self.label-focused-background}
  112. label-visible-underline = ${self.label-focused-underline}
  113. label-visible-padding = ${self.label-focused-padding}
  114. ; urgent = Workspace with urgency hint set
  115. label-urgent = %index%
  116. label-urgent-background = ${module/bspwm.label-urgent-background}
  117. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  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/xbacklight]
  129. type = internal/xbacklight
  130. format = <label> <bar>
  131. label = BL
  132. bar-width = 10
  133. bar-indicator = |
  134. bar-indicator-foreground = #ff
  135. bar-indicator-font = 2
  136. bar-fill = ─
  137. bar-fill-font = 2
  138. bar-fill-foreground = #9f78e1
  139. bar-empty = ─
  140. bar-empty-font = 2
  141. bar-empty-foreground = ${colors.foreground-alt}
  142. [module/backlight-acpi]
  143. inherit = module/xbacklight
  144. type = internal/backlight
  145. card = intel_backlight
  146. [module/cpu]
  147. type = internal/cpu
  148. interval = 2
  149. format-prefix = " "
  150. format-prefix-foreground = ${colors.foreground-alt}
  151. format-underline = ${xrdb:color5:#222}
  152. label = %percentage:2%%
  153. [module/memory]
  154. type = internal/memory
  155. interval = 2
  156. format-prefix = " "
  157. format-prefix-foreground = ${colors.foreground-alt}
  158. format-underline = ${xrdb:color6:#222}
  159. label = %gb_used%
  160. [module/wlan]
  161. type = internal/network
  162. interface = net1
  163. interval = 3.0
  164. format-connected = <ramp-signal> <label-connected>
  165. format-connected-underline = #9f78e1
  166. label-connected = %essid%
  167. format-disconnected =
  168. ;format-disconnected = <label-disconnected>
  169. ;format-disconnected-underline = ${self.format-connected-underline}
  170. ;label-disconnected = %ifname% disconnected
  171. ;label-disconnected-foreground = ${colors.foreground-alt}
  172. ramp-signal-0 = 
  173. ramp-signal-1 = 
  174. ramp-signal-2 = 
  175. ramp-signal-3 = 
  176. ramp-signal-4 = 
  177. ramp-signal-foreground = ${colors.foreground-alt}
  178. [module/eth]
  179. type = internal/network
  180. interface = enp3s0
  181. interval = 3.0
  182. format-connected-underline = ${xrdb:color9:#222}
  183. format-connected-prefix = " "
  184. format-connected-prefix-foreground = ${colors.foreground-alt}
  185. label-connected = %local_ip% (%linkspeed%)
  186. format-disconnected =
  187. ;format-disconnected = <label-disconnected>
  188. ;format-disconnected-underline = ${self.format-connected-underline}
  189. ;label-disconnected = %ifname% disconnected
  190. ;label-disconnected-foreground = ${colors.foreground-alt}
  191. [module/date]
  192. type = internal/date
  193. interval = 5
  194. date = " %Y-%m-%d"
  195. date-alt = " %Y-%m-%d"
  196. time = %H:%M
  197. time-alt = %H:%M:%S
  198. format-prefix = 
  199. format-prefix-foreground = ${colors.foreground-alt}
  200. format-underline = ${xrdb:color10:#222}
  201. label = %date% %time%
  202. [module/volume]
  203. type = internal/volume
  204. format-volume = <label-volume> <bar-volume>
  205. label-volume = VOL: %percentage%%
  206. label-volume-foreground = ${root.foreground}
  207. format-muted-prefix = " "
  208. format-muted-foreground = ${colors.foreground-alt}
  209. label-muted = sound muted
  210. bar-volume-width = 10
  211. bar-volume-foreground-0 = #55aa55
  212. bar-volume-foreground-1 = #55aa55
  213. bar-volume-foreground-2 = #55aa55
  214. bar-volume-foreground-3 = #55aa55
  215. bar-volume-foreground-4 = #55aa55
  216. bar-volume-foreground-5 = #f5a70a
  217. bar-volume-foreground-6 = #ff5555
  218. bar-volume-gradient = false
  219. bar-volume-indicator = |
  220. bar-volume-indicator-font = 2
  221. bar-volume-fill = ─
  222. bar-volume-fill-font = 2
  223. bar-volume-empty = ─
  224. bar-volume-empty-font = 2
  225. bar-volume-empty-foreground = ${colors.foreground-alt}
  226. [module/battery]
  227. type = internal/battery
  228. battery = BAT0
  229. adapter = ADP1
  230. full-at = 98
  231. format-charging = <animation-charging> <label-charging>
  232. format-charging-underline = #ffb52a
  233. format-discharging = <ramp-capacity> <label-discharging>
  234. format-discharging-underline = ${self.format-charging-underline}
  235. format-full-prefix = " "
  236. format-full-prefix-foreground = ${colors.foreground-alt}
  237. format-full-underline = ${self.format-charging-underline}
  238. ramp-capacity-0 = 
  239. ramp-capacity-1 = 
  240. ramp-capacity-2 = 
  241. ramp-capacity-foreground = ${colors.foreground-alt}
  242. animation-charging-0 = 
  243. animation-charging-1 = 
  244. animation-charging-2 = 
  245. animation-charging-foreground = ${colors.foreground-alt}
  246. animation-charging-framerate = 750
  247. [module/temperature]
  248. type = internal/temperature
  249. thermal-zone = 0
  250. warn-temperature = 60
  251. format = <ramp> <label>
  252. format-underline = ${xrdb:color11:#222}
  253. format-warn = <ramp> <label-warn>
  254. format-warn-underline = ${self.format-underline}
  255. label = %temperature%
  256. label-warn = %temperature%
  257. label-warn-foreground = ${colors.secondary}
  258. ramp-0 = 
  259. ramp-1 = 
  260. ramp-2 = 
  261. ramp-foreground = ${colors.foreground-alt}
  262. [settings]
  263. screenchange-reload = true
  264. ;compositing-background = xor
  265. ;compositing-background = screen
  266. ;compositing-foreground = source
  267. ;compositing-border = over
  268. [global/wm]
  269. margin-top = 5
  270. margin-bottom = 5
  271. ; vim:ft=dosini