config 8.6 KB

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