From 7cca20647f16c2eac6597afd16e03cb6700a3137 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 27 May 2023 18:24:50 +0200 Subject: [PATCH] now getting the volume of the default sink, the actual connected device (headphone, speaker, ...) --- 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 010f831..a944bff 100644 --- a/i3/i3status/index.js +++ b/i3/i3status/index.js @@ -164,7 +164,7 @@ const getBrightness = async () => { const getVolume = async () => { return Promise.all([ - execute("pactl get-sink-volume 0 | grep 'Volume' | cut -d '/' -f 2"), + execute("pactl get-sink-volume @DEFAULT_SINK@ | grep 'Volume' | cut -d '/' -f 2"), execute("pactl get-sink-mute 0") ]).then(([volume, muted]) => { return `${muted.includes("no") ? "" : ""} ${volume.trim()}`;