Advertisement
fikriomar16

config (polybar)

Aug 6th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.33 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 = ${xrdb:color0:#222}
  12. background = #002f343f
  13. ;background = #aa2f343f
  14. background-alt = #5b4848
  15. foreground = #f5f8f6
  16. ;foreground = #dfdfdf
  17. foreground-alt = #e0d8d6
  18. primary = #e4bc87
  19. secondary = #cb6077
  20. alert = #e3788f
  21.  
  22. [bar/bar1]
  23. monitor = ${env:MONITOR:LVDS1}
  24. width = 100%
  25. height = 22
  26. ;offset-x = 1%
  27. ;offset-y = 1%
  28. radius = 0.0
  29. fixed-center = false
  30. bottom = true
  31.  
  32. background = ${colors.background}
  33. foreground = ${colors.foreground}
  34.  
  35. line-size = 2
  36. line-color = #cb6077
  37.  
  38. border-size = 0
  39. ;border-left-size = 25
  40. ;border-right-size = 25
  41. ;border-top-size = 25
  42. ;border-bottom-size = 0
  43. border-color = #00000000
  44.  
  45. padding-left = 3
  46. padding-right = 3
  47.  
  48. module-margin-left = 4
  49. module-margin-right = 4
  50.  
  51. font-0 = fontawesome:size=9;1
  52. font-1 = ShureTechMono Nerd Font:size=8;1
  53. #font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  54. font-2 = siji:pixelsize=9;1
  55.  
  56. ;modules-center = mpd
  57. modules-left = i3 xwindow
  58. ;modules-right = filesystem xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu
  59. modules-right = filesystem xbacklight volume xkeyboard memory cpu wlan eth battery temperature date
  60.  
  61. tray-position = right
  62. tray-padding = 2
  63. tray-maxsize = 14
  64. tray-transparent = true
  65. tray-background = #2f343f
  66.  
  67. ;wm-restack = bspwm
  68. ;wm-restack = i3
  69.  
  70. ;override-redirect = true
  71.  
  72. ;scroll-up = bspwm-desknext
  73. ;scroll-down = bspwm-deskprev
  74.  
  75. ;scroll-up = i3wm-wsnext
  76. ;scroll-down = i3wm-wsprev
  77.  
  78. [module/xwindow]
  79. type = internal/xwindow
  80. label = %title:0:30:...%
  81.  
  82. format-prefix = " "
  83. format-prefix-foreground = #cb6077
  84. format-underline = #cb6077
  85.  
  86. label-indicator-padding = 2
  87. label-indicator-margin = 1
  88. label-indicator-background = ${colors.secondary}
  89. label-indicator-underline = ${colors.secondary}
  90.  
  91. [module/xkeyboard]
  92. type = internal/xkeyboard
  93. blacklist-0 = num lock
  94.  
  95. format-prefix = " "
  96. format-prefix-foreground = #bec55b
  97. format-prefix-underline = #bec55b
  98.  
  99. label-layout = %layout%
  100. label-layout-underline = #bec55b
  101.  
  102. label-indicator-padding = 2
  103. label-indicator-margin = 1
  104. label-indicator-background = ${colors.secondary}
  105. label-indicator-underline = ${colors.secondary}
  106.  
  107. [module/filesystem]
  108. type = internal/fs
  109. interval = 30
  110.  
  111. mount-0 = /
  112.  
  113. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  114. label-unmounted = %mountpoint% not mounted
  115. label-unmounted-foreground = ${colors.foreground-alt}
  116. format-prefix = " "
  117.  
  118. [module/bspwm]
  119. type = internal/bspwm
  120.  
  121. label-focused = %index%
  122. label-focused-background = ${colors.background-alt}
  123. label-focused-underline= ${colors.primary}
  124. label-focused-padding = 2
  125.  
  126. label-occupied = %index%
  127. label-occupied-padding = 2
  128.  
  129. label-urgent = %index%!
  130. label-urgent-background = ${colors.alert}
  131. label-urgent-padding = 2
  132.  
  133. label-empty = %index%
  134. label-empty-foreground = ${colors.foreground-alt}
  135. label-empty-padding = 2
  136.  
  137. [module/i3]
  138. type = internal/i3
  139. format = <label-state> <label-mode>
  140. index-sort = true
  141. wrapping-scroll = false
  142.  
  143. ; Only show workspaces on the same output as the bar
  144. ;pin-workspaces = true
  145.  
  146. ws-icon-0 = 1;
  147. ws-icon-1 = 2;
  148. ws-icon-2 = 3;
  149. ws-icon-3 = 4;
  150. ws-icon-4 = 5;
  151. ws-icon-5 = 6;
  152. ws-icon-6 = 7;
  153. ws-icon-7 = 8;
  154. ws-icon-8 = 9;
  155. ws-icon-9 = 10;
  156. ws-icon-default = " "
  157.  
  158. label-mode-padding = 2
  159. label-mode-foreground = #2f343f
  160. label-mode-background = #cb6077
  161.  
  162. ; focused = Active workspace on focused monitor
  163. label-focused = %name% : %icon%
  164. label-focused-background = ${colors.background}
  165. label-focused-foreground = #e4bc87
  166. label-focused-underline = #e4bc87
  167. label-focused-padding = 3
  168.  
  169. ; unfocused = Inactive workspace on any monitor
  170. label-unfocused = %name% : %icon%
  171. label-unfocused-padding = 3
  172.  
  173. ; visible = Active workspace on unfocused monitor
  174. label-visible = %icon%
  175. label-visible-background = ${self.label-focused-background}
  176. label-visible-underline = ${self.label-focused-underline}
  177. label-visible-padding = 3
  178.  
  179. ; urgent = Workspace with urgency hint set
  180. label-urgent = %name%
  181. label-urgent-background = ${self.label-focused-background}
  182. label-urgent-foreground = #cb6077
  183. label-urgent-padding = 3
  184.  
  185. [module/mpd]
  186. type = internal/mpd
  187. ;format-online = "<label-song> <icon-prev> <icon-stop> <toggle> <icon-next>"
  188. ;format-online = " <label-song> <bar-progress>"
  189.  
  190. format-online = "<toggle> <label-song>"
  191.  
  192. icon-prev = 
  193. icon-stop = 
  194. ;icon-play = 
  195. ;icon-pause = 
  196. icon-pause = 
  197. icon-play = 
  198. icon-next = 
  199. label-song-maxlen = 40
  200. label-song-ellipsis = true
  201.  
  202. bar-progress-width = 20
  203. bar-progress-indicator = 
  204. bar-progress-fill = 
  205. bar-progress-empty = 
  206. bar-progress-fill-foreground = #f5f8f6
  207. bar-progress-indicator-foreground = #f5f8f6
  208.  
  209. [module/xbacklight]
  210. type = internal/xbacklight
  211.  
  212. format = <label> <bar>
  213. label = %percentage%%
  214.  
  215. bar-width = 10
  216. bar-indicator = ➤
  217. bar-indicator-foreground = #f5f8f6
  218. bar-indicator-font = 2
  219. bar-fill = ─
  220. bar-fill-font = 2
  221. bar-fill-foreground = #fcd49f
  222. bar-empty = ─
  223. bar-empty-font = 2
  224. bar-empty-foreground = ${colors.foreground-alt}
  225.  
  226. format-prefix = " "
  227. format-prefix-foreground = #fcd49f
  228. format-underline = #fcd49f
  229.  
  230. label-indicator-padding = 2
  231. label-indicator-margin = 1
  232. label-indicator-background = ${colors.secondary}
  233. label-indicator-underline = ${colors.secondary}
  234.  
  235. [module/backlight-acpi]
  236. inherit = module/xbacklight
  237. type = internal/backlight
  238. card = intel_backlight
  239.  
  240. [module/cpu]
  241. type = internal/cpu
  242. interval = 2
  243. ;format = <label> <ramp-coreload>
  244. format = <label>
  245. format-prefix = " "
  246. format-prefix-foreground = #cb6077
  247. format-underline = #cb6077
  248. label = %percentage%%
  249.  
  250. ramp-coreload-0 = %{F#cb6077}▁%{F-}
  251. ramp-coreload-1 = %{F#cb6077}▂%{F-}
  252. ramp-coreload-2 = %{F#cb6077}▃%{F-}
  253. ramp-coreload-3 = %{F#cb6077}▄%{F-}
  254. ramp-coreload-4 = %{F#cb6077}▅%{F-}
  255. ramp-coreload-5 = %{F#cb6077}▆%{F-}
  256. ramp-coreload-6 = %{F#cb6077}▇%{F-}
  257. ramp-coreload-7 = %{F#cb6077}█%{F-}
  258.  
  259. [module/memory]
  260. type = internal/memory
  261. interval = 2
  262. ;format = <label> <bar-used>
  263. format = <label>
  264. format-prefix = " "
  265. format-prefix-foreground = #bec55b
  266. format-underline = #bec55b
  267. label = %gb_used%
  268.  
  269. bar-used-indicator =
  270. bar-used-width = 10
  271. bar-used-foreground-0 = #bec55b
  272. bar-used-foreground-1 = #bec55b
  273. bar-used-foreground-2 = #bec55b
  274. bar-used-foreground-3 = #bec55b
  275. bar-used-fill = 
  276. bar-used-empty = 
  277. bar-used-empty-foreground = ${colors.foreground}
  278.  
  279. [module/wlan]
  280. type = internal/network
  281. interface = wlp2s0
  282. interval = 3.0
  283.  
  284. format-connected = <ramp-signal> <label-connected>
  285. format-connected-underline = #a89bb9
  286. label-connected = %essid%
  287.  
  288. format-disconnected =
  289. ;format-disconnected = <label-disconnected>
  290. ;format-disconnected-underline = ${self.format-connected-underline}
  291. ;label-disconnected = %ifname% disconnected
  292. ;label-disconnected-foreground = ${colors.foreground-alt}
  293.  
  294. ;ramp-signal-0 = ▁
  295. ;ramp-signal-1 = ▂
  296. ;ramp-signal-2 = ▃
  297. ;ramp-signal-3 = ▄
  298. ;ramp-signal-4 = ▅
  299. ;ramp-signal-5 = ▆
  300. ;ramp-signal-6 = ▇
  301. ;ramp-signal-7 = █
  302.  
  303. ramp-signal-0 = ▁
  304. ramp-signal-1 = 
  305. ramp-signal-2 = 
  306. ramp-signal-3 = 
  307. ramp-signal-4 = 
  308. ramp-signal-5 = 
  309. ramp-signal-6 = 
  310. ramp-signal-7 = 
  311.  
  312. ramp-signal-foreground = #a89bb9
  313.  
  314. [module/eth]
  315. type = internal/network
  316. interface = enp1s0
  317. interval = 3.0
  318.  
  319. format-connected-underline = #7bcdb4
  320. format-connected-prefix = " "
  321. format-connected-prefix-foreground = #7bcdb4
  322. label-connected = %local_ip%
  323.  
  324. format-disconnected =
  325. ;format-disconnected = <label-disconnected>
  326. ;format-disconnected-underline = ${self.format-connected-underline}
  327. ;label-disconnected = %ifname% disconnected
  328. ;label-disconnected-foreground = ${colors.foreground-alt}
  329.  
  330. [module/date]
  331. type = internal/date
  332. interval = 5
  333.  
  334. date = %a, %d %B
  335. date-alt = " %Y-%m-%d"
  336.  
  337. ;time = %H:%M
  338. time = | %H:%M
  339. time-alt = | %H:%M:%S
  340.  
  341. format-prefix = " "
  342. format-prefix-foreground = #8ab3d5
  343. format-underline = #8ab3d5
  344.  
  345. label = %date% %time%
  346.  
  347. [module/volume]
  348. type = internal/volume
  349.  
  350. label-volume-foreground = #bec55b
  351. format-volume =  <label-volume>
  352. format-muted-prefix = " "
  353. format-muted-foreground = ${colors.foreground}
  354. label-muted = muted
  355.  
  356. [module/battery]
  357. type = internal/battery
  358. battery = BAT0
  359. adapter = AC0
  360. full-at = 100
  361.  
  362. format-charging = <animation-charging> <label-charging>
  363. label-charging =  %percentage%%
  364. format-charging-underline = #a3c725
  365.  
  366. format-discharging = <ramp-capacity> <label-discharging>
  367. label-discharging =  %percentage%%
  368. format-discharging-underline = #c7ae25
  369.  
  370. format-full-prefix = " "
  371. format-full-prefix-foreground = #a3c725
  372. format-full-underline = #a3c725
  373.  
  374. ramp-capacity-0 = 
  375. ramp-capacity-1 = 
  376. ramp-capacity-2 = 
  377. ramp-capacity-3 = 
  378. ramp-capacity-4 = 
  379. ramp-capacity-foreground = #c7ae25
  380.  
  381. animation-charging-0 = 
  382. animation-charging-1 = 
  383. animation-charging-2 = 
  384. animation-charging-3 = 
  385. animation-charging-4 = 
  386. animation-charging-foreground = #a3c725
  387. animation-charging-framerate = 750
  388.  
  389. [module/temperature]
  390. type = internal/temperature
  391. thermal-zone = 0
  392. warn-temperature = 60
  393.  
  394. format = <ramp> <label>
  395. format-underline = #7bcdb4
  396. format-warn = <ramp> <label-warn>
  397. format-warn-underline = #7bcdb4
  398.  
  399. label = %temperature%
  400. ;label-warn =  %temperature%
  401. ;label-warn-foreground = #c7254f
  402.  
  403. ramp-0 = 
  404. ramp-1 = 
  405. ramp-2 = 
  406. ramp-3 = 
  407. ramp-4 = 
  408. ramp-foreground = #7bcdb4
  409.  
  410. [module/powermenu]
  411. type = custom/menu
  412.  
  413. format-spacing = 1
  414.  
  415. label-open = 
  416. label-open-foreground = ${colors.secondary}
  417. label-close =  close
  418. label-close-foreground = ${colors.secondary}
  419. label-separator = |
  420. label-separator-foreground = ${colors.foreground-alt}
  421.  
  422. menu-0-0 = reboot
  423. menu-0-0-exec = menu-open-1
  424. menu-0-1 = power off
  425. menu-0-1-exec = menu-open-2
  426.  
  427. menu-1-0 = cancel
  428. menu-1-0-exec = menu-open-0
  429. menu-1-1 = reboot
  430. menu-1-1-exec = sudo reboot
  431.  
  432. menu-2-0 = power off
  433. menu-2-0-exec = sudo poweroff
  434. menu-2-1 = cancel
  435. menu-2-1-exec = menu-open-0
  436.  
  437. [settings]
  438. screenchange-reload = true
  439. ;compositing-background = xor
  440. ;compositing-background = screen
  441. ;compositing-foreground = source
  442. ;compositing-border = over
  443.  
  444. [global/wm]
  445. margin-top = 0
  446. margin-bottom = 0
  447.  
  448. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement