fixed volume not showing correctly on the status bar

This commit is contained in:
aminnairi
2023-05-27 18:34:41 +02:00
parent 7cca20647f
commit 04cbf27288
+1 -1
View File
@@ -165,7 +165,7 @@ const getBrightness = async () => {
const getVolume = async () => { const getVolume = async () => {
return Promise.all([ return Promise.all([
execute("pactl get-sink-volume @DEFAULT_SINK@ | 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") execute("pactl get-sink-mute @DEFAULT_SINK@")
]).then(([volume, muted]) => { ]).then(([volume, muted]) => {
return `${muted.includes("no") ? "" : ""} ${volume.trim()}`; return `${muted.includes("no") ? "" : ""} ${volume.trim()}`;
}); });