Polybar Status Bar

Status bar configuration and modules.

ini
[colors]
background = ${xrdb:background}
foreground = ${xrdb:foreground}
primary = ${xrdb:color2}
secondary = ${xrdb:color4}

[bar/main]
width = 100%
height = 22
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = "JetBrainsMono Nerd Font:style=Bold:pixelsize=10;2"

modules-left = i3
modules-center = date
modules-right = cpu memory volume battery

;; --- i3 Workspaces ---
[module/i3]
type = internal/i3
format = <label-state>
label-focused =  %name%
label-focused-background = ${colors.primary}
label-focused-padding = 1
label-unfocused =  %name%
label-unfocused-padding = 1

;; --- Date / Time ---
[module/date]
type = internal/date
interval = 1
date = " %a %d %b  %H:%M"
label = %date%

;; --- CPU ---
[module/cpu]
type = internal/cpu
interval = 2
format = <label>
label =  %percentage%%

;; --- Memory ---
[module/memory]
type = internal/memory
interval = 2
format = <label>
label =  %percentage_used%%
label-padding = 1

;; --- Volume ---
[module/volume]
type = internal/volume
format-volume = <label-volume>
label-volume =  %percentage%%
label-muted =  muted
label-padding = 2

;; --- Battery ---
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 98
format-charging =  %percentage%% Charging
format-discharging =  %percentage%%
format-full =  Full
# label-padding = 2