Guest User

config

a guest
Nov 9th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 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. [colors]
  20. alpha = #00000000
  21. background = #000
  22. foreground = #fff
  23.  
  24. [bar/main]
  25. width = 99%
  26. height = 35
  27. fixed-center = true
  28.  
  29. offset-x = 0.5%
  30. offset-y = 1%
  31.  
  32. background = ${colors.alpha}
  33. foreground = ${colors.foreground}
  34.  
  35. font-1 = "Cozette:size=10;2"
  36. font-0 = "Cozette:size=10;2"
  37.  
  38. modules-left = ewmh player-mpris-tail
  39. modules-center =
  40. modules-right = dunst sep eth volume date
  41.  
  42. padding-left = 0
  43. padding-right = 0
  44.  
  45. module-margin-left = 0
  46. module-margin-right= = 0
  47.  
  48. enable-ipc = true
  49.  
  50. override-redirect = false
  51.  
  52. [module/info-hackspeed]
  53. type = custom/script
  54. exec = ~/.config/polybar/scripts/info-hackspeed.sh
  55. tail = true
  56.  
  57. format-foreground = #fff
  58. format-background = #666
  59.  
  60. format-padding = 2
  61.  
  62. [module/dunst]
  63. type = custom/ipc
  64. initial = 1
  65. format-foreground = #fff
  66. format-background = #000
  67. format-padding = 2
  68.  
  69. hook-0 = echo "%{A1:notify-send "DUNST_COMMAND_PAUSE" && polybar-msg hook dunst 2:}" ■ "%{A}" &
  70. hook-1 = echo "%{A1:notify-send "DUNST_COMMAND_RESUME" && polybar-msg hook dunst 1:}" □ "%{A}" &
  71.  
  72. [module/sep]
  73. type = custom/text
  74. content = "| "
  75.  
  76. content-background = ${colors.alpha}
  77. content-foreground = ${colors.alpha}
  78. content-padding = 0
  79.  
  80.  
  81. [module/ewmh]
  82. type = internal/xworkspaces
  83.  
  84. ; Only show workspaces defined on the same output as the bar
  85. ;
  86. ; Useful if you want to show monitor specific workspaces
  87. ; on different bars
  88. ;
  89. ; Default: false
  90. pin-workspaces = false
  91.  
  92. ; Create click handler used to focus desktop
  93. ; Default: true
  94. enable-click = true
  95.  
  96. ; Create scroll handlers used to cycle desktops
  97. ; Default: true
  98. enable-scroll = true
  99.  
  100. icon-default = □
  101.  
  102. ; Available tokens:
  103. ; %name%
  104. ; Default: %name%
  105. label-monitor = %name%
  106.  
  107. ; Available tokens:
  108. ; %name%
  109. ; %icon%
  110. ; %index%
  111. ; Default: %icon% %name%
  112. label-active = ■
  113. label-active-foreground = #fff
  114. format-background = #000
  115. format-padding = 2
  116. label-active-background = #000
  117. label-empty-background = #000
  118. label-active-padding-right = 2
  119.  
  120. ; Available tokens:
  121. ; %name%
  122. ; %icon%
  123. ; %index%
  124. ; Default: %icon% %name%
  125. label-urgent = %icon%
  126. label-urgent-foreground = #fff
  127. label-urgent-background = #444
  128. label-urgent-padding = 0
  129. label-urgent-padding-right = 0
  130.  
  131. ; Available tokens:
  132. ; %name%
  133. ; %icon%
  134. ; %index%
  135. ; Default: %icon% %name%
  136. label-empty = %icon%
  137. label-empty-foreground = #fff
  138. label-empty-padding = 0
  139. label-empty-padding-right = 2
  140.  
  141. [module/volume]
  142. type = internal/pulseaudio
  143. format-volume-background = #222
  144. format-muted-background = #222
  145.  
  146. format-volume = <label-volume>
  147. label-volume = %percentage%%
  148. label-volume-foreground = ${root.foreground}
  149.  
  150. label-muted = muted
  151. label-muted-foreground = ${root.foreground}
  152.  
  153. ;sink = <alsa_output.pci-0000_09_00.4.analog-stereo>
  154. use-ui-max = true
  155.  
  156. format-volume-padding = 2
  157. format-muted-padding = 2
  158.  
  159. click-right = exec pavucontrol &
  160.  
  161. [module/cpu]
  162. type = internal/cpu
  163. interval = 2
  164. format-background = #222
  165. label = %percentage:2%%
  166. format-padding = 2
  167.  
  168. [module/eth]
  169. type = internal/network
  170. interface = enp5s0
  171. interval = 3.0
  172.  
  173. format-connected-background = #444
  174. label-connected = ethernet
  175.  
  176. format-disconnected = disconnected
  177. format-disconnected-background = #444
  178.  
  179. format-disconnected-padding = 2
  180. format-connected-padding = 2
  181. ;format-disconnected = <label-disconnected>
  182. ;format-disconnected-underline = ${self.format-connected-underline}
  183. ;label-disconnected = %ifname% disconnected
  184. ;label-disconnected-foreground = ${colors.foreground-alt}
  185.  
  186. [module/date]
  187. type = internal/date
  188. interval = 5
  189.  
  190. date =
  191. date-alt = "%d/%m"
  192.  
  193. time = "%H:%M"
  194. time-alt =
  195.  
  196. label = %date%%time%
  197. format-background = #000
  198. format-foreground = #fff
  199. format-padding = 2
  200.  
  201. [module/player-mpris-tail]
  202. format-background = #222
  203. type = custom/script
  204. exec = /home/npham/.config/polybar/scripts/player-mpris-tail.py -f '♫ {:artist:t20:{artist}:}{:artist: - :}{:t20:{title}:}'
  205. tail = true
  206. click-left = ~/.config/polybar/scripts/player-mpris-tail.py previous &
  207. click-right = ~/.config/polybar/scripts/player-mpris-tail.py next &
  208. click-middle = ~/.config/polybar/scripts/player-mpris-tail.py play-pause &
  209. format-padding = 2
  210.  
  211. [settings]
  212. screenchange-reload = true
  213. ;compositing-background = xor
  214. ;compositing-background = screen
  215. ;compositing-foreground = source
  216. ;compositing-border = over
  217. ;pseudo-transparency = false
  218.  
  219. [global/wm]
  220. margin-top = 0
  221. margin-bottom = 9
  222.  
  223. ; vim:ft=dosini
  224.  
Add Comment
Please, Sign In to add comment