Fix pulseaudio volume update event output for i3bar, fix error message on pulseaudio connection

This commit is contained in:
eleksir
2024-01-13 01:09:43 +03:00
parent 8c8dfcef46
commit 8d278a9c4a

View File

@@ -65,7 +65,7 @@ func UpdateVolumeInfo() {
} }
SoundVolume = fmt.Sprintf( SoundVolume = fmt.Sprintf(
"<span size='%s'>%s:%d%%", "<span size='%s'>%s</span>:%d%%",
Conf.SimpleVolumePa.FontSize, Conf.SimpleVolumePa.FontSize,
Conf.SimpleVolumePa.Symbol, Conf.SimpleVolumePa.Symbol,
int64(vol*100), int64(vol*100),
@@ -105,7 +105,7 @@ func PaReinit() error {
pa, err = p.NewClient() pa, err = p.NewClient()
if err != nil { if err != nil {
return fmt.Errorf("unable to make client connection to pulseaudio: %s", err) return fmt.Errorf("unable to make client connection to pulseaudio: %w", err)
} }
return err return err