From 15aefe285742845f6ac07cdc54968f0f136250a7 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Mon, 10 Aug 2020 22:47:32 +0200 Subject: [PATCH] added mute and unmute --- scripts/core/sxmo_vol.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/core/sxmo_vol.sh b/scripts/core/sxmo_vol.sh index 3652728..89634d6 100755 --- a/scripts/core/sxmo_vol.sh +++ b/scripts/core/sxmo_vol.sh @@ -22,5 +22,13 @@ down() { setvol() { amixer set "$(sxmo_audiocurrentdevice.sh)" "$1" } +mute() { + amixer set "$(sxmo_audiocurrentdevice.sh)" mute + notify +} +unmute() { + amixer set "$(sxmo_audiocurrentdevice.sh)" unmute + notify +} "$@"