~mil/sxmo-utils

36535ebfe30a505927fedec469759e9675c00a86 — Maarten van Gompel 8 months ago 325fdf7
added another layer between the power button press and the keyboard script, with option to override using a hook
1 files changed, 11 insertions(+), 0 deletions(-)

A scripts/core/sxmo_powerbutton.sh
A scripts/core/sxmo_powerbutton.sh => scripts/core/sxmo_powerbutton.sh +11 -0
@@ 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