Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.31 KB | None | 0 0
  1. [colors]
  2. background = ${xrdb:color0:#222}
  3. foreground = ${xrdb:color7:#222}
  4. foreground-alt = ${xrdb:color7:#222}
  5. primary = ${xrdb:color1:#222}
  6. secondary = ${xrdb:color2:#222}
  7. alert = ${xrdb:color3:#222}
  8.  
  9. [bar/main]
  10. ;monitor = ${env:MONITOR:HDMI-1}
  11. width = 100%
  12. height = 27
  13. ;offset-x = 1%
  14. ;offset-y = 1%
  15. radius = 0
  16. fixed-center = true
  17.  
  18. background = ${colors.background}
  19. foreground = ${colors.foreground}
  20.  
  21. line-size = 0
  22. line-color = #f00
  23.  
  24. border-size = 0
  25. border-color = #00000000
  26.  
  27. padding-left = 2
  28. padding-right = 2
  29.  
  30. module-margin-left = 1
  31. module-margin-right = 2
  32.  
  33. font-0 = Gohu Gohufont:pixelsize=14;1
  34. font-1 = SauceCodePro Nerd Font:pixelsize=11;1
  35. font-2 = FontAwesome:pixelsize=10;1
  36. font-3 = Noto Color Emoji:pixelsize=10;1
  37.  
  38.  
  39.  
  40. ;=====================================================
  41. ; BAR ORDER
  42. ;=====================================================
  43. modules-left = temperature fan cmus
  44. modules-center = bspwm
  45. modules-right = weather pulseaudio-tail date
  46. ;=====================================================
  47.  
  48. tray-position =
  49. tray-padding = 0
  50. ;tray-transparent = true
  51. ;tray-background = #0063ff
  52.  
  53. wm-restack = bspwm
  54.  
  55. override-redirect = false
  56.  
  57. #scroll-up = bspwm-desknext
  58. #scroll-down = bspwm-deskprev
  59.  
  60. cursor-click = pointer
  61. cursor-scroll = default
  62.  
  63. ;=====================================================
  64. ;============= Module bspwm
  65. ;=====================================================
  66. [module/bspwm]
  67. type = internal/bspwm
  68.  
  69. enable-scroll = false
  70.  
  71. ws-icon-0 = 1;
  72. ws-icon-1 = 2;
  73. ws-icon-2 = 3;
  74. ws-icon-3 = 4;
  75. ws-icon-4 = 5;
  76. ws-icon-5 = 6;
  77.  
  78. label-focused = %icon%
  79. label-focused-foreground = ${colors.background}
  80. label-focused-background = ${colors.primary}
  81. label-focused-underline= ${colors.primary}
  82. label-focused-padding = 2
  83.  
  84. label-occupied = %icon%
  85. label-occupied-padding = 2
  86. label-occupied-foreground = ${colors.foreground-alt}
  87.  
  88. label-urgent = %icon%!
  89. label-urgent-background = ${colors.alert}
  90. label-urgent-padding = 2
  91.  
  92. label-empty = %icon%
  93. label-empty-foreground = ${colors.foreground-alt}
  94. label-empty-padding = 2
  95.  
  96. ; Separator in between workspaces
  97. ; label-separator = |
  98. ;=====================================================
  99.  
  100.  
  101. ;=====================================================
  102. ;============= Module time
  103. ;=====================================================
  104. [module/date]
  105. type = internal/date
  106. interval = 5
  107.  
  108. date =
  109. date-alt = " %d-%m-%Y"
  110.  
  111. time = %H:%M
  112. time-alt = %H:%M
  113.  
  114. format-prefix = 
  115. format-prefix-foreground = ${colors.primary}
  116.  
  117. label = %date% %time%
  118. ;=====================================================
  119.  
  120.  
  121. ;=====================================================
  122. ;============= Module volume
  123. ;=====================================================
  124. [module/pulseaudio-tail]
  125. type = custom/script
  126. exec = ~/.config/polybar/pulseaudio-tail.sh
  127. format-prefix = " "
  128. format-prefix-foreground = ${colors.primary}
  129. tail = true
  130. click-right = exec pavucontrol &
  131. click-left = ~/.config/polybar/pulseaudio-tail.sh --mute
  132. scroll-up = ~/.config/polybar/pulseaudio-tail.sh --up
  133. scroll-down = ~/.config/polybar/pulseaudio-tail.sh --down
  134. ;=====================================================
  135.  
  136.  
  137. ;=====================================================
  138. ;============= Module temperature
  139. ;=====================================================
  140. [module/temperature]
  141. type = internal/temperature
  142. thermal-zone = 0
  143. warn-temperature = 75
  144.  
  145. format = <label>
  146. format-warn = <label-warn>
  147. format-prefix = " "
  148. format-prefix-foreground = ${colors.primary}
  149.  
  150. label = %temperature-c%
  151. label-warn = %temperature-c%
  152. label-warn-foreground = ${colors.secondary}
  153.  
  154. ramp-0 = 
  155. ramp-1 = 
  156. ramp-2 = 
  157. ramp-foreground = ${colors.foreground-alt}
  158. ;=====================================================
  159.  
  160. ;=====================================================
  161. ;============= Module fanspeed
  162. ;=====================================================
  163. [module/fan]
  164. type = custom/script
  165. exec = ~/.config/polybar/fan.sh
  166. interval = 5
  167. format-prefix = " "
  168. format-prefix-foreground = ${colors.primary}
  169. ;=====================================================
  170.  
  171.  
  172. ;=====================================================
  173. ;============= Module cmus
  174. ;=====================================================
  175. [module/cmus]
  176. type = custom/script
  177. exec = sh ~/.config/polybar/music.sh
  178. exec-if = pgrep -x cmus
  179. interval = 1
  180.  
  181. format-prefix = " "
  182. format-padding = 0
  183. format-prefix-foreground = ${colors.primary}
  184. click-left = cmus-remote --pause
  185. click-right = cmus-remote -n
  186. label = %output:0:60:...%
  187. ;=====================================================
  188.  
  189.  
  190. ;=====================================================
  191. ;============= Module weather
  192. ;=====================================================
  193. [module/weather]
  194. type = custom/script
  195. interval = 600
  196. format = <label>
  197. label-font = 1
  198. format-prefix = "  "
  199. format-prefix-foreground = ${colors.primary}
  200. exec = ~/.config/polybar/weather.sh
  201. format-padding = 0
  202. ;=====================================================
  203.  
  204.  
  205. ;=====================================================
  206. ;============= Module cpu
  207. ;=====================================================
  208. [module/cpu]
  209. type = internal/cpu
  210. interval = 2
  211. format-prefix = " "
  212. format-prefix-foreground = ${colors.foreground-alt}
  213. format-underline = #f90000
  214. label = %percentage:2%%
  215. ;=====================================================
  216.  
  217. [module/xwindow]
  218. type = internal/xwindow
  219. label = %title:0:30:...%
  220.  
  221. [module/wlan]
  222. type = internal/network
  223. interface = wlp4s0
  224. interval = 3.0
  225.  
  226. format-connected = <ramp-signal> <label-connected>
  227. format-connected-underline = #9f78e1
  228. label-connected = %essid%
  229.  
  230. format-disconnected =
  231. ;format-disconnected = <label-disconnected>
  232. ;format-disconnected-underline = ${self.format-connected-underline}
  233. ;label-disconnected = %ifname% disconnected
  234. ;label-disconnected-foreground = ${colors.foreground-alt}
  235.  
  236. ramp-signal-0 = 1
  237. ramp-signal-1 = 2
  238. ramp-signal-2 = 3
  239. ramp-signal-3 = 4
  240. ramp-signal-4 = 5
  241. ramp-signal-foreground = ${colors.foreground-alt}
  242.  
  243. [module/eth]
  244. type = internal/network
  245. interface = net0
  246. interval = 3.0
  247.  
  248. format-connected-underline = #55aa55
  249. format-connected-prefix = " "
  250. format-connected-prefix-foreground = ${colors.foreground-alt}
  251. label-connected = %local_ip%
  252.  
  253. format-disconnected =
  254. ;format-disconnected = <label-disconnected>
  255. ;format-disconnected-underline = ${self.format-connected-underline}
  256. ;label-disconnected = %ifname% disconnected
  257. ;label-disconnected-foreground = ${colors.foreground-alt}
  258.  
  259. [module/powermenu]
  260. type = custom/menu
  261.  
  262. expand-right = true
  263.  
  264. format-spacing = 1
  265.  
  266. label-open = 
  267. label-open-foreground = ${colors.secondary}
  268. label-close =  cancel
  269. label-close-foreground = ${colors.secondary}
  270. label-separator = |
  271. label-separator-foreground = ${colors.foreground-alt}
  272.  
  273. menu-0-0 = reboot
  274. menu-0-0-exec = menu-open-1
  275. menu-0-1 = power off
  276. menu-0-1-exec = menu-open-2
  277.  
  278. menu-1-0 = cancel
  279. menu-1-0-exec = menu-open-0
  280. menu-1-1 = reboot
  281. menu-1-1-exec = sudo reboot
  282.  
  283. menu-2-0 = power off
  284. menu-2-0-exec = sudo poweroff
  285. menu-2-1 = cancel
  286. menu-2-1-exec = menu-open-0
  287.  
  288. [settings]
  289. screenchange-reload = true
  290. ;compositing-background = xor
  291. ;compositing-background = screen
  292. ;compositing-foreground = source
  293. ;compositing-border = over
  294.  
  295. [global/wm]
  296. margin-top = 35
  297. margin-bottom = 0
  298.  
  299. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement