mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 00:59:44 +01:00
da92360208
Polybar's config format is a bit strange, and lists in particular are annoying to handle. This enables using normal nix lists and nested attrsets instead. This change is not backwards-compatible, because the INI converter converts lists of strings to space-separated values, and this does something else. I expect that this is only relevant for the `modules-left` etc bar setting, but that's enough to break things :(.
32 lines
548 B
Text
32 lines
548 B
Text
[bar/top]
|
|
height=3%
|
|
modules-center=date
|
|
monitor=${env:MONITOR:eDP1}
|
|
radius=0
|
|
width=100%
|
|
|
|
[module/date]
|
|
date=%d.%m.%y
|
|
internal=5
|
|
label=%time% %date%
|
|
time=%H:%M
|
|
type=internal/date
|
|
|
|
[module/volume]
|
|
click-right=pavucontrol &
|
|
format-volume=<ramp-volume> <label-volume>
|
|
label-muted=🔇
|
|
label-muted-foreground=#666
|
|
ramp-volume-0=🔈
|
|
ramp-volume-1=🔉
|
|
ramp-volume-2=🔊
|
|
type=internal/pulseaudio
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 5
|
|
date = "%d.%m.%y"
|
|
time = %H:%M
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %time% %date%
|
|
|