config 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  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 = #261245
  21. background-alt = #ff0078
  22. ;foreground = ${xrdb:color7:#222}
  23. foreground = #00ff9c
  24. foreground-alt = #00aa5f
  25. primary = #ff0078
  26. secondary = #7700ff
  27. alert = #ffdd00
  28. underline-orange = #FDB95D
  29. ;==========================
  30. ; == Right screen ========
  31. ;========================
  32. [bar/empty]
  33. monitor = DVI-D-0
  34. width = 100%
  35. height = 18
  36. offset-x = 0%
  37. ;offset-y = -0
  38. radius = 6.0
  39. fixed-center = true
  40. override-redirect = true
  41. background = #00000000
  42. foreground = ${colors.foreground}
  43. line-size = 0
  44. line-color = #00ff9c
  45. border-size = 2
  46. border-color = #00000000
  47. padding-left = 0
  48. padding-right = 2
  49. module-margin-left = 1
  50. module-margin-right = 2
  51. font-0 = fixed:pixelsize=14;1
  52. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  53. font-2 = siji:pixelsize=10;1
  54. modules-center = bspwm
  55. ;modules-left = nothing
  56. wm-restack = bspwm
  57. [bar/first]
  58. monitor = DP-0
  59. width = 100%
  60. height = 38
  61. offset-x = 0%
  62. ;offset-y = 1%
  63. radius = 10
  64. fixed-center = true
  65. background = #00000000
  66. foreground = ${colors.foreground}
  67. line-size = 0
  68. line-color = #00ff9c
  69. border-size = 1
  70. border-color = #00000000
  71. padding-left = 1
  72. padding-right = 2
  73. module-margin-left = 1
  74. module-margin-right = 2
  75. font-0 = fixed:pixelsize=16;1
  76. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  77. font-2 = siji:pixelsize=10;1
  78. modules-center = bspwm i3
  79. modules-left = polywins
  80. ;line-size = 0
  81. #modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu
  82. modules-right = filesystem pulseaudio xkeyboard memory cpu date
  83. #modules-right = filesystem alsa pulseaudio xkeyboard memory cpu wlan eth temperature date powermenu
  84. tray-position = right
  85. tray-padding = 2
  86. tray-background = #000000
  87. wm-restack = bspwm
  88. ;wm-restack = i3
  89. ;override-redirect = true
  90. ;scroll-up = bspwm-desknext
  91. ;scroll-down = bspwm-deskprev
  92. ;scroll-up = i3wm-wsnext
  93. ;scroll-down = i3wm-wsprev
  94. cursor-click = pointer
  95. cursor-scroll = ns-resize
  96. [module/xwindow]
  97. type = internal/xwindow
  98. label = %title:0:30:...%
  99. [module/xkeyboard]
  100. type = internal/xkeyboard
  101. blacklist-0 = num lock
  102. format-prefix = " "
  103. format-prefix-foreground = ${colors.foreground-alt}
  104. format-prefix-underline = ${colors.secondary}
  105. label-layout = %layout%
  106. label-layout-underline = ${colors.secondary}
  107. label-indicator-padding = 2
  108. label-indicator-margin = 1
  109. label-indicator-background = ${colors.secondary}
  110. label-indicator-underline = ${colors.secondary}
  111. [module/nothing]
  112. type = custom/script
  113. interval = 3600000
  114. [module/filesystem]
  115. type = internal/fs
  116. interval = 25
  117. mount-0 = /
  118. mount-1 = /mnt/mass_storage
  119. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  120. label-unmounted = %mountpoint% not mounted
  121. label-unmounted-foreground = ${colors.foreground-alt}
  122. [module/bspwm]
  123. type = internal/bspwm
  124. label-focused = ◉
  125. ;label-focused-background = ${colors.background-alt}
  126. label-focused-background = #44005511
  127. label-focused-underline= ${colors.primary}
  128. label-focused-padding = 2
  129. label-occupied = ○
  130. label-occupied-padding = 2
  131. label-urgent = %index%!
  132. label-urgent-background = ${colors.alert}
  133. label-urgent-padding = 2
  134. label-empty = ◌
  135. label-empty-foreground = ${colors.foreground-alt}
  136. label-empty-padding = 2
  137. ; Separator in between workspaces
  138. ;label-separator =
  139. [module/i3]
  140. type = internal/i3
  141. format = <label-state> <label-mode>
  142. index-sort = true
  143. wrapping-scroll = false
  144. ; Only show workspaces on the same output as the bar
  145. ;pin-workspaces = true
  146. label-mode-padding = 2
  147. label-mode-foreground = #000
  148. label-mode-background = ${colors.primary}
  149. ; focused = Active workspace on focused monitor
  150. label-focused = %index%
  151. label-focused-background = ${colors.background-alt}
  152. label-focused-underline= ${colors.primary}
  153. label-focused-padding = 2
  154. ; unfocused = Inactive workspace on any monitor
  155. label-unfocused = %index%
  156. label-unfocused-padding = 2
  157. ; visible = Active workspace on unfocused monitor
  158. label-visible = %index%
  159. label-visible-background = ${self.label-focused-background}
  160. label-visible-underline = ${self.label-focused-underline}
  161. label-visible-padding = ${self.label-focused-padding}
  162. ; urgent = Workspace with urgency hint set
  163. label-urgent = %index%
  164. label-urgent-background = ${colors.alert}
  165. label-urgent-padding = 2
  166. ; Separator in between workspaces
  167. ; label-separator = |
  168. [module/mpd]
  169. type = internal/mpd
  170. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  171. icon-prev = 
  172. icon-stop = 
  173. icon-play = 
  174. icon-pause = 
  175. icon-next = 
  176. label-song-maxlen = 25
  177. label-song-ellipsis = true
  178. [module/xbacklight]
  179. type = internal/xbacklight
  180. format = <label> <bar>
  181. label = BL
  182. bar-width = 10
  183. bar-indicator = |
  184. bar-indicator-foreground = #fff
  185. bar-indicator-font = 2
  186. bar-fill = ─
  187. bar-fill-font = 2
  188. bar-fill-foreground = #9f78e1
  189. bar-empty = ─
  190. bar-empty-font = 2
  191. bar-empty-foreground = ${colors.foreground-alt}
  192. [module/backlight-acpi]
  193. inherit = module/xbacklight
  194. type = internal/backlight
  195. card = intel_backlight
  196. [module/cpu]
  197. type = internal/cpu
  198. interval = 2
  199. format-prefix = " "
  200. format-prefix-foreground = ${colors.foreground-alt}
  201. format-underline = #f90000
  202. label = %percentage:2%%
  203. [module/memory]
  204. type = internal/memory
  205. interval = 2
  206. format-prefix = " "
  207. format-prefix-foreground = ${colors.foreground-alt}
  208. format-underline = #4bffdc
  209. label = %percentage_used%%
  210. [module/wlan]
  211. type = internal/network
  212. interface = net1
  213. interval = 3.0
  214. format-connected = <ramp-signal> <label-connected>
  215. format-connected-underline = #9f78e1
  216. label-connected = %essid%
  217. format-disconnected =
  218. ;format-disconnected = <label-disconnected>
  219. ;format-disconnected-underline = ${self.format-connected-underline}
  220. ;label-disconnected = %ifname% disconnected
  221. ;label-disconnected-foreground = ${colors.foreground-alt}
  222. ramp-signal-0 = 
  223. ramp-signal-1 = 
  224. ramp-signal-2 = 
  225. ramp-signal-3 = 
  226. ramp-signal-4 = 
  227. ramp-signal-foreground = ${colors.foreground-alt}
  228. [module/eth]
  229. type = internal/network
  230. interface = veth87e498f
  231. interval = 3.0
  232. format-connected-underline = #55aa55
  233. format-connected-prefix = " "
  234. format-connected-prefix-foreground = ${colors.foreground-alt}
  235. label-connected = %local_ip%
  236. format-disconnected =
  237. ;format-disconnected = <label-disconnected>
  238. ;format-disconnected-underline = ${self.format-connected-underline}
  239. ;label-disconnected = %ifname% disconnected
  240. ;label-disconnected-foreground = ${colors.foreground-alt}
  241. [module/date]
  242. type = internal/date
  243. interval = 5
  244. date =
  245. date-alt = " %Y-%m-%d"
  246. time = %H:%M
  247. time-alt = %H:%M:%S
  248. format-prefix = 
  249. format-prefix-foreground = ${colors.foreground-alt}
  250. format-underline = #0a6cf5
  251. label = %date% %time%
  252. [module/pulseaudio]
  253. type = internal/pulseaudio
  254. format-volume = <label-volume> <bar-volume>
  255. label-volume = VOL %percentage%%
  256. label-volume-foreground = ${root.foreground}
  257. label-muted = 🔇 muted
  258. label-muted-foreground = #666
  259. bar-volume-width = 10
  260. bar-volume-foreground-0 = #55aa55
  261. bar-volume-foreground-1 = #55aa55
  262. bar-volume-foreground-2 = #55aa55
  263. bar-volume-foreground-3 = #55aa55
  264. bar-volume-foreground-4 = #55aa55
  265. bar-volume-foreground-5 = #f5a70a
  266. bar-volume-foreground-6 = #ff5555
  267. bar-volume-gradient = false
  268. bar-volume-indicator = |
  269. bar-volume-indicator-font = 2
  270. bar-volume-fill = ─
  271. bar-volume-fill-font = 2
  272. bar-volume-empty = ─
  273. bar-volume-empty-font = 2
  274. bar-volume-empty-foreground = ${colors.foreground-alt}
  275. [module/alsa]
  276. type = internal/alsa
  277. format-volume = <label-volume> <bar-volume>
  278. label-volume = VOL
  279. label-volume-foreground = ${root.foreground}
  280. format-muted-prefix = " "
  281. format-muted-foreground = ${colors.foreground-alt}
  282. label-muted = sound muted
  283. bar-volume-width = 10
  284. bar-volume-foreground-0 = #55aa55
  285. bar-volume-foreground-1 = #55aa55
  286. bar-volume-foreground-2 = #55aa55
  287. bar-volume-foreground-3 = #55aa55
  288. bar-volume-foreground-4 = #55aa55
  289. bar-volume-foreground-5 = #f5a70a
  290. bar-volume-foreground-6 = #ff5555
  291. bar-volume-gradient = false
  292. bar-volume-indicator = |
  293. bar-volume-indicator-font = 2
  294. bar-volume-fill = ─
  295. bar-volume-fill-font = 2
  296. bar-volume-empty = ─
  297. bar-volume-empty-font = 2
  298. bar-volume-empty-foreground = ${colors.foreground-alt}
  299. [module/battery]
  300. type = internal/battery
  301. battery = BAT0
  302. adapter = ADP1
  303. full-at = 98
  304. format-charging = <animation-charging> <label-charging>
  305. format-charging-underline = #ffb52a
  306. format-discharging = <animation-discharging> <label-discharging>
  307. format-discharging-underline = ${self.format-charging-underline}
  308. format-full-prefix = " "
  309. format-full-prefix-foreground = ${colors.foreground-alt}
  310. format-full-underline = ${self.format-charging-underline}
  311. ramp-capacity-0 = 
  312. ramp-capacity-1 = 
  313. ramp-capacity-2 = 
  314. ramp-capacity-foreground = ${colors.foreground-alt}
  315. animation-charging-0 = 
  316. animation-charging-1 = 
  317. animation-charging-2 = 
  318. animation-charging-foreground = ${colors.foreground-alt}
  319. animation-charging-framerate = 750
  320. animation-discharging-0 = 
  321. animation-discharging-1 = 
  322. animation-discharging-2 = 
  323. animation-discharging-foreground = ${colors.foreground-alt}
  324. animation-discharging-framerate = 750
  325. [module/temperature]
  326. type = internal/temperature
  327. thermal-zone = 0
  328. warn-temperature = 60
  329. format = <ramp> <label>
  330. format-underline = #f50a4d
  331. format-warn = <ramp> <label-warn>
  332. format-warn-underline = ${self.format-underline}
  333. label = %temperature-c%
  334. label-warn = %temperature-c%
  335. label-warn-foreground = ${colors.secondary}
  336. ramp-0 = 
  337. ramp-1 = 
  338. ramp-2 = 
  339. ramp-foreground = ${colors.foreground-alt}
  340. [module/powermenu]
  341. type = custom/menu
  342. expand-right = true
  343. format-spacing = 1
  344. label-open = 
  345. label-open-foreground = ${colors.secondary}
  346. label-close =  cancel
  347. label-close-foreground = ${colors.secondary}
  348. label-separator = |
  349. label-separator-foreground = ${colors.foreground-alt}
  350. menu-0-0 = reboot
  351. menu-0-0-exec = menu-open-1
  352. menu-0-1 = power off
  353. menu-0-1-exec = menu-open-2
  354. menu-1-0 = cancel
  355. menu-1-0-exec = menu-open-0
  356. menu-1-1 = reboot
  357. menu-1-1-exec = sudo reboot
  358. menu-2-0 = power off
  359. menu-2-0-exec = sudo poweroff
  360. menu-2-1 = cancel
  361. menu-2-1-exec = menu-open-0
  362. ;================================
  363. ; POLYWiN --------
  364. ;================================
  365. [module/polywins]
  366. type = custom/script
  367. exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null
  368. format = <label>
  369. label = %output%
  370. label-padding = 1
  371. tail = true
  372. [settings]
  373. screenchange-reload = true
  374. ;compositing-background = xor
  375. compositing-background = screen
  376. ;compositing-background = source
  377. ;compositing-foreground = source
  378. ;compositing-border = over
  379. compositing-underline = over
  380. pseudo-transparency = false
  381. [global/wm]
  382. margin-top = 5
  383. margin-bottom = 5
  384. ; vim:ft=dosini