From 04cbf272885f330517b5a87ade4f47791232ef1e Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 27 May 2023 18:34:41 +0200 Subject: [PATCH] fixed volume not showing correctly on the status bar --- i3/i3status/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/i3status/index.js b/i3/i3status/index.js index a944bff..d914f8b 100644 --- a/i3/i3status/index.js +++ b/i3/i3status/index.js @@ -165,7 +165,7 @@ const getBrightness = async () => { const getVolume = async () => { return Promise.all([ execute("pactl get-sink-volume @DEFAULT_SINK@ | grep 'Volume' | cut -d '/' -f 2"), - execute("pactl get-sink-mute 0") + execute("pactl get-sink-mute @DEFAULT_SINK@") ]).then(([volume, muted]) => { return `${muted.includes("no") ? "" : ""} ${volume.trim()}`; });