config.ini 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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 = #1d1f21
  20. background-alt = #282a2e
  21. foreground = #c5c8c6
  22. primary = #5f819d
  23. secondary = #8ABEB7
  24. alert = #A54242
  25. disabled = #373b41
  26. [bar/example]
  27. width = 100%
  28. height = 24px
  29. radius = 0
  30. dpi = 96
  31. background = ${colors.background}
  32. foreground = ${colors.foreground}
  33. line-size = 2pt
  34. border-size = 0pt
  35. ; border-size = 4pt
  36. ; border-color = #00000000
  37. border-color = ${colors.background}
  38. padding-left = 0
  39. padding-right = 1
  40. module-margin = 1
  41. separator = |
  42. separator-foreground = ${colors.disabled}
  43. ; font-0 = monospace;1
  44. ; font-0 = "Terminus:size=16;2"
  45. font-1 = "Terminess Nerd Font Mono:size=11"
  46. font-0 = "Symbols Nerd Font Mono:size=10"
  47. ; wlan eth
  48. modules-left = xworkspaces xwindow
  49. modules-center = cmus mpd
  50. modules-right = filesystem memory temperature cpu battery pulseaudio xkeyboard date systray
  51. cursor-click = pointer
  52. cursor-scroll = ns-resize
  53. enable-ipc = true
  54. ; wm-restack = generic
  55. wm-restack = bspwm
  56. ; wm-restack = i3
  57. ; override-redirect = true
  58. ; This module is not active by default (to enable it, add it to one of the
  59. ; modules-* list above).
  60. ; Please note that only a single tray can exist at any time. If you launch
  61. ; multiple bars with this module, only a single one will show it, the others
  62. ; will produce a warning. Which bar gets the module is timing dependent and can
  63. ; be quite random.
  64. ; For more information, see the documentation page for this module:
  65. ; https://polybar.readthedocs.io/en/stable/user/modules/tray.html
  66. [module/systray]
  67. type = internal/tray
  68. format-margin = 8pt
  69. tray-spacing = 8pt
  70. [module/xworkspaces]
  71. type = internal/xworkspaces
  72. label-active = %name%
  73. label-active-background = ${colors.background-alt}
  74. label-active-underline= ${colors.primary}
  75. label-active-padding = 1
  76. label-occupied = %name%
  77. label-occupied-padding = 1
  78. label-urgent = %name%
  79. label-urgent-background = ${colors.alert}
  80. label-urgent-padding = 1
  81. label-empty = %name%
  82. label-empty-foreground = ${colors.disabled}
  83. label-empty-padding = 1
  84. [module/xwindow]
  85. type = internal/xwindow
  86. label = %title:0:30:...%
  87. [module/filesystem]
  88. type = internal/fs
  89. format-prefix = "FS "
  90. interval = 25
  91. mount-0 = /
  92. label-mounted =  %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
  93. label-unmounted = %mountpoint% not mounted
  94. label-unmounted-foreground = ${colors.disabled}
  95. [module/pulseaudio]
  96. type = internal/pulseaudio
  97. format-volume-prefix = "󰕾 "
  98. format-volume-prefix-foreground = ${colors.primary}
  99. format-volume = <label-volume>
  100. label-volume = %percentage%%
  101. label-muted = 
  102. label-muted-foreground = ${colors.disabled}
  103. [module/xkeyboard]
  104. type = internal/xkeyboard
  105. blacklist-0 = num lock
  106. label-layout = %layout%
  107. label-layout-foreground = ${colors.primary}
  108. label-indicator-padding = 2
  109. label-indicator-margin = 1
  110. label-indicator-foreground = ${colors.background}
  111. label-indicator-background = ${colors.secondary}
  112. [module/memory]
  113. type = internal/memory
  114. interval = 2
  115. format-prefix = " "
  116. format-prefix-foreground = ${colors.primary}
  117. label = %percentage_used:2%%
  118. [module/cpu]
  119. type = internal/cpu
  120. interval = 2
  121. format-prefix = ""
  122. format-prefix-foreground = ${colors.primary}
  123. label = %percentage:2%%
  124. [network-base]
  125. type = internal/network
  126. interval = 5
  127. format-connected = <label-connected>
  128. format-disconnected = <label-disconnected>
  129. label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
  130. [module/wlan]
  131. inherit = network-base
  132. interface-type = wireless
  133. label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
  134. [module/eth]
  135. inherit = network-base
  136. interface-type = wired
  137. label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
  138. [module/date]
  139. type = internal/date
  140. interval = 1
  141. date = 󰔠 %a, %b %d %T
  142. ; date = %H:%M
  143. ; date-alt = %Y-%m-%d %H:%M:%S
  144. label = %date%
  145. ; label-foreground = ${colors.primary}
  146. [settings]
  147. screenchange-reload = true
  148. pseudo-transparency = true
  149. ; vim:ft=dosini
  150. [module/battery]
  151. type = internal/battery
  152. ; This is useful in case the battery never reports 100% charge
  153. ; Default: 100
  154. full-at = 99
  155. ; format-low once this charge percentage is reached
  156. ; Default: 10
  157. ; New in version 3.6.0
  158. low-at = 5
  159. ; Use the following command to list batteries and adapters:
  160. ; $ ls -1 /sys/class/power_supply/
  161. battery = BAT0
  162. adapter = ADP1
  163. ; If an inotify event haven't been reported in this many
  164. ; seconds, manually poll for new values.
  165. ;
  166. ; Needed as a fallback for systems that don't report events
  167. ; on sysfs/procfs.
  168. ;
  169. ; Disable polling by setting the interval to 0.
  170. ;
  171. ; Default: 5
  172. poll-interval = 5
  173. ; see "man date" for details on how to format the time string
  174. ; NOTE: if you want to use syntax tags here you need to use %%{...}
  175. ; Default: %H:%M:%S
  176. time-format = %H:%M
  177. ; Available tags:
  178. ; <label-charging> (default)
  179. ; <bar-capacity>
  180. ; <ramp-capacity>
  181. ; <animation-charging>
  182. format-charging = <animation-charging> <label-charging>
  183. ; Available tags:
  184. ; <label-discharging> (default)
  185. ; <bar-capacity>
  186. ; <ramp-capacity>
  187. ; <animation-discharging>
  188. format-discharging = <ramp-capacity> <label-discharging>
  189. ; Available tags:
  190. ; <label-full> (default)
  191. ; <bar-capacity>
  192. ; <ramp-capacity>
  193. ;format-full = <ramp-capacity> <label-full>
  194. ; Format used when battery level drops to low-at
  195. ; If not defined, format-discharging is used instead.
  196. ; Available tags:
  197. ; <label-low>
  198. ; <animation-low>
  199. ; <bar-capacity>
  200. ; <ramp-capacity>
  201. ; New in version 3.6.0
  202. ;format-low = <label-low> <animation-low>
  203. ; Available tokens:
  204. ; %percentage% (default) - is set to 100 if full-at is reached
  205. ; %percentage_raw%
  206. ; %time%
  207. ; %consumption% (shows current charge rate in watts)
  208. label-charging = Charging %percentage%%
  209. ; Available tokens:
  210. ; %percentage% (default) - is set to 100 if full-at is reached
  211. ; %percentage_raw%
  212. ; %time%
  213. ; %consumption% (shows current discharge rate in watts)
  214. label-discharging = Discharging %percentage%%
  215. ; Available tokens:
  216. ; %percentage% (default) - is set to 100 if full-at is reached
  217. ; %percentage_raw%
  218. label-full = 󰂄
  219. ; Available tokens:
  220. ; %percentage% (default) - is set to 100 if full-at is reached
  221. ; %percentage_raw%
  222. ; %time%
  223. ; %consumption% (shows current discharge rate in watts)
  224. ; New in version 3.6.0
  225. label-low = BATTERY LOW
  226. ; Only applies if <ramp-capacity> is used
  227. ramp-capacity-0 = 
  228. ramp-capacity-1 = 
  229. ramp-capacity-2 = 
  230. ramp-capacity-3 = 
  231. ramp-capacity-4 = 
  232. ; Only applies if <bar-capacity> is used
  233. bar-capacity-width = 10
  234. ; Only applies if <animation-charging> is used
  235. animation-charging-0 = 
  236. animation-charging-1 = 
  237. animation-charging-2 = 
  238. animation-charging-3 = 
  239. animation-charging-4 = 
  240. ; Framerate in milliseconds
  241. animation-charging-framerate = 750
  242. ; Only applies if <animation-discharging> is used
  243. animation-discharging-0 = 
  244. animation-discharging-1 = 
  245. animation-discharging-2 = 
  246. animation-discharging-3 = 
  247. animation-discharging-4 = 
  248. ; Framerate in milliseconds
  249. animation-discharging-framerate = 500
  250. ; Only applies if <animation-low> is used
  251. ; New in version 3.6.0
  252. animation-low-0 = !
  253. animation-low-1 =
  254. animation-low-framerate = 200
  255. [module/temperature]
  256. type = internal/temperature
  257. ; Seconds to sleep between updates
  258. ; Default: 1
  259. interval = 0.5
  260. ; Thermal zone to use
  261. ; To list all the zone types, run
  262. ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
  263. ; Default: 0
  264. thermal-zone = 0
  265. ; Select thermal zone by name
  266. ; The name has to match the contents of /sys/class/thermal/thermal_zone*/type
  267. ; for the desired thermal zone.
  268. ; New in version 3.7.0
  269. ; Default: ""
  270. zone-type = x86_pkg_temp
  271. ; Full path of temperature sysfs path
  272. ; Use `sensors` to find preferred temperature source, then run
  273. ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
  274. ; to find path to desired file
  275. ; Default reverts to thermal zone setting
  276. hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
  277. ; Base temperature for where to start the ramp (in degrees celsius)
  278. ; Default: 0
  279. base-temperature = 20
  280. ; Threshold temperature to display warning label (in degrees celsius)
  281. ; Default: 80
  282. warn-temperature = 60
  283. ; Whether or not to show units next to the temperature tokens (°C, °F)
  284. ; Default: true
  285. units = false
  286. ; Available tags:
  287. ; <label> (default)
  288. ; <ramp>
  289. format = <ramp> <label>
  290. ; Available tags:
  291. ; <label-warn> (default)
  292. ; <ramp>
  293. format-warn = <ramp> <label-warn>
  294. ; Available tokens:
  295. ; %temperature% (deprecated)
  296. ; %temperature-c% (default, temperature in °C)
  297. ; %temperature-f% (temperature in °F)
  298. ; %temperature-k% (temperature in Kelvin, new in version 3.7.0)
  299. label =  %temperature-c%
  300. ; Available tokens:
  301. ; %temperature% (deprecated)
  302. ; %temperature-c% (default, temperature in °C)
  303. ; %temperature-f% (temperature in °F)
  304. ; %temperature-k% (temperature in Kelvin, new in version 3.7.0)
  305. label-warn =  %temperature-c%
  306. label-warn-foreground = #f00
  307. ; Requires the <ramp> tag
  308. ; The icon selection will range from `base-temperature` to `warn-temperature`,
  309. ; temperatures at and above `warn-temperature` will use the last icon
  310. ; and temperatures at and below `base-temperature` will use `ramp-0`.
  311. ; All other icons are distributed evenly between the two temperatures.
  312. ramp-0 = A
  313. ramp-1 = B
  314. ramp-2 = C
  315. ramp-foreground = #55
  316. [module/cmus]
  317. type = custom/script
  318. exec = ~/.config/polybar/script/cmus.sh
  319. exec-if = pgrep -x cmus
  320. interval = 1
  321. click-left = cmus-remote --next
  322. click-right = cmus-remote --prev
  323. click-middle = cmus-remote --pause
  324. scroll-up = cmus-remote --volume +5%
  325. scroll-down = cmus-remote --volume -5%
  326. label-font = 3
  327. format = <label>
  328. format-underline = ${colors.foreground-alt}
  329. label =  %output%
  330. label-maxlen = 60
  331. [module/mpd]
  332. type = internal/mpd
  333. ; Host where mpd is running (either ip or domain name)
  334. ; Can also be the full path to a unix socket where mpd is running.
  335. host = 127.0.0.1
  336. port = 44629
  337. ; password = mysecretpassword
  338. ; Seconds to sleep between progressbar/song timer sync
  339. ; Default: 1
  340. interval = 2
  341. ; Available tags:
  342. ; <label-song> (default)
  343. ; <label-time>
  344. ; <bar-progress>
  345. ; <toggle> - gets replaced with <icon-(pause|play)>
  346. ; <toggle-stop> - gets replaced with <icon-(stop|play)>
  347. ; <icon-random>
  348. ; <icon-repeat>
  349. ; <icon-repeatone> (deprecated)
  350. ; <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone>
  351. ; <icon-consume>
  352. ; <icon-prev>
  353. ; <icon-stop>
  354. ; <icon-play>
  355. ; <icon-pause>
  356. ; <icon-next>
  357. ; <icon-seekb>
  358. ; <icon-seekf>
  359. format-online = <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next> <icon-repeat> <icon-random> <bar-progress> <label-time> <label-song>
  360. ;format-playing = ${self.format-online}
  361. ;format-paused = ${self.format-online}
  362. ;format-stopped = ${self.format-online}
  363. ; Available tags:
  364. ; <label-offline>
  365. ; Default: ""
  366. ;format-offline = <label-offline>
  367. ; Available tokens:
  368. ; %artist%
  369. ; %album-artist%
  370. ; %album%
  371. ; %date%
  372. ; %title%
  373. ; Default: %artist% - %title%
  374. label-song = 𝄞 %artist% - %title%
  375. ; Available tokens:
  376. ; %elapsed%
  377. ; %total%
  378. ; Default: %elapsed% / %total%
  379. ;label-time = %elapsed% / %total%
  380. ; Available tokens:
  381. ; None
  382. label-offline = 🎜 mpd is offline
  383. ; Only applies if <icon-X> is used
  384. icon-play = ⏵
  385. icon-pause = ⏸
  386. icon-stop = ⏹
  387. icon-prev = ⏮
  388. icon-next = ⏭
  389. icon-seekb = ⏪
  390. icon-seekf = ⏩
  391. icon-random = 🔀
  392. icon-repeat = 🔁
  393. icon-repeatone = 🔂
  394. icon-single = 🔂
  395. icon-consume = ✀
  396. ; Used to display the state of random/repeat/repeatone/single
  397. ; Only applies if <icon-[random|repeat|repeatone|single]> is used
  398. toggle-on-foreground = #ff
  399. toggle-off-foreground = #55
  400. ; Only applies if <bar-progress> is used
  401. bar-progress-width = 45
  402. bar-progress-indicator = |
  403. bar-progress-fill = ─
  404. bar-progress-empty = ─