added another layer between the power button press and the keyboard script, with option to override using a hook
This commit is contained in:
parent
325fdf76ec
commit
36535ebfe3
1 changed files with 11 additions and 0 deletions
11
scripts/core/sxmo_powerbutton.sh
Executable file
11
scripts/core/sxmo_powerbutton.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue