Force use pulse with amixer to fix T490s issues
This commit is contained in:
parent
8b300efa74
commit
166c5a9f3c
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user