Advertisement
Guest User

polybar config

a guest
May 29th, 2023
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
INI file 5.40 KB | Source Code | 0 0
  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.  
  19.  
  20. [module/ewmh]
  21. type = internal/xworkspaces
  22. ; Only show workspaces defined on the same output as the bar
  23. ;
  24. ; Useful if you want to show monitor specific workspaces
  25. ; on different bars
  26. ;
  27. ; Default: false
  28. pin-workspaces = true
  29.  
  30. ; Create click handler used to focus desktop
  31. ; Default: true
  32. enable-click = false
  33.  
  34. ; Create scroll handlers used to cycle desktops
  35. ; Default: true
  36. enable-scroll = false
  37.  
  38. ; Reverse the scroll direction
  39. ; Default: false
  40. ; New in version 3.6.0
  41. reverse-scroll = true
  42.  
  43. icon-0 = code;♚
  44. icon-1 = office;♛
  45. icon-2 = graphics;♜
  46. icon-3 = mail;♝
  47. icon-4 = web;♞
  48. icon-default =
  49.  
  50. [colors]
  51. transparent = #00000000
  52. background = #282A2E
  53. background-alt = #373B41
  54. foreground = #C5C8C6
  55. primary = #F0C674
  56. secondary = #26a69a
  57. alert = #A54242
  58. disabled = #707880
  59.  
  60. [basebar/settings]
  61. ; required for ignoring bars in fullscreen
  62. override-redirect = true
  63. wm-restack = bspwm
  64. width = 100%
  65. height = 15pt
  66. radius = 8
  67. background = ${colors.background}
  68. foreground = ${colors.foreground}
  69. ; line-size = 30pt
  70. border-size = 2pt
  71. border-color = #00000000
  72. padding-left = 5pt
  73. padding-right = 5pt
  74. module-margin = 1
  75. separator = |
  76. separator-foreground = ${colors.disabled}
  77. font-0 = monospace;2
  78. font-1 = Symbols Nerd Font:style=Regular;2
  79. cursor-click = pointer
  80. cursor-scroll = ns-resize
  81. enable-ipc = true
  82. tray-position = right
  83. tray-maxsize = 16
  84.  
  85. [bar/time]
  86. inherit = basebar/settings
  87. width = 4%
  88. modules-center = date
  89.  
  90. [bar/main]
  91. inherit = basebar/settings
  92. offset-x = 5%
  93. width = 15%
  94. modules-left = xworkspaces
  95.  
  96. [bar/names]
  97. inherit = basebar/settings
  98. offset-x = 35%
  99. width = 27%
  100. background = ${colors.background}
  101. foreground = ${colors.secondary}
  102. border-size = 2pt
  103. border-color = ${colors.secondary}
  104. modules-center = xwindow
  105.  
  106. [bar/data]
  107. inherit = basebar/settings
  108. offset-x = 69%
  109. width = 31%
  110. modules-right = updates-pacman-yay pulseaudio memory cpu wlan xkeyboard
  111. ; eth
  112. ; modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth
  113.  
  114. [module/xworkspaces]
  115. type = internal/xworkspaces
  116.  
  117. label-active = %name%
  118. label-active-background = ${colors.background}
  119. label-active-foreground = ${colors.secondary}
  120. ; label-active-underline= ${colors.primary}
  121. label-active-padding = 1
  122.  
  123. label-occupied = %name%
  124. label-occupied-padding = 1
  125.  
  126. label-urgent = %name%
  127. label-urgent-background = ${colors.primary}
  128. label-urgent-padding = 1
  129.  
  130. label-empty = %name%
  131. label-empty-foreground = ${colors.disabled}
  132. label-empty-padding = 1
  133.  
  134. [module/xwindow]
  135. type = internal/xwindow
  136. label = %title:0:60:...%
  137.  
  138. [module/pulseaudio]
  139. type = internal/pulseaudio
  140.  
  141. format-volume-prefix = "󰕾 "
  142. format-volume-prefix-foreground = ${colors.primary}
  143. format-volume = <label-volume>
  144.  
  145. label-volume = %percentage%%
  146.  
  147. label-muted = 󰖁
  148. label-muted-foreground = ${colors.disabled}
  149.  
  150. [module/xkeyboard]
  151. type = internal/xkeyboard
  152. blacklist-0 = num lock
  153.  
  154. label-layout = %layout%
  155. label-layout-foreground = ${colors.primary}
  156.  
  157. label-indicator-padding = 2
  158. label-indicator-margin = 1
  159. label-indicator-foreground = ${colors.background}
  160. label-indicator-background = ${colors.secondary}
  161.  
  162. [module/memory]
  163. type = internal/memory
  164. interval = 2
  165. format-prefix = "󰽑 "
  166. format-prefix-foreground = ${colors.primary}
  167. label = %percentage_used:2%%
  168.  
  169. [module/cpu]
  170. type = internal/cpu
  171. interval = 2
  172. format-prefix = "󰾂 "
  173. format-prefix-foreground = ${colors.primary}
  174. label = %percentage:2%%
  175.  
  176. [network-base]
  177. type = internal/network
  178. interval = 5
  179. format-connected = <label-connected>
  180. format-disconnected = <label-disconnected>
  181. label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
  182.  
  183. [module/wlan]
  184. inherit = network-base
  185. interface-type = wireless
  186. label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
  187. ;; icons: 󰢿a 󰢼 󰢽 󰢾
  188.  
  189. [module/eth]
  190. inherit = network-base
  191. interface-type = wired
  192. label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
  193.  
  194. [module/date]
  195. type = internal/date
  196. interval = 1
  197.  
  198. date = %H:%M
  199. date-alt = %Y-%m-%d %H:%M:%S
  200.  
  201. label = %date%
  202. label-foreground = ${colors.secondary}
  203.  
  204. [settings]
  205. screenchange-reload = true
  206. pseudo-transparency = true
  207.  
  208. [module/updates-pacman-yay]
  209. ; label-foreground =
  210. type = custom/script
  211. exec = ~/.config/polybar/scripts/updates-pacman-yay.sh
  212. interval = 600
  213. ; vim:ft=dosini
  214.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement