now getting the volume of the default sink, the actual connected device (headphone, speaker, ...)

This commit is contained in:
aminnairi
2023-05-27 18:24:50 +02:00
parent e345f442b3
commit 7cca20647f
+1 -1
View File
@@ -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()}`;