From 166c5a9f3c017ffa7c8588c2b002a299b46b870f Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 2 Sep 2021 14:36:26 +0200 Subject: [PATCH] Force use pulse with amixer to fix T490s issues --- arch-config/scripts/dunst-volume.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch-config/scripts/dunst-volume.sh b/arch-config/scripts/dunst-volume.sh index 8b60b4f6..55114f05 100755 --- a/arch-config/scripts/dunst-volume.sh +++ b/arch-config/scripts/dunst-volume.sh @@ -8,11 +8,11 @@ set -euo pipefail # $./dunst-volume.sh mute get_volume() { - amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1 + amixer -D pulse get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1 } is_mute() { - amixer get Master | grep '%' | grep -oE '[^ ]+$' | grep off > /dev/null + amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off > /dev/null } send_notification() {