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