dotfiles/config/bspwm/polybar/polybar (view raw)
| 1 | # vim: ft=dosini |
| 2 | [settings] |
| 3 | enable-ipc = true |
| 4 | format-padding = 1 |
| 5 | |
| 6 | [colors] |
| 7 | background = #262A2B |
| 8 | foreground = #cfd1dd |
| 9 | secondary = #008DCD |
| 10 | alert = #FF6C6B |
| 11 | empty = #383a42 |
| 12 | |
| 13 | ;[colors] ; Light |
| 14 | ;background = #f9f9f9 |
| 15 | ;foreground = #5b5b5f |
| 16 | ;secondary = #0098dd |
| 17 | ;alert = #df631c |
| 18 | ;empty = #a0a1a7 |
| 19 | |
| 20 | [bar/bar] |
| 21 | width = 100% |
| 22 | height = 24 |
| 23 | fixed-center = true |
| 24 | background = ${colors.background} |
| 25 | foreground = ${colors.foreground} |
| 26 | wm-restack = bspwm |
| 27 | font-0 = Iosevka Nerd Font:style=Medium:size=8;3 |
| 28 | font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 |
| 29 | modules-left = bspwm archupd |
| 30 | modules-center = time wifi-signal |
| 31 | modules-right = pulseaudio keyboard |
| 32 | tray-position = right |
| 33 | tray-padding = 0 |
| 34 | |
| 35 | [module/bspwm] |
| 36 | type = internal/bspwm |
| 37 | pin-workspaces = true |
| 38 | enable-click = true |
| 39 | fuzzy-match = true |
| 40 | enable-scroll = true |
| 41 | label-focused = |
| 42 | label-focused-foreground = ${colors.secondary} |
| 43 | label-focused-padding = 2 |
| 44 | label-occupied = |
| 45 | label-occupied-foreground = ${colors.foreground} |
| 46 | label-occupied-padding = 2 |
| 47 | label-urgent = |
| 48 | label-urgent-foreground = ${colors.alert} |
| 49 | label-urgent-padding = 2 |
| 50 | label-empty = |
| 51 | label-empty-foreground = ${colors.empty} |
| 52 | label-empty-padding = 2 |
| 53 | |
| 54 | [module/pulseaudio] |
| 55 | type = internal/pulseaudio |
| 56 | interval = 2 |
| 57 | format-volume = <ramp-volume> <label-volume> |
| 58 | label-volume = %percentage%% |
| 59 | label-volume-foreground = ${root.foreground} |
| 60 | label-muted = |
| 61 | ramp-volume-0 = |
| 62 | |
| 63 | [module/archupd] |
| 64 | type = custom/script |
| 65 | exec = ~/.config/bspwm/polybar/scripts/updates-pacman-aur.sh |
| 66 | click-left = kitty -e ~/bin/arch-upd |
| 67 | interval = 60 |
| 68 | |
| 69 | [module/wifi-signal] |
| 70 | type = custom/script |
| 71 | label = %output:%% |
| 72 | exec = ~/.config/bspwm/polybar/scripts/wifi-signal.sh |
| 73 | interval = 3 |
| 74 | |
| 75 | [module/keyboard] |
| 76 | type = internal/xkeyboard |
| 77 | label-layout = %layout% |
| 78 | blacklist-0 = num lock |
| 79 | blacklist-1 = scroll lock |
| 80 | blacklist-2= caps lock |
| 81 | |
| 82 | [module/date] |
| 83 | type = internal/date |
| 84 | interval = 600 |
| 85 | date = %d.%m |
| 86 | label = %date% |
| 87 | |
| 88 | [module/time] |
| 89 | type = internal/date |
| 90 | time = %H:%M |
| 91 | label = %time% |