16 lines
384 B
Bash
Executable file
16 lines
384 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
# This script is called prior to suspending
|
|
|
|
# include common definitions
|
|
# shellcheck source=scripts/core/sxmo_common.sh
|
|
. "$(dirname "$0")/sxmo_common.sh"
|
|
|
|
pkill -STOP conky
|
|
|
|
# If this script returns a non-zero exit code, suspension will be cancelled
|
|
|
|
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/presuspend" ]; then
|
|
"$XDG_CONFIG_HOME/sxmo/hooks/presuspend"
|
|
exit $?
|
|
fi
|