config 8.5 KB

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