Advertisement
rtl8192

%home%/.config/polybar/config

Apr 15th, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.05 KB | None | 0 0
  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 = #ee222222
  12. background-alt = #444
  13. foreground = #D9D8CE
  14. foreground-alt = #55
  15. primary = #ffb52a
  16. secondary = #e60053
  17. alert = #bd2c40
  18. color1 = #aaaaaa
  19.  
  20. [global/wm]
  21. margin-top = 2
  22. margin-bottom = 2
  23.  
  24. [bar/example]
  25. ;monitor = ${env:MONITOR:HDMI-1}
  26. width = 100%
  27. height = 20
  28. offset-x = 0
  29. offset-y = 0
  30.  
  31. ;background = ${xrdb:color9}
  32. background = ${colors.background}
  33. foreground = ${colors.foreground}
  34.  
  35. overline-size = 2
  36. overline-color = #f00
  37. underline-size = 3
  38. underline-color = #00f
  39.  
  40. border-bottom = 2
  41. border-bottom-color = #333
  42.  
  43. spacing = 1
  44. padding-left = 0
  45. padding-right = 3
  46. module-margin-left = 0
  47. module-margin-right = 4
  48.  
  49. font-0 = Envy Code R:style=Regular:size=9;0
  50. font-1 = DejaVu Sans:style=Regular:size=8;0
  51. font-2 = FontAwesome:style=Regular:size=10;0
  52.  
  53. modules-left = i3
  54. modules-center = xwindow
  55. modules-right = xkeyboard temperature volume battery date powermenu
  56.  
  57. ;а трейчик такой трейчик
  58. tray-position = right
  59. tray-maxsize = 16
  60. tray-transparent = false
  61. ;tray-background = #0063ff
  62.  
  63. ;wm-restack = bspwm
  64. ;wm-restack = i3
  65. ;wm-restack = ${bar/top.wm-restack}
  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.  
  75. [module/xwindow]
  76. type = internal/xwindow
  77. label = %title:0:60:...%
  78.  
  79. [module/xkeyboard]
  80. type = internal/xkeyboard
  81. blacklist-0 = num lock
  82.  
  83. format-underline = ${colors.background}
  84. format-prefix = " "
  85. format-prefix-foreground = ${colors.foreground-alt}
  86.  
  87. label-layout = %layout%
  88.  
  89. label-indicator-padding = 2
  90. label-indicator-background = ${colors.secondary}
  91. label-indicator-underline = ${colors.secondary}
  92.  
  93. [module/filesystem]
  94. type = internal/fs
  95. interval = 25
  96.  
  97. mount-0 = /
  98. mount-1 = /home
  99. mount-2 = /invalid/mountpoint
  100.  
  101. label-mounted = %mountpoint%: %percentage_free%
  102.  
  103. label-unmounted = %mountpoint%: not mounted
  104. label-unmounted-foreground = ${colors.foreground-alt}
  105.  
  106. [module/bspwm]
  107. type = internal/bspwm
  108. ws-icon-default = x
  109.  
  110. label-focused = %index%
  111. label-focused-background = ${colors.background-alt}
  112. label-focused-underline= ${colors.primary}
  113. label-focused-padding = 2
  114.  
  115. label-occupied = %index%
  116. label-occupied-padding = 2
  117.  
  118. label-urgent = %index%!
  119. label-urgent-background = ${colors.alert}
  120. label-urgent-padding = 2
  121.  
  122. label-empty = %index%
  123. label-empty-foreground = ${colors.foreground-alt}
  124. label-empty-padding = 2
  125.  
  126. [module/i3]
  127. type = internal/i3
  128. format = <label-state> <label-mode>
  129. index-sort = true
  130. wrapping-scroll = false
  131.  
  132. ws-icon-0 = 1;I
  133. ws-icon-1 = 2;II
  134. ws-icon-2 = 3;III
  135. ws-icon-3 = 4;IV
  136. ws-icon-4 = 5;V
  137. ws-icon-5 = 6;VI
  138. ws-icon-6 = 7;VII
  139. ws-icon-7 = 8;VIII
  140. ws-icon-8 = 9;IX
  141. ws-icon-default = X
  142.  
  143. label-mode-padding = 2
  144. label-mode-foreground = #000
  145. label-mode-background = ${colors.primary}
  146.  
  147. label-focused = %{T2}%icon%%{T-}
  148. label-focused-background = ${module/bspwm.label-focused-background}
  149. label-focused-underline = #f6eca6
  150. label-focused-padding = ${module/bspwm.label-focused-padding}
  151.  
  152. label-unfocused = %{T2}%icon%%{T-}
  153. label-unfocused-padding = ${module/bspwm.label-occupied-padding}
  154.  
  155. label-urgent = %icon%!
  156. label-urgent-background = ${module/bspwm.label-urgent-background}
  157. label-urgent-padding = ${module/bspwm.label-urgent-padding}
  158.  
  159. label-visible = %index%
  160. label-visible-background = ${self.label-focused-background}
  161. label-visible-underline = ${self.label-focused-underline}
  162. label-visible-padding = ${self.label-focused-padding}
  163.  
  164. [module/mpd]
  165. type = internal/mpd
  166.  
  167. format-online = <icon-repeat> <icon-random> %{F#aaa} <label-song> <label-time> <icon-prev> <toggle> <icon-next>%{F-}
  168.  
  169. label-song-maxlen = 25
  170. label-song-ellipsis = true
  171.  
  172. icon-prev = 
  173. icon-seekb = 
  174. icon-stop = 
  175. icon-play = 
  176. icon-pause = 
  177. icon-next = 
  178. icon-seekf = 
  179.  
  180. icon-random = 
  181. icon-repeat = 
  182.  
  183. toggle-on-foreground = #aaaaaa
  184. toggle-off-foreground = #66
  185.  
  186. bar-progress-width = 15
  187. bar-progress-indicator = 
  188. bar-progress-fill = ─
  189. bar-progress-empty = ─
  190.  
  191. [module/backlight]
  192. type = internal/xbacklight
  193.  
  194. format = <ramp><label>
  195. label = %percentage%%
  196.  
  197. ramp-0 = %{F#555}%{F-}
  198.  
  199. bar-width = 10
  200. bar-indicator = │
  201. bar-indicator-foreground = #ff
  202. bar-indicator-font = 2
  203. bar-fill = ─
  204. bar-fill-font = 2
  205. bar-fill-foreground = #9f78e1
  206. bar-empty = ─
  207. bar-empty-font = 2
  208. bar-empty-foreground = ${colors.foreground-alt}
  209.  
  210. [module/cpu]
  211. type = internal/cpu
  212. interval = 2
  213. format-prefix = " "
  214. format-prefix-foreground = ${colors.foreground-alt}
  215. format-underline = ${colors.background}
  216. label = %percentage%
  217.  
  218. [module/memory]
  219. type = internal/memory
  220. interval = 2
  221. label-foreground = #cccccc
  222. format-prefix = " "
  223. format-prefix-foreground = ${colors.foreground-alt}
  224. format-underline = ${colors.background}
  225. label = %percentage_used%
  226.  
  227. [module/wlan]
  228. type = internal/network
  229. interface =
  230. interval = 3.0
  231.  
  232. format-connected = <ramp-signal> <label-connected>
  233. format-connected-underline = #9f78e1
  234. format-disconnected-underline = ${self.format-connected-underline}
  235.  
  236. label-connected = %essid%
  237. label-disconnected = %ifname% disconnected
  238. label-disconnected-foreground = ${colors.foreground-alt}
  239.  
  240. ramp-signal-0 = 
  241. ramp-signal-1 = 
  242. ramp-signal-2 = 
  243. ramp-signal-3 = 
  244. ramp-signal-4 = 
  245. ramp-signal-foreground = ${colors.foreground-alt}
  246.  
  247. [module/eth]
  248. type = internal/network
  249. interface = enp0s20u2c4i2
  250. interval = 3.0
  251.  
  252. format-connected-underline = #55aa55
  253. format-connected-prefix = " "
  254. format-connected-foreground-foreground = ${colors.foreground-alt}
  255. label-connected = %local_ip%
  256.  
  257. format-disconnected-underline = ${self.format-connected-underline}
  258. label-disconnected = %ifname% disconnected
  259. label-disconnected-foreground = ${colors.foreground-alt}
  260.  
  261. [module/date]
  262. type = internal/date
  263. interval = 1
  264.  
  265. date =
  266. date-alt = " %Y-%m-%d"
  267.  
  268. time = %H:%M
  269. time-alt = %H:%M:%S
  270.  
  271. format-prefix = 
  272. format-prefix-foreground = ${colors.foreground-alt}
  273. format-underline = ${colors.background}
  274.  
  275. label = %date% %time%
  276.  
  277. [module/volume]
  278. type = internal/volume
  279.  
  280. format-volume = <ramp-volume><label-volume>
  281. label-volume = %percentage%%
  282. label-volume-foreground = ${root.foreground}
  283.  
  284.  
  285. ramp-volume-0 = %{F#555}
  286. ramp-volume-1 = %{F#555}
  287. ramp-volume-2 = %{F#555}
  288. format-muted-prefix = " "
  289. format-muted-foreground = ${colors.foreground-alt}
  290. label-muted = sound muted
  291.  
  292. bar-volume-width = 10
  293. bar-volume-foreground-0 = #55aa55
  294. bar-volume-foreground-1 = #55aa55
  295. bar-volume-foreground-2 = #55aa55
  296. bar-volume-foreground-3 = #55aa55
  297. bar-volume-foreground-4 = #55aa55
  298. bar-volume-foreground-5 = #f5a70a
  299. bar-volume-foreground-6 = #ff5555
  300. bar-volume-gradient = false
  301. bar-volume-indicator = │
  302. bar-volume-indicator-font = 2
  303. bar-volume-indicator-foreground = #ff
  304. bar-volume-fill = ─
  305. bar-volume-fill-font = 2
  306. bar-volume-empty = ─
  307. bar-volume-empty-font = 2
  308. bar-volume-empty-foreground = ${colors.foreground-alt}
  309.  
  310. [module/battery]
  311. type = internal/battery
  312. battery = BAT1
  313. adapter = ADP0
  314. full-at = 98
  315.  
  316. format-charging = <animation-charging> <label-charging>
  317. format-charging-underline = ${colors.background}
  318.  
  319. format-discharging = <ramp-capacity> <label-discharging>
  320. format-discharging-underline = ${self.format-charging-underline}
  321.  
  322. format-full-prefix = " "
  323. format-full-prefix-foreground = ${colors.foreground-alt}
  324. format-full-underline = ${colors.background}
  325.  
  326. ramp-capacity-0 = 
  327. ramp-capacity-1 = 
  328. ramp-capacity-2 = 
  329. ramp-capacity-foreground = ${colors.foreground-alt}
  330.  
  331. animation-charging-0 = 
  332. animation-charging-1 = 
  333. animation-charging-2 = 
  334. animation-charging-foreground = ${colors.foreground-alt}
  335. animation-charging-framerate = 750
  336.  
  337. [module/temperature]
  338. type = internal/temperature
  339. thermal-zone = 0
  340. warn-temperature = 80
  341.  
  342. format = <ramp> <label>
  343. format-underline = ${colors.background}
  344. format-warn = <ramp> <label-warn>
  345. format-warn-underline = ${self.format-underline}
  346.  
  347. label = %temperature%
  348. label-warn = %temperature%
  349. label-warn-foreground = ${colors.secondary}
  350.  
  351. ramp-0 = 
  352. ramp-1 = 
  353. ramp-2 = 
  354. ramp-foreground = ${colors.foreground-alt}
  355.  
  356. [module/powermenu]
  357. type = custom/menu
  358.  
  359. label-open = 
  360. label-open-foreground = ${colors.foreground-alt}
  361. label-close =  cancel
  362. label-close-foreground = ${colors.secondary}
  363. label-separator = |
  364. label-separator-foreground = ${colors.foreground-alt}
  365.  
  366. menu-0-0 = reboot
  367. menu-0-0-exec = menu-open-1
  368. menu-0-1 = power off
  369. menu-0-1-exec = menu-open-2
  370.  
  371. menu-1-0 = cancel
  372. menu-1-0-exec = menu-open-0
  373. menu-1-1 = reboot
  374. menu-1-1-exec = sudo reboot
  375. menu-2-0 = power off
  376. menu-2-0-exec = sudo poweroff
  377. menu-2-1 = cancel
  378. menu-2-1-exec = menu-open-0
  379.  
  380. [module/soun]
  381. type = custom/script
  382. interval = 1
  383. exec = /home/werdna/.sound_polybar.sh
  384.  
  385. [module/backl]
  386. type = custom/script
  387. exec = echo "%{F#555555}%{F-} $(xbacklight | grep -Eo '[0-9]+' | head -1)%"
  388. interval = 1
  389. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement