Advertisement
Guest User

Polybar config

a guest
Dec 5th, 2022
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.55 KB | None | 0 0
  1. [colors]
  2. background = #66000000
  3. background-alt = #660f0f0f
  4. foreground = #dfdfdf
  5. foreground-alt = #555
  6. primary = #ffb52a
  7. secondary = #e60053
  8. alert = #bd2c40
  9.  
  10. [bar/example]
  11. ;monitor = ${env:MONITOR:HDMI-1}
  12. width = 100%
  13. height = 23
  14. ;offset-x = 1%
  15. ;offset-y = 1%
  16. radius = 0.0
  17. fixed-center = true
  18.  
  19. background = ${colors.background}
  20. foreground = ${colors.foreground}
  21.  
  22. line-size = 0
  23. line-color = #f00
  24.  
  25. border-size = 0
  26. border-color = #00000000
  27.  
  28. padding-left = 0
  29. padding-right = 2
  30.  
  31. module-margin-left = 1
  32. module-margin-right = 2
  33.  
  34. font-0 = fixed:pixelsize=10;1
  35. font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  36. font-2 = siji:pixelsize=10;1
  37. font-3 = FontAwesome:pixelsize=14
  38.  
  39. modules-left = i3
  40. modules-center = wallpaper date wallpaper
  41. modules-right = weather battery powermenu
  42.  
  43. tray-position = right
  44. tray-padding = 2
  45. ;tray-background = #0063ff
  46.  
  47. ;wm-restack = bspwm
  48. ;wm-restack = i3
  49.  
  50. ;override-redirect = true
  51.  
  52. ;scroll-up = bspwm-desknext
  53. ;scroll-down = bspwm-deskprev
  54.  
  55. ;scroll-up = i3wm-wsnext
  56. ;scroll-down = i3wm-wsprev
  57.  
  58. cursor-click = pointer
  59. cursor-scroll = ns-resize
  60.  
  61. [module/xwindow]
  62. type = internal/xwindow
  63. label = %title:0:30:...%
  64.  
  65. [module/xkeyboard]
  66. type = internal/xkeyboard
  67. blacklist-0 = num lock
  68.  
  69. format-prefix = " "
  70. format-prefix-foreground = ${colors.foreground-alt}
  71. format-prefix-underline = ${colors.secondary}
  72.  
  73. label-layout = %layout%
  74. label-layout-underline = ${colors.secondary}
  75.  
  76. label-indicator-padding = 2
  77. label-indicator-margin = 1
  78. label-indicator-background = ${colors.secondary}
  79. label-indicator-underline = ${colors.secondary}
  80.  
  81. [module/filesystem]
  82. type = internal/fs
  83. interval = 25
  84.  
  85. mount-0 = /
  86.  
  87. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  88. label-unmounted = %mountpoint% not mounted
  89. label-unmounted-foreground = ${colors.foreground-alt}
  90.  
  91. [module/bspwm]
  92. type = internal/bspwm
  93.  
  94. label-focused = %index%
  95. label-focused-background = ${colors.background-alt}
  96. label-focused-underline= ${colors.primary}
  97. label-focused-padding = 2
  98.  
  99. label-occupied = %index%
  100. label-occupied-padding = 2
  101.  
  102. label-urgent = %index%!
  103. label-urgent-background = ${colors.alert}
  104. label-urgent-padding = 2
  105.  
  106. label-empty = %index%
  107. label-empty-foreground = ${colors.foreground-alt}
  108. label-empty-padding = 2
  109.  
  110. ; Separator in between workspaces
  111. ; label-separator = |
  112.  
  113. [module/i3]
  114. type = internal/i3
  115. format = <label-state> <label-mode>
  116. index-sort = true
  117. wrapping-scroll = false
  118.  
  119. ; Only show workspaces on the same output as the bar
  120. ;pin-workspaces = true
  121.  
  122. label-mode-padding = 2
  123. label-mode-foreground = #000
  124. label-mode-background = ${colors.primary}
  125.  
  126. ; focused = Active workspace on focused monitor
  127. label-focused = %index%
  128. label-focused-background = ${colors.background-alt}
  129. label-focused-underline= ${colors.primary}
  130. label-focused-padding = 2
  131.  
  132. ; unfocused = Inactive workspace on any monitor
  133. label-unfocused = %index%
  134. label-unfocused-padding = 2
  135.  
  136. ; visible = Active workspace on unfocused monitor
  137. label-visible = %index%
  138. label-visible-background = ${self.label-focused-background}
  139. label-visible-underline = ${self.label-focused-underline}
  140. label-visible-padding = ${self.label-focused-padding}
  141.  
  142. ; urgent = Workspace with urgency hint set
  143. label-urgent = %index%
  144. label-urgent-background = ${colors.alert}
  145. label-urgent-padding = 2
  146.  
  147. ; Separator in between workspaces
  148. ; label-separator = |
  149.  
  150.  
  151. [module/mpd]
  152. type = internal/mpd
  153. format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
  154.  
  155. icon-prev = 
  156. icon-stop = 
  157. icon-play = 
  158. icon-pause = 
  159. icon-next = 
  160.  
  161. label-song-maxlen = 25
  162. label-song-ellipsis = true
  163.  
  164. [module/xbacklight]
  165. type = internal/xbacklight
  166.  
  167. format = <label> <bar>
  168. label = BL
  169.  
  170. bar-width = 10
  171. bar-indicator = |
  172. bar-indicator-foreground = #fff
  173. bar-indicator-font = 2
  174. bar-fill = ─
  175. bar-fill-font = 2
  176. bar-fill-foreground = #9f78e1
  177. bar-empty = ─
  178. bar-empty-font = 2
  179. bar-empty-foreground = ${colors.foreground-alt}
  180.  
  181. [module/backlight-acpi]
  182. inherit = module/xbacklight
  183. type = internal/backlight
  184. card = intel_backlight
  185.  
  186. [module/cpu]
  187. type = internal/cpu
  188. interval = 2
  189. format-prefix = " "
  190. format-prefix-foreground = ${colors.foreground-alt}
  191. format-underline = #f90000
  192. label = %percentage:2%%
  193.  
  194. [module/memory]
  195. type = internal/memory
  196. interval = 2
  197. format-prefix = " "
  198. format-prefix-foreground = ${colors.foreground-alt}
  199. format-underline = #4bffdc
  200. label = %percentage_used%%
  201.  
  202. [module/wlan]
  203. type = internal/network
  204. interface = wlo1
  205. interval = 3.0
  206.  
  207. format-connected = <ramp-signal> <label-connected>
  208. format-connected-underline = #9f78e1
  209. label-connected = %essid%
  210.  
  211. format-disconnected =
  212. ;format-disconnected = <label-disconnected>
  213. ;format-disconnected-underline = ${self.format-connected-underline}
  214. ;label-disconnected = %ifname% disconnected
  215. ;label-disconnected-foreground = ${colors.foreground-alt}
  216.  
  217. ramp-signal-0 = 
  218. ramp-signal-1 = 
  219. ramp-signal-2 = 
  220. ramp-signal-3 = 
  221. ramp-signal-4 = 
  222. ramp-signal-foreground = ${colors.foreground-alt}
  223.  
  224. [module/eth]
  225. type = internal/network
  226. interface = eno1
  227. interval = 3.0
  228.  
  229. format-connected-underline = #55aa55
  230. format-connected-prefix = " "
  231. format-connected-prefix-foreground = ${colors.foreground-alt}
  232. label-connected = %local_ip%
  233.  
  234. format-disconnected =
  235. ;format-disconnected = <label-disconnected>
  236. ;format-disconnected-underline = ${self.format-connected-underline}
  237. ;label-disconnected = %ifname% disconnected
  238. ;label-disconnected-foreground = ${colors.foreground-alt}
  239.  
  240. [module/date]
  241. type = internal/date
  242. interval = 1
  243.  
  244. date = %a
  245. time = %l:%M %P
  246. label = %date% %time%
  247.  
  248. format-prefix-foreground = ${colors.foreground-alt}
  249.  
  250. [module/pulseaudio]
  251. type = internal/pulseaudio
  252.  
  253. format-volume = <label-volume> <bar-volume>
  254. label-volume = VOL %percentage%%
  255. label-volume-foreground = ${root.foreground}
  256.  
  257. label-muted = 🔇 muted
  258. label-muted-foreground = #666
  259.  
  260. bar-volume-width = 10
  261. bar-volume-foreground-0 = #55aa55
  262. bar-volume-foreground-1 = #55aa55
  263. bar-volume-foreground-2 = #55aa55
  264. bar-volume-foreground-3 = #55aa55
  265. bar-volume-foreground-4 = #55aa55
  266. bar-volume-foreground-5 = #f5a70a
  267. bar-volume-foreground-6 = #ff5555
  268. bar-volume-gradient = false
  269. bar-volume-indicator = |
  270. bar-volume-indicator-font = 2
  271. bar-volume-fill = ─
  272. bar-volume-fill-font = 2
  273. bar-volume-empty = ─
  274. bar-volume-empty-font = 2
  275. bar-volume-empty-foreground = ${colors.foreground-alt}
  276.  
  277. [module/alsa]
  278. type = internal/alsa
  279.  
  280. format-volume = <label-volume> <bar-volume>
  281. label-volume = VOL
  282. label-volume-foreground = ${root.foreground}
  283.  
  284. format-muted-prefix = " "
  285. format-muted-foreground = ${colors.foreground-alt}
  286. label-muted = sound muted
  287.  
  288. bar-volume-width = 10
  289. bar-volume-foreground-0 = #55aa55
  290. bar-volume-foreground-1 = #55aa55
  291. bar-volume-foreground-2 = #55aa55
  292. bar-volume-foreground-3 = #55aa55
  293. bar-volume-foreground-4 = #55aa55
  294. bar-volume-foreground-5 = #f5a70a
  295. bar-volume-foreground-6 = #ff5555
  296. bar-volume-gradient = false
  297. bar-volume-indicator = |
  298. bar-volume-indicator-font = 2
  299. bar-volume-fill = ─
  300. bar-volume-fill-font = 2
  301. bar-volume-empty = ─
  302. bar-volume-empty-font = 2
  303. bar-volume-empty-foreground = ${colors.foreground-alt}
  304.  
  305. [module/battery]
  306. type = internal/battery
  307. battery = BAT0
  308. adapter = AC
  309. full-at = 98
  310.  
  311. format-charging = <label-charging>
  312. format-charging-underline = #ffb52a
  313.  
  314. format-discharging = <label-discharging>
  315. format-discharging-underline = ${self.format-charging-underline}
  316.  
  317. format-full-prefix = " "
  318. format-full-prefix-foreground = ${colors.foreground-alt}
  319. format-full-underline = ${self.format-charging-underline}
  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. animation-discharging-0 = 
  333. animation-discharging-1 = 
  334. animation-discharging-2 = 
  335. animation-discharging-foreground = ${colors.foreground-alt}
  336. animation-discharging-framerate = 750
  337.  
  338. [module/temperature]
  339. type = internal/temperature
  340. thermal-zone = 0
  341. warn-temperature = 60
  342.  
  343. format = <ramp> <label>
  344. format-underline = #f50a4d
  345. format-warn = <ramp> <label-warn>
  346. format-warn-underline = ${self.format-underline}
  347.  
  348. label = %temperature-c%
  349. label-warn = %temperature-c%
  350. label-warn-foreground = ${colors.secondary}
  351.  
  352. ramp-0 = 
  353. ramp-1 = 
  354. ramp-2 = 
  355. ramp-foreground = ${colors.foreground-alt}
  356.  
  357. [module/powermenu]
  358. type = custom/menu
  359.  
  360. expand-right = true
  361.  
  362. format-spacing = 1
  363.  
  364. label-open = 
  365. label-open-foreground = ${colors.secondary}
  366. label-close =  cancel
  367. label-close-foreground = ${colors.secondary}
  368. label-separator = |
  369. label-separator-foreground = ${colors.foreground-alt}
  370.  
  371. menu-0-0 = reboot
  372. menu-0-0-exec = menu-open-1
  373. menu-0-1 = power off
  374. menu-0-1-exec = menu-open-2
  375.  
  376. menu-1-0 = cancel
  377. menu-1-0-exec = menu-open-0
  378. menu-1-1 = reboot
  379. menu-1-1-exec = sudo reboot
  380.  
  381. menu-2-0 = power off
  382. menu-2-0-exec = sudo poweroff
  383. menu-2-1 = cancel
  384. menu-2-1-exec = menu-open-0
  385.  
  386. [module/wallpaper]
  387. type = custom/script
  388. exec = echo ">>"
  389. click-left = feh -z --bg-fill /home/rajan/.local/share/wallhaven
  390.  
  391. [module/weather]
  392. type = custom/script
  393. interval = 10
  394. format = <label>
  395. format-prefix = " "
  396. format-prefix-foreground = #3EC13F
  397. format-underline = #3EC13F
  398. format-foreground = ${colors.foreground}
  399. format-background = ${colors.background}
  400. exec = ~/.config/polybar/scripts/weather.sh
  401. tail = true
  402.  
  403. [module/corona]
  404. type = custom/script
  405. interval = 3600
  406. format = <label>
  407. format-prefix = " "
  408. exec = python ~/.config/polybar/scripts/coronaWedget.py nepal
  409.  
  410. [settings]
  411. screenchange-reload = true
  412. ;compositing-background = xor
  413. ;compositing-background = screen
  414. ;compositing-foreground = source
  415. ;compositing-border = over
  416. ;pseudo-transparency = false
  417.  
  418. [global/wm]
  419. margin-top = 5
  420. margin-bottom = 5
  421.  
  422. ; vim:ft=dosini
  423. bottom = true
  424.  
  425. [module/1]
  426. type = custom/script
  427. exec = echo "1"
  428. click-left = "xdotool key --clearmodifiers Super_L+1"
  429. [module/2]
  430. type = custom/script
  431. exec = echo "2"
  432. click-left = "xdotool key --clearmodifiers Super_L+2"
  433. [module/3]
  434. type = custom/script
  435. exec = echo "3"
  436. click-left = "xdotool key --clearmodifiers Super_L+3"
  437. [module/4]
  438. type = custom/script
  439. exec = echo "4"
  440. click-left = "xdotool key --clearmodifiers Super_L+4"
  441. [module/5]
  442. type = custom/script
  443. exec = echo "5"
  444. click-left = "xdotool key --clearmodifiers Super_L+5"
  445. [module/6]
  446. type = custom/script
  447. exec = echo "6"
  448. click-left = "xdotool key --clearmodifiers Super_L+6"
  449. [module/7]
  450. type = custom/script
  451. exec = echo "7"
  452. click-left = "xdotool key --clearmodifiers Super_L+7"
  453. [module/8]
  454. type = custom/script
  455. exec = echo ""
  456. click-left = "xdotool key --clearmodifiers Super_L+8"
  457. [module/9]
  458. type = custom/script
  459. exec = echo ""
  460. click-left = "xdotool key --clearmodifiers Super_L+9"
  461.  
  462. [module/arch-updates]
  463. type = custom/script
  464. exec = ~/.config/polybar/scripts/check-arch-updates.sh
  465. interval = 1000
  466. label = Arch: %output%
  467. format-foreground = ${colors.foreground}
  468. format-background = ${colors.background}
  469. format-prefix = "  "
  470. format-prefix-foreground = #FFBB00
  471. format-underline = #FFBB00
  472.  
  473. [module/aur-updates]
  474. type = custom/script
  475. exec = ~/.config/polybar/scripts/check-aur-updates.sh
  476. interval = 1000
  477. label = Aur: %output%
  478. format-foreground = ${colors.foreground}
  479. format-background = ${colors.background}
  480. format-prefix = "  "
  481. format-prefix-foreground = #FFBB00
  482. format-underline = #FFBB00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement