Advertisement
Guest User

.config/polybar/config.ini

a guest
Mar 20th, 2024
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.04 KB | None | 0 0
  1. [colors]
  2. background = #121212
  3. background-alt = #262626
  4. foreground = #ffffff
  5. primary = #c9c5c5
  6. secondary = #8ABEB7
  7. alert = #A54242
  8. disabled = #707880
  9.  
  10. [bar/mybar]
  11. width = 100%
  12. height = 15pt
  13. radius = 0
  14. ;dpi = 96
  15.  
  16. ;bottom = true
  17. background = ${colors.background}
  18. foreground = ${colors.foreground}
  19. line-size = 0pt
  20. border-size = 0pt
  21. border-color = #00000000
  22. padding-left = 0
  23. padding-right = 1
  24. module-margin = 1
  25. separator = |
  26. separator-foreground = ${colors.disabled}
  27.  
  28. font-0 = "Iosevka Nerd Font:pixelsize=10;4"
  29.  
  30. modules-left = xworkspaces
  31. modules-center =
  32. modules-right = keyboard pulseaudio network battery date
  33.  
  34. cursor-click = pointer
  35. ;cursor-scroll = ns-resize
  36. enable-ipc = true
  37. ; tray-position = right
  38. ; wm-restack = generic
  39. ; wm-restack = bspwm
  40. ; wm-restack = i3
  41. ; override-redirect = true
  42.  
  43. [module/xworkspaces]
  44. type = internal/xworkspaces
  45. label-active = %name%
  46. label-active-background = ${colors.background-alt}
  47. label-active-underline = ${colors.primary}
  48. label-active-padding = 1
  49. label-occupied = %name%
  50. label-occupied-padding = 1
  51. label-urgent = %name%
  52. label-urgent-background = ${colors.alert}
  53. label-urgent-padding = 1
  54. label-empty = %name%
  55. label-empty-foreground = ${colors.disabled}
  56. label-empty-padding = 1
  57.  
  58. [module/xwindow]
  59. type = internal/xwindow
  60. label = %title:0:60:...%
  61.  
  62. [module/filesystem]
  63. type = internal/fs
  64. interval = 25
  65. mount-0 = /
  66. label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
  67. label-unmounted = %mountpoint% not mounted
  68. label-unmounted-foreground = ${colors.disabled}
  69.  
  70. ; This module is from colorblocks/modules.ini.
  71. [module/pulseaudio]
  72. type = internal/pulseaudio
  73.  
  74. ; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
  75. ; If not, uses default sink
  76. sink = alsa_output.pci-0000_03_00.6.analog-stereo
  77.  
  78. ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
  79. ; Default: true
  80. ;use-ui-max = false
  81.  
  82. ; Interval for volume increase/decrease (in percent points)
  83. ; Default: 5
  84. interval = 5
  85.  
  86. ; Available tags:
  87. ; <label-volume> (default)
  88. ; <ramp-volume>
  89. ; <bar-volume>
  90. format-volume = <ramp-volume> <label-volume>
  91. format-volume-background = ${color.shade4}
  92. format-volume-padding = 0
  93.  
  94. ; Available tags:
  95. ; <label-muted> (default)
  96. ; <ramp-volume>
  97. ; <bar-volume>
  98. format-muted = <label-muted>
  99. format-muted-prefix = 
  100. format-muted-prefix-font = 2
  101. format-muted-background = ${color.shade4}
  102. format-muted-padding = 0
  103.  
  104. ; Available tokens:
  105. ; %percentage% (default)
  106. label-volume = %percentage%%
  107.  
  108. ; Available tokens:
  109. ; %percentage% (default
  110. label-muted = " Muted"
  111. label-muted-foreground = ${color.foreground}
  112.  
  113. ; Only applies if <ramp-volume> is used
  114. ramp-volume-0 = 
  115. ramp-volume-1 = 
  116. ramp-volume-2 = 
  117. ramp-volume-font = 2
  118.  
  119. ; This module is from colorblocks/modules.ini.
  120. [module/keyboard]
  121. type = internal/xkeyboard
  122.  
  123. ; List of indicators to ignore
  124. blacklist-0 = num lock
  125. blacklist-1 = scroll lock
  126.  
  127. ; Available tags:
  128. ; <label-layout> (default)
  129. ; <label-indicator> (default)
  130. format = <label-layout> <label-indicator>
  131. ;format-prefix = 
  132. format-prefix =
  133. format-prefix-font = 2
  134. format-background = ${color.shade5}
  135. format-padding = 0
  136.  
  137. ; Available tokens:
  138. ; %layout%
  139. ; %name%
  140. ; %number%
  141. ; Default: %layout%
  142. label-layout = " %layout%"
  143.  
  144. ; Available tokens:
  145. ; %name%
  146. ; Default: %name%
  147. label-indicator-on = %name%
  148. label-indicator-on-foreground = ${color.foreground}
  149.  
  150. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  151.  
  152. [module/memory]
  153. type = internal/memory
  154. interval = 2
  155. format-prefix = "RAM "
  156. format-prefix-foreground = ${colors.primary}
  157. label = %percentage_used:2%%
  158.  
  159. [module/cpu]
  160. type = internal/cpu
  161. interval = 2
  162. format-prefix = "CPU "
  163. format-prefix-foreground = ${colors.primary}
  164. label = %percentage:2%%
  165.  
  166. [network-base]
  167. type = internal/network
  168. interval = 5
  169. format-connected = <label-connected>
  170. format-disconnected = <label-disconnected>
  171. label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
  172.  
  173. [module/wlan]
  174. inherit = network-base
  175. interface-type = wireless
  176. interval = 1
  177. ;label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
  178. label-connected = %essid%
  179. label-disconnected = %{F#707880}disconnected
  180.  
  181. ;[module/eth]
  182. ;inherit = network-base
  183. ;interface-type = wired
  184. ;label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
  185.  
  186. [module/date]
  187. type = internal/date
  188. interval = 1
  189. date = %H:%M
  190. date-alt = %d-%m-%Y %H:%M:%S
  191. label = %date%
  192. label-foreground = ${colors.foreground}
  193.  
  194. [settings]
  195. screenchange-reload = true
  196. pseudo-transparency = true
  197.  
  198. ; vim:ft=dosini
  199.  
  200. ; This module is from colorblocks/modules.ini.
  201. [module/battery]
  202. type = internal/battery
  203.  
  204. ; This is useful in case the battery never reports 100% charge
  205. full-at = 95
  206.  
  207. ; Use the following command to list batteries and adapters:
  208. ; $ ls -1 /sys/class/power_supply/
  209. battery = BAT0
  210. adapter = ACAD
  211.  
  212. ; If an inotify event haven't been reported in this many
  213. ; seconds, manually poll for new values.
  214. ;
  215. ; Needed as a fallback for systems that don't report events
  216. ; on sysfs/procfs.
  217. ;
  218. ; Disable polling by setting the interval to 0.
  219. ;
  220. ; Default: 5
  221. poll-interval = 2
  222.  
  223. ; see "man date" for details on how to format the time string
  224. ; NOTE: if you want to use syntax tags here you need to use %%{...}
  225. ; Default: %H:%M:%S
  226. time-format = %H:%M
  227.  
  228. ; Available tags:
  229. ; <label-charging> (default)
  230. ; <bar-capacity>
  231. ; <ramp-capacity>
  232. ; <animation-charging>
  233. format-charging = <animation-charging> <label-charging>
  234. format-charging-background = ${color.shade5}
  235. format-charging-padding = 0
  236.  
  237. ; Available tags:
  238. ; <label-discharging> (default)
  239. ; <bar-capacity>
  240. ; <ramp-capacity>
  241. ; <animation-discharging>
  242. format-discharging = <ramp-capacity> <label-discharging>
  243. format-discharging-background = ${color.shade5}
  244. format-discharging-padding = 0
  245.  
  246. ; Available tags:
  247. ; <label-full> (default)
  248. ; <bar-capacity>
  249. ; <ramp-capacity>
  250. format-full = <ramp-capacity>
  251. ;format-full-prefix = 
  252. format-full-prefix =
  253. format-full-prefix-font = 2
  254. format-full-background = ${color.shade5}
  255. format-full-padding = 0
  256.  
  257. ; Available tokens:
  258. ; %percentage% (default)
  259. ; %time%
  260. ; %consumption% (shows current charge rate in watts)
  261. label-charging = %percentage%%
  262.  
  263. ; Available tokens:
  264. ; %percentage% (default)
  265. ; %time%
  266. ; %consumption% (shows current discharge rate in watts)
  267. label-discharging = %percentage%%
  268.  
  269. ; Available tokens:
  270. ; %percentage% (default)
  271. label-full = " Full"
  272.  
  273. ; Only applies if <ramp-capacity> is used
  274. ramp-capacity-0 = 
  275. ramp-capacity-1 = 
  276. ramp-capacity-2 = 
  277. ramp-capacity-3 = 
  278. ramp-capacity-4 = 
  279. ramp-capacity-font = 2
  280.  
  281. ; Only applies if <bar-capacity> is used
  282. ;bar-capacity-width = 10
  283.  
  284. ; Only applies if <animation-charging> is used
  285. animation-charging-0 = 
  286. animation-charging-1 = 
  287. animation-charging-2 = 
  288. animation-charging-3 = 
  289. animation-charging-4 = 
  290. animation-charging-font = 2
  291.  
  292. ; Framerate in milliseconds
  293. animation-charging-framerate = 750
  294.  
  295. ; Only applies if <animation-discharging> is used
  296. ;;animation-discharging-0 = ${battery.anim0}
  297. ;;animation-discharging-1 = ${battery.anim1}
  298.  
  299. ; Framerate in milliseconds
  300. ;animation-discharging-framerate = 500
  301.  
  302. ; This module is from colorblocks/modules.ini.
  303. ; Normal Module
  304. [module/network]
  305. type = internal/network
  306. ;interface = wlan0
  307. interface = wlp3s0
  308.  
  309. ; Seconds to sleep between updates
  310. ; Default: 1
  311. interval = 1.0
  312.  
  313. ; Test connectivity every Nth update
  314. ; A value of 0 disables the feature
  315. ; NOTE: Experimental (needs more testing)
  316. ; Default: 0
  317. ;ping-interval = 3
  318.  
  319. ; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%)
  320. ; Minimum output width of upload/download rate
  321. ; Default: 3
  322. ;;udspeed-minwidth = 5
  323.  
  324. ; Accumulate values from all interfaces
  325. ; when querying for up/downspeed rate
  326. ; Default: false
  327. accumulate-stats = true
  328.  
  329. ; Consider an `UNKNOWN` interface state as up.
  330. ; Some devices have an unknown state, even when they're running
  331. ; Default: false
  332. unknown-as-up = true
  333.  
  334. ; Available tags:
  335. ; <label-connected> (default)
  336. ; <ramp-signal>
  337. format-connected = <label-connected>
  338. format-connected-prefix = 直
  339. format-connected-prefix-font = 2
  340. format-connected-background = ${color.shade4}
  341. format-connected-padding = 0
  342.  
  343. ; Available tags:
  344. ; <label-disconnected> (default)
  345. format-disconnected = <label-disconnected>
  346. format-disconnected-prefix = 睊
  347. format-disconnected-prefix-font = 2
  348. format-disconnected-background = ${color.shade4}
  349. format-disconnected-padding = 0
  350.  
  351. ; Available tags:
  352. ; <label-connected> (default)
  353. ; <label-packetloss>
  354. ; <animation-packetloss>
  355. ;;format-packetloss = <animation-packetloss> <label-connected>
  356.  
  357. ; Available tokens:
  358. ; %ifname% [wireless+wired]
  359. ; %local_ip% [wireless+wired]
  360. ; %local_ip6% [wireless+wired]
  361. ; %essid% [wireless]
  362. ; %signal% [wireless]
  363. ; %upspeed% [wireless+wired]
  364. ; %downspeed% [wireless+wired]
  365. ; %linkspeed% [wired]
  366. ; Default: %ifname% %local_ip%
  367. ;label-connected = "%{A1:networkmanager_dmenu &:} %essid%%{A}"
  368. ;label-connected = "%{A1:networkmanager_dmenu &:} Connected"
  369. label-connected = "%{A1:networkmanager_dmenu &:}"
  370.  
  371. ; Available tokens:
  372. ; %ifname% [wireless+wired]
  373. ; Default: (none)
  374. label-disconnected = "%{A1:networkmanager_dmenu &:} Offline%{A}"
  375. ;;label-disconnected-foreground = #66ffffff
  376.  
  377. ; Available tokens:
  378. ; %ifname% [wireless+wired]
  379. ; %local_ip% [wireless+wired]
  380. ; %local_ip6% [wireless+wired]
  381. ; %essid% [wireless]
  382. ; %signal% [wireless]
  383. ; %upspeed% [wireless+wired]
  384. ; %downspeed% [wireless+wired]
  385. ; %linkspeed% [wired]
  386. ; Default: (none)
  387. ;label-packetloss = %essid%
  388. ;label-packetloss-foreground = #eefafafa
  389.  
  390. ; Only applies if <ramp-signal> is used
  391. ramp-signal-0 = 直
  392. ramp-signal-1 = 直
  393. ramp-signal-2 = 直
  394.  
  395. ; Only applies if <animation-packetloss> is used
  396. ;;animation-packetloss-0 = ⚠
  397. ;;animation-packetloss-0-foreground = #ffa64c
  398. ;;animation-packetloss-1 = ⚠
  399. ;;animation-packetloss-1-foreground = #000000
  400. ; Framerate in milliseconds
  401. ;;animation-packetloss-framerate = 500
  402.  
  403. ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  404.  
  405.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement