diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-11-09 13:01:04 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-11-09 13:01:04 +0100 |
| commit | 1dde554c747511c94bbfaf56135c318eab4b3058 (patch) | |
| tree | e7a651495d9a4978faaffdcc1ba3f601c1b43edf /home/config/i3/bar/i3status.go | |
| parent | 76b8e173b10294577df4a36f25a0b85789b135c7 (diff) | |
correct volume display
Diffstat (limited to 'home/config/i3/bar/i3status.go')
| -rw-r--r-- | home/config/i3/bar/i3status.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/home/config/i3/bar/i3status.go b/home/config/i3/bar/i3status.go index 4627734..10f62d8 100644 --- a/home/config/i3/bar/i3status.go +++ b/home/config/i3/bar/i3status.go @@ -221,7 +221,7 @@ func main() { microphoneOffIcon := pango.Icon("mdi-microphone-off") microphoneIcon := pango.Icon("mdi-microphone") barista.Add(volume.New(pulseaudio.DefaultSource()).Output(func(v volume.Volume) bar.Output { - volume := v.Pct() / 10 // TODO: correct Pct implementation for sources + volume := v.Pct() // the value returned by the pulseaudio may be weird var icon *pango.Node if volume == 0 || v.Mute { icon = microphoneOffIcon |
