sxmo-utils/configs/default_hooks/presuspend
Maarten van Gompel b3bbf23e90 kill mpv playback in default presuspend hook
This is an attempt to fix prevent audio stuttering problems when
entering/leaving crust

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-29 21:58:50 +02:00

12 lines
305 B
Bash

#!/usr/bin/env sh
# This script is called prior to suspending
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(which sxmo_common.sh)"
pkill -STOP conky
pkill clickclack
pkill -f "$KEYBOARD"
pkill mpv #if any audio/video is playing, kill it (it might stutter otherwise)