Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;=====================================================
  2. ;
  3. ;   To learn more about how to configure Polybar
  4. ;   go to https://github.com/jaagr/polybar
  5. ;
  6. ;   The README contains alot of information
  7. ;
  8. ;=====================================================
  9.  
  10. [colors]
  11. background = #272a33
  12. background-alt = #225555
  13. foreground = #ffffff
  14. foreground-alt = #999
  15. primary = #60afaf
  16. secondary = #90a0bb
  17. alert = #90a0bb
  18.  
  19. [bar/terminus]
  20. width = 100%
  21. height = 40
  22. ;offset-x = 1%
  23. ;offset-y = 1%
  24. radius = 2.0
  25. fixed-center = true
  26. bottom = true
  27. underline-size = 3
  28.  
  29. background = ${colors.background}
  30. foreground = ${colors.foreground}
  31.  
  32. line-size = 3
  33. line-color = #f00
  34. tray-maxsize = 2000
  35.  
  36. ;border-size = 4
  37. ;border-color = #00000000
  38.  
  39. padding-left = 0
  40. padding-right = 2
  41.  
  42. module-margin-left = 1
  43. module-margin-right = 2
  44.  
  45.  
  46. font-0 = "Roboto:pixelsize=24;3"
  47. font-1 = "LiterationMono Nerd Font Mono:size=18;2"
  48. font-2 = "DejaVu Sans: size=8;1"
  49. font-3 = "Roboto Mono for Powerline:size=22;4"
  50. font-4 = "Roboto Light:pixelsize=15;2"
  51. ;font-1 = "fontawesome:size=11;-2"
  52. ;font-2 = "Wuncon Siji:pixelsize=10;1"
  53.  
  54. modules-left = i3
  55. modules-center =
  56. modules-right = openvpn xbacklight volume xkeyboard battery wlan date
  57.  
  58. tray-position = right
  59. tray-padding = 2
  60. ;tray-transparent = true
  61. tray-background = ${colors.background}
  62.  
  63. ;wm-restack = bspwm
  64. ;wm-restack = i3
  65.  
  66. ;override-redirect = true
  67.  
  68. ;scroll-up = bspwm-desknext
  69. ;scroll-down = bspwm-deskprev
  70.  
  71. ;scroll-up = i3wm-wsnext
  72. ;scroll-down = i3wm-wsprev
  73.  
  74. [module/xwindow]
  75. type = internal/xwindow
  76. label = %title:0:30:...%
  77.  
  78. [module/xkeyboard]
  79. type = internal/xkeyboard
  80. blacklist-0 = num lock
  81.  
  82. format-prefix = " "
  83. format-suffix = " "
  84. format-background = ${colors.background-alt}
  85. ;format-prefix-underline = ${colors.secondary}
  86.  
  87. label-layout = %layout%
  88. ;label-layout-underline = ${colors.secondary}
  89. label-layout-font = 5
  90.  
  91. label-indicator-padding = 2
  92. label-indicator-margin = 1
  93. label-indicator-background = ${colors.background-alt}
  94. #label-indicator-underline = ${colors.secondary}
  95.  
  96. [module/bspwm]
  97. type = internal/bspwm
  98.  
  99. label-focused = %index%
  100. label-focused-background = ${colors.background-alt}
  101. label-focused-underline= ${colors.primary}
  102. label-focused-padding = 2
  103.  
  104. label-occupied = %index%
  105. label-occupied-padding = 2
  106.  
  107. label-urgent = %index%!
  108. label-urgent-background = ${colors.alert}
  109. label-urgent-padding = 2
  110.  
  111. label-empty = %index%
  112. label-empty-foreground = ${colors.foreground-alt}
  113. label-empty-padding = 2
  114.  
  115. [module/i3]
  116. type = internal/i3
  117. format = <label-state> <label-mode>
  118. #index-sort = true
  119. wrapping-scroll = false
  120.  
  121. ; Only show workspaces on the same output as the bar
  122. ;pin-workspaces = true
  123.  
  124. ws-icon-0 = 1;1
  125. ws-icon-1 = 2;2
  126. ws-icon-2 = 3;3
  127. ws-icon-3 = 4;4
  128. ws-icon-4 = 5;5
  129. ws-icon-5 = 6;6
  130. ws-icon-6 = 7;7
  131. ws-icon-7 = 8;8
  132. ws-icon-8 = 9;9
  133. ws-icon-9 = 10;10
  134. ws-icon-default = <>
  135.  
  136. label-focused = %icon%
  137. label-focused-background = #447777
  138. ;label-focused-foreground = #a0a0ff
  139. ;label-focused-underline = #8080cc
  140. label-focused-padding = 2
  141. label-focused-margin =
  142. label-focused-font = 1
  143.  
  144. label-unfocused = %icon%
  145. label-unfocused-padding = 2
  146. ;label-unfocused-underline = #3c5157
  147. label-unfocused-background = ${colors.background-alt}
  148. label-unfocused-margin =
  149. label-unfocused-font = 1
  150.  
  151. label-urgent = %icon%
  152. label-urgent-padding = 2
  153. label-urgent-margin =
  154. label-urgent-font = 1
  155.  
  156.  
  157. ; NOT SO VIABLE PARAMETERS
  158. label-occupied = %icon%
  159. label-occupied-padding = 1
  160. label-occupied-font = 4
  161.  
  162. label-empty = %icon%
  163. label-empty-foreground = #44ffffff
  164. label-empty-padding = 1
  165. label-empty-font = 4
  166.  
  167. label-mode-padding = 2
  168. label-mode-foreground = #000
  169. label-mode-background = ${colors.primary}
  170.  
  171. label-visible = %icon%
  172.  
  173. ; focused = Active workspace on focused monitor
  174. ;label-focused = %index%
  175. ;label-focused-background = ${module/bspwm.label-focused-background}
  176. ;label-focused-underline = ${module/bspwm.label-focused-underline}
  177. ;label-focused-padding = ${module/bspwm.label-focused-padding}
  178.  
  179. ; unfocused = Inactive workspace on any monitor
  180. ;label-unfocused = %index%
  181. ;label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  182.  
  183. ; visible = Active workspace on unfocused monitor
  184. ;label-visible = %index%
  185. ;label-visible-background = ${self.label-focused-background}
  186. ;label-visible-underline = ${self.label-focused-underline}
  187. ;label-visible-padding = ${self.label-focused-padding}
  188.  
  189. ; urgent = Workspace with urgency hint set
  190. ;label-urgent = %index%
  191. label-urgent-background = #883030
  192. ;label-urgent-padding = ${module/bspwm.label-urgent-padding}
  193.  
  194. [module/openvpn]
  195. type = custom/script
  196. format = <label>
  197. format-prefix =
  198. format-background = ${colors.background-alt}
  199. format-padding = 2
  200.  
  201. exec = echo VPN
  202. exec-if = pgrep -x openvpn
  203. click-left = ovpn
  204.  
  205.  
  206. [module/xbacklight]
  207. type = internal/xbacklight
  208.  
  209. format = <label> <bar>
  210. label =
  211.  
  212. bar-width = 20
  213. bar-indicator =
  214. bar-indicator-foreground = #ffff00
  215. bar-indicator-font = 3
  216. bar-fill =
  217. bar-fill-font = 3
  218. bar-fill-foreground = #ffffff
  219. bar-empty =
  220. bar-empty-font = 3
  221. bar-empty-foreground = ${colors.background-alt}
  222.  
  223. [module/backlight-acpi]
  224. inherit = module/xbacklight
  225. type = internal/backlight
  226. card = intel_backlight
  227.  
  228. [module/wlan]
  229. type = internal/network
  230. interface = wlp1s0
  231. interval = 3.0
  232.  
  233. format-connected = <ramp-signal> <label-connected>
  234. #format-connected-underline = #9f78e1
  235. format-connected-background = ${colors.background-alt}
  236. label-connected = "%essid%  "
  237.  
  238. format-disconnected = <label-disconnected>
  239. format-disconnected-underline = #ff0000
  240. ;label-disconnected = %ifname% disconnected
  241. label-disconnected-foreground = ${colors.foreground-alt}
  242.  
  243. ramp-signal-0 = "  ⚊"
  244. ramp-signal-1 = "  ⚌"
  245. ramp-signal-2 = "  ⚌"
  246. ramp-signal-3 = "  ☰"
  247. ramp-signal-4 = "  ☰"
  248. ramp-signal-foreground = #ffffff
  249.  
  250. [module/date]
  251. type = internal/date
  252. interval = 5
  253.  
  254. date = ""
  255. date-alt = " %d-%m-%Y "
  256.  
  257. time = "%H:%M"
  258. time-alt = %H:%M:%S
  259.  
  260. label = %date%%time%
  261.  
  262. ;format-underline = #00aa33
  263. format-background = ${colors.background-alt}
  264. format-padding = 2
  265.  
  266. [module/volume]
  267. type = internal/volume
  268.  
  269. format-volume = "<label-volume> <bar-volume>"
  270. label-volume =
  271. label-volume-foreground = ${root.foreground}
  272.  
  273. format-muted-prefix =
  274. format-muted-foreground = #5c515c
  275. label-muted = " ███████████████████"
  276. label-muted-font = 3
  277.  
  278. bar-volume-width = 20
  279. bar-volume-foreground-0 = #00ffaa
  280. bar-volume-foreground-1 = #00ffaa
  281. bar-volume-foreground-2 = #00ffaa
  282. bar-volume-foreground-3 = #00ffaa
  283. bar-volume-foreground-4 = #00ffaa
  284. bar-volume-foreground-5 = #ff7777
  285. bar-volume-foreground-6 = #dd5555
  286. bar-volume-gradient = false
  287. bar-volume-indicator =
  288. bar-volume-indicator-font = 3
  289. bar-volume-fill =
  290. bar-volume-fill-font = 3
  291. bar-volume-empty =
  292. bar-volume-empty-font = 3
  293. bar-volume-empty-foreground = ${colors.background-alt}
  294.  
  295. [module/battery]
  296. type = internal/battery
  297. battery = BAT1
  298. adapter = ADP1
  299. full-at = 98
  300.  
  301. format-charging = <label-charging>
  302. #format-charging-underline = #20ff20
  303.  
  304. format-discharging = <label-discharging>
  305. #format-discharging-underline = #7070ff
  306.  
  307. format-full-prefix-foreground = ${colors.foreground-alt}
  308. #format-full-underline = #0000ff
  309.  
  310. format-charging-background = #4c515c
  311. format-discharging-background = ${colors.background-alt}
  312. format-full-background = ${colors.background-alt}
  313. format-charging-prefix = "  "
  314. format-charging-suffix = "  "
  315. format-discharging-prefix = "  "
  316. format-discharging-suffix = "  "
  317. format-full-prefix = "  "
  318. format-full-suffix = "  "
  319.  
  320.  
  321. ramp-capacity-0 =
  322. ramp-capacity-1 =
  323. ramp-capacity-2 =
  324. ramp-capacity-foreground = ${colors.foreground-alt}
  325.  
  326. animation-charging-0 =
  327. animation-charging-1 =
  328. animation-charging-2 =
  329. animation-charging-foreground = ${colors.foreground-alt}
  330. animation-charging-framerate = 750
  331.  
  332. #[module/powermenu]
  333. #type = custom/menu
  334. #
  335. #format-spacing = 1
  336. #
  337. #label-open = ( ' )
  338. #label-open-foreground = ${colors.secondary}
  339. #label-close = cancel
  340. #label-close-foreground = ${colors.secondary}
  341. #label-separator = |
  342. #label-separator-foreground = ${colors.foreground-alt}
  343. #
  344. #menu-0-0 = reboot
  345. #menu-0-0-exec = menu-open-1
  346. #menu-0-1 = power off
  347. #menu-0-1-exec = menu-open-2
  348. #
  349. #menu-1-0 = cancel
  350. #menu-1-0-exec = menu-open-0
  351. #menu-1-1 = reboot
  352. #menu-1-1-exec = sudo reboot
  353. #
  354. #menu-2-0 = power off
  355. #menu-2-0-exec = sudo poweroff
  356. #menu-2-1 = cancel
  357. #menu-2-1-exec = menu-open-0
  358.  
  359. [settings]
  360. screenchange-reload = true
  361. ;compositing-background = xor
  362. ;compositing-background = screen
  363. ;compositing-foreground = source
  364. ;compositing-border = over
  365.  
  366. [global/wm]
  367. margin-top = 0
  368.  
  369. [module/cmus]
  370. type = custom/script
  371.  
  372. exec = sh ~/.config/polybar/cmus.sh
  373. exec-if = pgrep -x cmus
  374. interval = 1
  375.  
  376. click-left = cmus-remote --pause
  377. click-right = cmus-remote --stop
  378.  
  379. format-underline = #4bffdc
  380.  
  381. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement