Restore transmit state after unmute/deafen. Send proper notifications to other users.

This commit is contained in:
Storm Dragon
2026-09-06 01:04:10 -04:00
parent 97e0dc9281
commit 2b5fe91d6c
5 changed files with 276 additions and 16 deletions
+46 -6
View File
@@ -65,27 +65,67 @@ micup() {
}
mute() {
[[ $notify ]] && notify "You muted yourself."
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You muted yourself."
else
[[ $notify ]] && notify "$2 muted."
fi
}
unmute() {
[[ $notify ]] && notify "You unmuted yourself."
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You unmuted yourself."
else
[[ $notify ]] && notify "$2 unmuted."
fi
}
mutedeafen() {
[[ $notify ]] && notify "You muted and deafened yourself."
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You muted and deafened yourself."
else
[[ $notify ]] && notify "$2 muted and deafened."
fi
}
deafen() {
[[ $notify ]] && notify "You deafened yourself."
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You deafened yourself."
else
[[ $notify ]] && notify "$2 deafened."
fi
}
undeafen() {
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You undeafened yourself."
else
[[ $notify ]] && notify "$2 undeafened."
fi
}
muteundeafen() {
[[ $notify ]] && notify "You undeafened yourself. Your microphone remains muted."
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You undeafened yourself. Your microphone remains muted."
else
[[ $notify ]] && notify "$2 muted and undeafened."
fi
}
unmuteundeafen() {
[[ $notify ]] && notify "You unmuted and undeafened yourself."
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You unmuted and undeafened yourself."
else
[[ $notify ]] && notify "$2 unmuted and undeafened."
fi
}
unmutedeafen() {
if [[ "$2" == "me" ]]; then
[[ $notify ]] && notify "You unmuted and deafened yourself."
else
[[ $notify ]] && notify "$2 unmuted and deafened."
fi
}
msg() {