A collection of scripts and configurations for Bash (and others)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

425 lines
10KB

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