Force use pulse with amixer to fix T490s issues

This commit is contained in:
RealStickman 2021-09-02 14:36:26 +02:00
parent 8b300efa74
commit 166c5a9f3c

View File

@ -8,11 +8,11 @@ set -euo pipefail
# $./dunst-volume.sh mute # $./dunst-volume.sh mute
get_volume() { 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() { 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() { send_notification() {