devdsavage

Polybar

Oct 8th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.47 KB | None | 0 0
  1. [colors]
  2. ;background = #00000000
  3. ;background-alt = #99333333
  4. ;foreground = #dadfe1
  5. ;foreground-alt = #555
  6. ;primary = #5c72f4
  7. ;secondary = #6ef9f9
  8. ;alert = #751715
  9.  
  10. background = ${xrdb:color0:#222}
  11. background-alt = ${xrdb:color0:#222}
  12. foreground = ${xrdb:color7:#222}
  13. foreground-alt = ${xrdb:color7:#222}
  14. primary = ${xrdb:color1:#222}
  15. secondary = ${xrdb:color2:#222}
  16. alert = ${xrdb:color3:#222}
  17.  
  18.  
  19. [bar/top]
  20. bottom = false
  21. width = 100%
  22. height = 36
  23. radius = 0.0
  24. fixed-center = true
  25.  
  26. background = ${colors.background}
  27. foreground = ${colors.foreground}
  28.  
  29. line-size = 3
  30. line-color = #f00
  31.  
  32. border-size = 0
  33. border-color = #00000000
  34.  
  35. padding-left = 0
  36. padding-right = 4
  37.  
  38. module-margin-left = 3
  39. module-margin-right = 3
  40.  
  41. font-0 = "Ubuntu Nerd Font:style=Regular:size=10:antialias=true;1"
  42.  
  43. modules-left = i3 xwindow
  44. modules-center = spotify-previous spotify-playpause spotify-next spotify
  45. modules-right = xkeyboard pulseaudio date network memory cpu temperature powermenu
  46.  
  47. tray-position = right
  48. tray-padding = 2
  49.  
  50. wm-restack = i3
  51.  
  52. ;override-redirect = true
  53.  
  54. scroll-up = i3wm-wsprev
  55. scroll-down = i3wm-wsnext
  56.  
  57. [module/xwindow]
  58. type = internal/xwindow
  59. label = %title:0:64:...%
  60.  
  61. [module/easteregg-pornhub]
  62. type = custom/script
  63. exec = echo " hub "
  64. interval = 3600
  65. click-left = "firefox https://pornhub.com/random"
  66.  
  67.  
  68. [module/xkeyboard]
  69. type = internal/xkeyboard
  70. blacklist-0 = num lock
  71.  
  72. format-prefix =
  73. format-prefix-foreground = ${colors.foreground-alt}
  74. format-prefix-underline = ${colors.primary}
  75.  
  76. label-layout =
  77. label-layout-underline = ${colors.primary}
  78.  
  79. label-indicator-padding = 2
  80. label-indicator-margin = 1
  81. label-indicator-foreground = ${colors.foreground}
  82. label-indicator-background = ${colors.primary}
  83. label-indicator-underline = ${colors.primary}
  84.  
  85. [module/i3]
  86. type = internal/i3
  87. format = <label-state> <label-mode>
  88. index-sort = true
  89. wrapping-scroll = true
  90. strip-wsnumbers = true
  91.  
  92. label-mode = %mode%
  93. label-mode-padding = 4
  94. label-mode-foreground = ${colors.foreground}
  95. label-mode-background = ${colors.primary}
  96.  
  97. label-focused = %name%
  98. label-focused-background = ${colors.background-alt}
  99. label-focused-underline = ${colors.primary}
  100. label-focused-padding = 4
  101.  
  102. label-unfocused = %name%
  103. label-unfocused-padding = 4
  104.  
  105. label-visible = V %index%
  106. label-visible-background = ${self.label-focused-background}
  107. label-visible-underline = ${self.label-focused-background}
  108. label-visible-padding = ${self.label-focused-padding}
  109.  
  110. label-urgent = 
  111. label-urgent-background = ${colors.alert}
  112. label-urgent-padding = 4
  113.  
  114. [module/cpu]
  115. type = internal/cpu
  116. interval = 2
  117. format-prefix = " "
  118. format-prefix-foreground = ${colors.foreground-alt}
  119. format-underline = #00000000
  120. label = %percentage%%
  121.  
  122. [module/memory]
  123. type = internal/memory
  124. interval = 2
  125. format-prefix = " "
  126. format-prefix-foreground = ${colors.foreground-alt}
  127. format-underline = #00000000
  128. label = %percentage_used%%
  129.  
  130. [module/network]
  131. type = internal/network
  132. interface = wlp5s0
  133. interval = 3.0
  134.  
  135. format-connected = <ramp-signal> <label-connected>
  136. format-connected-underline = #00000000
  137. label-connected = " %essid%"
  138.  
  139. format-disconnected = <label-disconnected>
  140. format-disconnected-underline = ${colors.alert}
  141. label-disconnected = xx.xx.xx.xx
  142. label-disconnected-foreground = ${colors.foreground-alt}
  143.  
  144. ramp-signal-0 = 
  145. ramp-signal-1 = 
  146. ramp-signal-2 = 
  147. ramp-signal-3 = 
  148. ramp-signal-4 = 
  149. ramp-signal-foreground = ${colors.foreground-alt}
  150.  
  151.  
  152. [module/spotify]
  153. type = custom/script
  154. interval = 2
  155. exec-if = pgrep -x spotify
  156. exec = ~/.config/polybar/scripts/spotify
  157. format-padding = 5
  158. format-background = ${colors.background}
  159.  
  160. [module/spotify-playpause]
  161. type = custom/script
  162. interval = 0
  163. exec-if = pgrep -x spotify
  164. exec = ~/.config/polybar/scripts/spotify-playpause
  165. click-left = playerctl play-pause
  166. format-padding = 3
  167. format-background = ${colors.accent}
  168. format-foreground = ${colors.foreground}
  169.  
  170. [module/spotify-previous]
  171. type = custom/script
  172. exec-if = pgrep -x spotify
  173. exec = echo ""
  174. click-left = playerctl previous
  175. format-padding = 3
  176. format-background = ${colors.accent}
  177. format-foreground = ${colors.foreground}
  178.  
  179. [module/spotify-next]
  180. type = custom/script
  181. exec-if = pgrep -x spotify
  182. exec = echo ""
  183. click-left = playerctl next
  184. format-padding = 3
  185. format-background = ${colors.accent}
  186. format-foreground = ${colors.foreground}
  187.  
  188. [module/date]
  189. type = internal/date
  190. interval = 5
  191.  
  192. date =
  193. date-alt = " %Y-%m-%d"
  194.  
  195. time = %I:%M %p
  196. time-alt = %H:%M:%S
  197.  
  198. format-prefix = 
  199. format-prefix-foreground = ${colors.foreground-alt}
  200. format-underline = #00000000
  201.  
  202. label = %date% %time%
  203.  
  204. [module/temperature]
  205. type = internal/temperature
  206. thermal-zone = 0
  207. warn-temperature = 55
  208.  
  209. format = <ramp> <label>
  210. format-underline = #00000000
  211. format-warn = <ramp> <label-warn>
  212. format-warn-underline = ${self.format-underline}
  213.  
  214. label = %temperature-c%
  215. label-warn = %temperature-c%
  216. label-warn-foreground = ${colors.foreground}
  217. label-warn-background = ${colors.alert}
  218. label-warn-padding = 2
  219.  
  220. ramp-0 = 
  221. ramp-1 = 
  222. ramp-2 = 
  223. ramp-foreground = ${colors.foreground-alt}
  224.  
  225. [module/powermenu]
  226. type = custom/menu
  227.  
  228. format-spacing = 1
  229.  
  230. label-open = 
  231. label-open-foreground = ${colors.foreground}
  232. label-close = cancel
  233. label-close-foreground = ${colors.primary}
  234. label-separator = |
  235. label-separator-foreground = ${colors.foreground-alt}
  236.  
  237. menu-0-0 = reboot
  238. menu-0-0-exec = menu-open-1
  239. menu-0-1 = power off
  240. menu-0-1-exec = menu-open-2
  241.  
  242. menu-1-0 = cancel
  243. menu-1-0-exec = menu-open-0
  244. menu-1-1 = reboot
  245. menu-1-1-exec = reboot
  246.  
  247. menu-2-0 = power off
  248. menu-2-0-exec = poweroff
  249. menu-2-1 = cancel
  250. menu-2-1-exec = menu-open-0
  251.  
  252. [module/pulseaudio]
  253. type = internal/pulseaudio
  254.  
  255. format-volume = <label-volume> <bar-volume>
  256. label-volume = VOL
  257. label-volume-foreground = ${colors.foreground}
  258.  
  259. format-muted-prefix = " "
  260. format-muted-foreground = ${colors.foreground-alt}
  261. label-muted = sound muted
  262.  
  263. bar-volume-width = 16
  264. bar-volume-foreground-0 = #55aa55
  265. bar-volume-foreground-1 = #55aa55
  266. bar-volume-foreground-2 = #55aa55
  267. bar-volume-foreground-3 = #55aa55
  268. bar-volume-foreground-4 = #55aa55
  269. bar-volume-foreground-5 = #f5a70a
  270. bar-volume-foreground-6 = #ff5555
  271. bar-volume-gradient = true
  272. bar-volume-indicator = |
  273. bar-volume-fill = –
  274. bar-volume-empty = –
  275.  
  276. [settings]
  277. screenchange-reload = true
  278. ;compositing-background = xor
  279. ;compositing-background = screen
  280. ;compositing-foreground = source
  281. ;compositing-border = over
  282.  
  283. [global/wm]
  284. margin-top = 0
  285. margin-bottom = 0
Advertisement
Add Comment
Please, Sign In to add comment