diff --git a/scripts/core/sxmo_powerbutton.sh b/scripts/core/sxmo_powerbutton.sh new file mode 100755 index 0000000..5cec671 --- /dev/null +++ b/scripts/core/sxmo_powerbutton.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +# include common definitions +# shellcheck source=scripts/core/sxmo_common.sh +. "$(dirname "$0")/sxmo_common.sh" + +if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/powerbutton" ]; then + "$XDG_CONFIG_HOME/sxmo/hooks/powerbutton" "$@" +else + sxmo_keyboard.sh "$@" +fi