added another layer between the power button press and the keyboard script, with option to override using a hook

This commit is contained in:
Maarten van Gompel 2021-03-28 21:24:50 +02:00
parent 325fdf76ec
commit 36535ebfe3

View file

@ -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