services.polybar.settings

Home-Manager option

attribute set of attribute sets

Polybar configuration. This takes a nix attrset and converts it to the strange data format that polybar uses. Each entry will be converted to a section in the output file. Several things are treated specially: nested keys are converted to dash-separated keys; the special text key is ignored as a nested key, to allow mixing different levels of nesting; and lists are converted to polybar's foo-0, foo-1, ... format. For example: "module/volume" = { type = "internal/pulseaudio"; format.volume = "<ramp-volume> <label-volume>"; label.muted.text = "πŸ”‡"; label.muted.foreground = "#666"; ramp.volume = ["πŸ”ˆ" "πŸ”‰" "πŸ”Š"]; click.right = "pavucontrol &"; } becomes: [module/volume] type=internal/pulseaudio format-volume=<ramp-volume> <label-volume> label-muted=πŸ”‡ label-muted-foreground=#666 ramp-volume-0=πŸ”ˆ ramp-volume-1=πŸ”‰ ramp-volume-2=πŸ”Š click-right=pavucontrol &

type: attribute set of attribute sets
Default
{ }
Example
{ "module/volume" = { type = "internal/pulseaudio"; format.volume = "<ramp-volume> <label-volume>"; label.muted.text = "πŸ”‡"; label.muted.foreground = "#666"; ramp.volume = ["πŸ”ˆ" "πŸ”‰" "πŸ”Š"]; click.right = "pavucontrol &"; }; }
declared in: <home-manager/modules/services/polybar.nix>source unavailable