update keyboard mic-mute led using huawei-wmi driver

This commit is contained in:
2022-06-13 20:16:12 +03:00
parent 4b06e84051
commit 0fc2103cfe

View File

@@ -10,8 +10,12 @@ if [[ "$state" == "0" ]]; then
# mic is muted # mic is muted
pactl set-source-mute @DEFAULT_SOURCE@ 0 pactl set-source-mute @DEFAULT_SOURCE@ 0
dunstify -a "$appName" -u low -t 1000 -r "$id" "Actived microphone" "It's not muted now" dunstify -a "$appName" -u low -t 1000 -r "$id" "Actived microphone" "It's not muted now"
echo "0" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness
else else
# mic is not muted # mic is not muted
pactl set-source-mute @DEFAULT_SOURCE@ 1 pactl set-source-mute @DEFAULT_SOURCE@ 1
dunstify -a "$appName" -u low -t 1000 -r "$id" "Disabled microphone" "It's muted now" dunstify -a "$appName" -u low -t 1000 -r "$id" "Disabled microphone" "It's muted now"
echo "1" >/sys/devices/platform/huawei-wmi/leds/platform::micmute/brightness
fi fi