From eaa596816f39b0643d5f44de11e741fb028ba4f3 Mon Sep 17 00:00:00 2001 From: Willow Barraco Date: Wed, 27 Dec 2023 12:06:42 +0100 Subject: [PATCH] sxmo_hook_sms.sh: vibrate while noising --- configs/default_hooks/sxmo_hook_sms.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/default_hooks/sxmo_hook_sms.sh b/configs/default_hooks/sxmo_hook_sms.sh index 63417e3..87bb9c4 100755 --- a/configs/default_hooks/sxmo_hook_sms.sh +++ b/configs/default_hooks/sxmo_hook_sms.sh @@ -20,11 +20,13 @@ if ! sxmo_modemcall.sh list_active_calls | grep -q active; then if [ ! -f "$XDG_CONFIG_HOME"/sxmo/.noring ]; then - mpv --no-resume-playback --quiet --no-video "$SXMO_TEXTSOUND" >> /dev/null 2>&1 + mpv --no-resume-playback --quiet --no-video "$SXMO_TEXTSOUND" >> /dev/null 2>&1 & fi if [ ! -f "$XDG_CONFIG_HOME"/sxmo/.novibrate ]; then - sxmo_vibrate 500 "${SXMO_VIBRATE_STRENGTH:-1}" + sxmo_vibrate 500 "${SXMO_VIBRATE_STRENGTH:-1}" & fi + wait + fi