Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.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. background = ${xrdb:color0:#222}
  21. background-alt = ${xrdb:color0:#222}
  22. foreground = ${xrdb:color7:#222}
  23. foreground-alt = ${xrdb:color7:#222}
  24. alert = ${xrdb:color14:#222}
  25. transpbar = #66000000
  26. primary = ${xrdb:color1:#222}
  27. secondary = ${xrdb:color2:#222}
  28. 3 = ${xrdb:color4:#222}
  29. 4 = ${xrdb:color6:#222}
  30. 5 = ${xrdb:color8:#222}
  31. 6 = ${xrdb:color9:#222}
  32. 7 = ${xrdb:color11:#222}
  33. 8 = ${xrdb:color13:#222}
  34.  
  35. [bar/top]
  36. ;monitor = ${env:MONITOR:HDMI-1}
  37. width = 100%
  38. height = 26
  39. ;offset-x = 1%
  40. ;offset-y = 8
  41. ;radius = 8.0
  42. fixed-center = true
  43. ;dock = true
  44.  
  45. ;GREY TRANSPARENT
  46. background = #88000000
  47. ;background = ${colors.background}
  48. foreground = ${colors.foreground}
  49. line-size = 3
  50. line-color = #f00
  51.  
  52. border-top-size = 4
  53. border-right-size = 2
  54. border-bottom-size = 5
  55. border-left-size = 2
  56. ;border-color = ${colors.background}
  57. border-color = #88000000
  58.  
  59. padding-left = 1
  60. padding-right = 1
  61.  
  62. module-margin-left = 1
  63. module-margin-right = 0
  64.  
  65. font-0 = Manjari:style=Bold:size=13;4
  66. font-1 = Font Awesome 5 Free:style=Regular:size=12;2
  67. font-2 = Font Awesome 5 Free:style=Solid:size=12;2
  68. font-3 = Font Awesome 5 Brands:size=12;2
  69. font-4 = Manjari:size=18;5
  70.  
  71. modules-left = i3 player-moc
  72. modules-center =
  73. modules-right = wlan ovpn-isrunning pulseaudio cpuold tempcgpu memory date
  74.  
  75. tray-position = right
  76. tray-padding = 1
  77. tray-maxsize = 25
  78. tray-background = #88000000
  79. ;tray-background = ${colors.background}
  80.  
  81. scroll-up = i3wm-wsnext
  82. scroll-down = i3wm-wsprev
  83.  
  84. ;cursor-click = pointer
  85. ;cursor-scroll = ns-resize
  86.  
  87. [module/i3]
  88. type = internal/i3
  89. format = <label-state> <label-mode>
  90. index-sort = true
  91. wrapping-scroll = false
  92. strip-wsnumbers = true
  93. ; Only show workspaces on the same output as the bar
  94. pin-workspaces = true
  95.  
  96. label-mode-padding = 2
  97. label-mode-foreground = ${colors.foreground}
  98. ;label-mode-background = #22EEEEEE
  99. label-mode-background = ${colors.6}
  100. ;label-mode-background = ${colors.secondary}
  101.  
  102. ; focused = Active workspace on focused monitor
  103. label-focused = %name%
  104. label-focused-background = ${colors.6}
  105. ;label-focused-background = ${colors.secondary}
  106. ;label-focused-background = ${colors.background-alt}
  107. ;label-focused-underline= ${colors.primary}
  108. label-focused-padding = 2
  109.  
  110. ; unfocused = Inactive workspace on any monitor
  111. label-unfocused = %name%
  112. label-unfocused-padding = 2
  113.  
  114. ; visible = Active workspace on unfocused monitor
  115. label-visible = %name%
  116. label-visible-background = ${self.label-focused-background}
  117. ;label-visible-underline = ${self.label-focused-underline}
  118. label-visible-padding = ${self.label-focused-padding}
  119.  
  120. ; urgent = Workspace with urgency hint set
  121. label-urgent = %name%
  122. label-urgent-foreground = ${colors.foreground}
  123. ;label-urgent-background = ${colors.alert}
  124. ;label-urgent-background = ${colors.7}
  125. label-urgent-background = ${colors.secondary}
  126. label-urgent-padding = 2
  127. ; Separator in between workspaces
  128.  label-separator = " "
  129.  
  130. [module/kernel]
  131. type = custom/script
  132. exec = uname -r
  133. format-prefix = "   "
  134. format-offset = 10
  135.  
  136. [module/player-moc]
  137. type = custom/script
  138. exec = ~/.config/polybar/player-moc.sh
  139. interval = 0.8
  140. click-left = mocp -f
  141. click-right = mocp -r
  142. click-middle = mocp -G
  143. format-offset = 20
  144. #format-prefix = "  "
  145. format-padding = 2
  146.  
  147. [module/ovpn-isrunning]
  148. type = custom/script
  149. exec = ~/.config/polybar/ovpn-isrunning.sh
  150. interval = 1
  151. format-prefix = " "
  152. format-underline = ${colors.8}
  153. format-padding = 2
  154.  
  155. [module/tempcgpu]
  156. type = custom/script
  157. exec = ~/.config/polybar/temp.sh
  158. inteval = 2
  159. click-left = urxvt -e watch -n1 nvidia-smi &
  160. format-prefix = " "
  161. format-underline = ${colors.7}
  162. format-padding = 2
  163.  
  164. [module/cpu]
  165. type = custom/script
  166. exec = ~/.config/polybar/cpuinfo.sh
  167. interval = 2
  168. format-prefix = " "
  169. format-prefix-foreground = ${colors.foreground-alt}
  170. format-underline = ${colors.3}
  171. ;format-background = ${colors.3}
  172. format-padding = 2
  173.  
  174. [module/cpuold]
  175. type = internal/cpu
  176. interval = 2
  177. format-prefix = " "
  178. format-prefix-foreground = ${colors.foreground-alt}
  179. format-underline = ${colors.3}
  180. ;format-background = ${colors.3}
  181. format-padding = 2
  182. label = %percentage%%
  183.  
  184. [module/memory]
  185. type = internal/memory
  186. interval = 2
  187. format-prefix = " "
  188. format-prefix-foreground = ${colors.foreground-alt}
  189. format-underline = ${colors.5}
  190. ;format-background = ${colors.5}
  191. format-padding = 2
  192. label = %gb_used%
  193. ;label = %mb_used%
  194.  
  195. [module/wlan]
  196. type = internal/network
  197. interface = wlp5s0
  198. interval = 1.0
  199.  
  200. format-connected = <label-connected>
  201. format-connected-underline = ${colors.4}
  202. ;format-connected-background = ${colors.4}
  203. format-connected-padding = 2
  204. label-connected =  %upspeed%   %downspeed%
  205.  
  206. format-disconnected =
  207. ;format-disconnected = <label-disconnected>
  208. ;format-disconnected-underline = ${self.format-connected-underline}
  209. ;label-disconnected = %ifname% disconnected
  210. ;label-disconnected-foreground = ${colors.foreground-alt}
  211.  
  212. [module/date]
  213. type = internal/date
  214. interval = 1
  215.  
  216. date = "%A %dth"
  217. date-alt = "%d.%m.%y "
  218.  
  219. time = %H:%M
  220. time-alt = %H:%M:%S
  221.  
  222. format-prefix = " "
  223. format-prefix-foreground = ${colors.foreground-alt}
  224. ;format-background = ${colors.alert}
  225. format-underline = ${colors.alert}
  226. format-padding = 2
  227.  
  228. label = %date% %time%
  229.  
  230. [module/pulseaudio]
  231. type = internal/pulseaudio
  232.  
  233. format-volume = <label-volume>
  234. format-volume-underline = ${colors.6}
  235. ;format-volume-background = ${colors.6}
  236. format-volume-padding = 2
  237. ;format-muted-background = ${colors.6}
  238. format-muted-padding = 2
  239.  
  240. label-volume =   %percentage%%
  241. label-volume-foreground = ${root.foreground}
  242.  
  243. label-muted =   Muted
  244. label-muted-foreground = ${colors.alert}
  245.  
  246. bar-volume-width = 8
  247. bar-volume-foreground-0 = #55aa55
  248. bar-volume-foreground-1 = #55aa55
  249. bar-volume-foreground-2 = #55aa55
  250. bar-volume-foreground-3 = #55aa55
  251. bar-volume-foreground-4 = #55aa55
  252. bar-volume-foreground-5 = #f5a70a
  253. bar-volume-foreground-6 = #ff5555
  254. bar-volume-gradient = false
  255. bar-volume-indicator = |
  256. bar-volume-indicator-font = 1
  257. bar-volume-fill = ─
  258. bar-volume-fill-font = 1
  259. bar-volume-empty = ─
  260. bar-volume-empty-font = 1
  261. bar-volume-empty-foreground = ${colors.foreground-alt}
  262.  
  263. [settings]
  264. screenchange-reload = true
  265. ;compositing-background = xor
  266. ;compositing-background = screen
  267. ;compositing-foreground = source
  268. ;compositing-border = over
  269. ;pseudo-transparency = true
  270.  
  271. [global/wm]
  272. margin-top = 8
  273. margin-bottom = 8
  274.  
  275. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement