~/.config/polybar/config

Format
Plain text
Post date
2023-02-07 20:21
Période de publication
Illimité
  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 = #331E1E1E
  21. background-alt = #bf1e1e1e
  22. ;foreground = ${xrdb:color7:#222}
  23. foreground = #ffffff
  24. foreground-alt = #ffffff
  25. primary = #1b9fc6
  26. secondary = #ffffff
  27. alert = #bd2c40
  28. [bar/example]
  29. ;monitor = ${env:MONITOR:HDMI-1}
  30. width = 100%
  31. height = 15
  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 = 1
  39. line-color = #00564d
  40. border-size = 0
  41. border-color = #0D00564d
  42. padding-left = 0
  43. padding-right = 1
  44. module-margin-left = 1
  45. module-margin-right = 1
  46. font-0 = Droid Sans Mono:style=Regular:pixelsize=10;2
  47. # font-1 = Font Awesome 5 Brands Regular:style=Regular:pixelsize=12;2
  48. font-1 = unifont:fontformat=truetype:size=14:antialias=false;2
  49. font-2 = siji:style=Regular:pixelsize=24;2
  50. font-3 = Font Awesome 5 Free:pixelsize=12;2
  51. font-4 = Font Awesome 5 Free Solid:pixelsize=12;2
  52. font-5 = Font Awesome 5 Brands:pixelsize=12;2
  53. modules-left = bspwm i3
  54. modules-center = xwindow
  55. ;modules-center = pacman-updates
  56. modules-right =filesystem pulseaudio memory cpu wlan eth battery date powermenu
  57. separator = |
  58. tray-position = none
  59. tray-padding = 2
  60. ;tray-background = #0063ff
  61. ;wm-restack = bspwm
  62. ;wm-restack = i3
  63. ;override-redirect = true
  64. ;scroll-up = bspwm-desknext
  65. ;scroll-down = bspwm-deskprev
  66. ;scroll-up = i3wm-wsnext
  67. ;scroll-down = i3wm-wsprev
  68. cursor-click = pointer
  69. eursor-scroll = ns-resize
  70. [module/pacman-updates]
  71. type = custom/script
  72. exec = checkupdates | wc -l
  73. interval = 1000
  74. label = Updates: %output%
  75. format-foreground = ${colors.foreground}
  76. format-background = ${colors.background}
  77. format-prefix = " "
  78. format-prefix-foreground = #ffbb00
  79. # format-prefix-background = #ffbb00
  80. [module/xwindow]
  81. type = internal/xwindow
  82. label = %title:0:30:...%
  83. format = <label>
  84. [module/spotify]
  85. type = custom/script
  86. interval = 1
  87. format-prefix = " "
  88. format = <label>
  89. exec = python /home/ermanno/.config/scripts/spotify_status.py -f '{artist}: {song}'
  90. format-underline = #1db954
  91. [module/xkeyboard]
  92. type = internal/xkeyboard
  93. blacklist-0 = num lock
  94. format-prefix = " "
  95. format-prefix-foreground = ${colors.foreground-alt}
  96. format-prefix-underline = ${colors.secondary}
  97. label-layout = %layout%
  98. label-layout-underline = ${colors.secondary}
  99. label-indicator-padding = 2
  100. label-indicator-margin = 1
  101. label-indicator-background = ${colors.secondary}
  102. label-indicator-underline = ${colors.secondary}
  103. [module/filesystem]
  104. type = internal/fs
  105. interval = 25
  106. mount-0 = /
  107. label-mounted =  %free%
  108. label-unmounted = %mountpoint% not mounted
  109. label-unmounted-foreground = ${colors.foreground-alt}
  110. [module/bspwm]
  111. type = internal/bspwm
  112. label-focused = %index%
  113. label-focused-background = ${colors.background-alt}
  114. label-focused-underline= ${colors.primary}
  115. label-focused-padding = 2
  116. label-occupied = %index%
  117. label-occupied-padding = 2
  118. label-urgent = %index%!
  119. label-urgent-background = ${colors.alert}
  120. label-urgent-padding = 2
  121. label-empty = %index%
  122. label-empty-foreground = ${colors.foreground-alt}
  123. label-empty-padding = 2
  124. ; Separator in between workspaces
  125. label-separator = |
  126. [module/i3]
  127. type = internal/i3
  128. format = <label-state> <label-mode>
  129. index-sort = true
  130. wrapping-scroll = false
  131. ; Only show workspaces on the same output as the bar
  132. ; pin-workspaces = true
  133. ws-icon-0 = 1;
  134. ws-icon-1 = 2;
  135. ws-icon-2 = 3;
  136. # ws-icon-3 = 4;♝
  137. # ws-icon-4 = 5;♞
  138. # ws-icon-default = 
  139. label-mode-padding = 2
  140. label-mode-foreground = #000
  141. label-mode-background = ${colors.primary}
  142. ; focused = Active workspace on focused monitor
  143. label-focused =%icon%
  144. label-focused-background = ${colors.background-alt}
  145. label-focused-underline= ${colors.primary}
  146. label-focused-padding = 1
  147. ; unfocused = Inactive workspace on any monitor
  148. label-unfocused = %icon%
  149. label-unfocused-padding = 1
  150. ; visible = Active workspace on unfocused monitor
  151. label-visible = %icon%
  152. label-visible-background = ${self.label-focused-background}
  153. label-visible-underline = ${self.label-focused-underline}
  154. label-visible-padding = ${self.label-focused-padding}
  155. ; urgent = Workspace with urgency hint set
  156. label-urgent = %icon%
  157. label-urgent-background = ${colors.alert}
  158. label-urgent-padding = 1
  159. ; Separator in between workspaces
  160. ; label-separator = |
  161. [module/mpd]
  162. type = internal/mpd
  163. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  164. icon-prev = 
  165. icon-stop = 
  166. icon-play = 
  167. icon-pause = 
  168. icon-next = 
  169. label-song-maxlen = 18
  170. label-song-ellipsis = true
  171. [module/xbacklight]
  172. type = internal/xbacklight
  173. format = <label> <bar>
  174. label = BL
  175. bar-width = 10
  176. bar-indicator = |
  177. bar-indicator-foreground = #fff
  178. bar-indicator-font = 2
  179. bar-fill = ─
  180. bar-fill-font = 2
  181. bar-fill-foreground = #9f78e1
  182. bar-empty = ─
  183. bar-empty-font = 2
  184. bar-empty-foreground = ${colors.foreground-alt}
  185. [module/backlight-acpi]
  186. inherit = module/xbacklight
  187. type = internal/backlight
  188. card = intel_backlight
  189. [module/cpu]
  190. type = internal/cpu
  191. interval = 2
  192. format-prefix = " "
  193. format-prefix-foreground = ${colors.foreground-alt}
  194. format-underline = #f90000
  195. label = %percentage:2%%
  196. [module/memory]
  197. type = internal/memory
  198. interval = 2
  199. format-prefix = " "
  200. format-prefix-foreground = ${colors.foreground-alt}
  201. format-underline = #4bffdc
  202. label = %percentage_used%%
  203. [module/wlan]
  204. type = internal/network
  205. interface = net1
  206. interval = 3.0
  207. format-connected = <ramp-signal> <label-connected>
  208. format-connected-underline = #9f78e1
  209. label-connected = %essid%
  210. format-disconnected =
  211. ;format-disconnected = <label-disconnected>
  212. ;format-disconnected-underline = ${self.format-connected-underline}
  213. ;label-disconnected = %ifname% disconnected
  214. ;label-disconnected-foreground = ${colors.foreground-alt}
  215. ramp-signal-0 = 
  216. ramp-signal-1 = 
  217. ramp-signal-2 = 
  218. ramp-signal-3 = 
  219. ramp-signal-4 = 
  220. ramp-signal-foreground = ${colors.foreground-alt}
  221. [module/eth]
  222. type = internal/network
  223. interface = enp1s0
  224. interval = 3.0
  225. format-connected-underline = #55aa55
  226. format-connected-prefix = " "
  227. format-connected-prefix-foreground = ${colors.foreground-alt}
  228. label-connected = %local_ip%
  229. format-disconnected =
  230. ;format-disconnected = <label-disconnected>
  231. ;format-disconnected-underline = ${self.format-connected-underline}
  232. ;label-disconnected = %ifname% disconnected
  233. ;label-disconnected-foreground = ${colors.foreground-alt}
  234. [module/date]
  235. type = internal/date
  236. interval = 1
  237. date =
  238. date-alt = " %Y-%m-%d"
  239. time = %H:%M
  240. time-alt = %H:%M:%S
  241. format-prefix = 
  242. format-prefix-foreground = ${colors.foreground-alt}
  243. format-underline = #0a6cf5
  244. label = %date% %time%
  245. [module/pulseaudio]
  246. type = internal/pulseaudio
  247. format-volume = <label-volume> <bar-volume>
  248. label-volume =  %percentage%%
  249. label-volume-foreground = ${root.foreground}
  250. label-muted = ? muted
  251. label-muted-foreground = #666
  252. bar-volume-width = 7
  253. bar-volume-foreground-0 = #55aa55
  254. bar-volume-foreground-1 = #55aa55
  255. bar-volume-foreground-2 = #55aa55
  256. bar-volume-foreground-3 = #55aa55
  257. bar-volume-foreground-4 = #55aa55
  258. bar-volume-foreground-5 = #f5130a
  259. bar-volume-foreground-6 = #ff5555
  260. bar-volume-gradient = false
  261. bar-volume-indicator = |
  262. bar-volume-indicator-font = 2
  263. bar-volume-fill = ─
  264. bar-volume-fill-font = 2
  265. bar-volume-empty = ─
  266. bar-volume-empty-font = 2
  267. bar-volume-empty-foreground = ${colors.foreground-alt}
  268. [module/alsa]
  269. type = internal/alsa
  270. format-volume = <label-volume> <bar-volume>
  271. label-volume = VOL
  272. label-volume-foreground = ${root.foreground}
  273. format-muted-prefix = " "
  274. format-muted-foreground = ${colors.foreground-alt}
  275. label-muted = sound muted
  276. bar-volume-width = 7
  277. bar-volume-foreground-0 = #55aa55
  278. bar-volume-foreground-1 = #55aa55
  279. bar-volume-foreground-2 = #55aa55
  280. bar-volume-foreground-3 = #55aa55
  281. bar-volume-foreground-4 = #55aa55
  282. bar-volume-foreground-5 = #f5130a
  283. bar-volume-foreground-6 = #ff5555
  284. bar-volume-gradient = false
  285. bar-volume-indicator = |
  286. bar-volume-indicator-font = 2
  287. bar-volume-fill = ─
  288. bar-volume-fill-font = 2
  289. bar-volume-empty = ─
  290. bar-volume-empty-font = 2
  291. bar-volume-empty-foreground = ${colors.foreground-alt}
  292. [module/battery]
  293. type = internal/battery
  294. battery = BAT0
  295. adapter = ADP1
  296. full-at = 98
  297. format-charging = <animation-charging> <label-charging>
  298. format-charging-underline = #ffb52a
  299. format-discharging = <animation-discharging> <label-discharging>
  300. format-discharging-underline = ${self.format-charging-underline}
  301. format-full-prefix = " "
  302. format-full-prefix-foreground = ${colors.foreground-alt}
  303. format-full-underline = ${self.format-charging-underline}
  304. ramp-capacity-0 = 
  305. ramp-capacity-1 = 
  306. ramp-capacity-2 = 
  307. ramp-capacity-foreground = ${colors.foreground-alt}
  308. animation-charging-0 = 
  309. animation-charging-1 = 
  310. animation-charging-2 = 
  311. animation-charging-foreground = ${colors.foreground-alt}
  312. animation-charging-framerate = 750
  313. animation-discharging-0 = 
  314. animation-discharging-1 = 
  315. animation-discharging-2 = 
  316. animation-discharging-foreground = ${colors.foreground-alt}
  317. animation-discharging-framerate = 750
  318. [module/temperature]
  319. type = internal/temperature
  320. thermal-zone = 0
  321. warn-temperature = 60
  322. format = <ramp> <label>
  323. format-underline = #f50a4d
  324. format-warn = <ramp> <label-warn>
  325. format-warn-underline = ${self.format-underline}
  326. label = %temperature-c%
  327. label-warn = %temperature-c%
  328. label-warn-foreground = ${colors.secondary}
  329. ramp-0 = 
  330. ramp-1 = 
  331. ramp-2 = 
  332. ramp-foreground = ${colors.foreground-alt}
  333. [module/powermenu]
  334. type = custom/menu
  335. expand-right = true
  336. format-spacing = 1
  337. label-open = 
  338. label-open-foreground = ${colors.secondary}
  339. label-close =  cancel
  340. label-close-foreground = ${colors.secondary}
  341. label-separator = |
  342. label-separator-foreground = ${colors.foreground-alt}
  343. menu-0-0 = reboot
  344. menu-0-0-exec = systemctl reboot
  345. menu-0-1 = power off
  346. menu-0-1-exec = systemctl poweroff
  347. [settings]
  348. screenchange-reload = true
  349. ;compositing-background = xor
  350. ;compositing-background = screen
  351. ;compositing-foreground = source
  352. ;compositing-border = over
  353. ;pseudo-transparency = false
  354. [global/wm]
  355. margin-top = 1
  356. margin-bottom = 2
  357. ; vim:ft=dosini
  358. ; Put the bar at the bottom of the screen
  359. bottom = true
  360. #https://gitlab.com/eflinux/polybar/-/blob/master/.config
Télécharger Printable view

URL of this paste

Embed with JavaScript

Embed with iframe

Raw text