diff --git a/configs/default_hooks/sxmo_hook_lock.sh b/configs/default_hooks/pinephone-1.2pine64/sxmo_hook_lock.sh similarity index 100% rename from configs/default_hooks/sxmo_hook_lock.sh rename to configs/default_hooks/pinephone-1.2pine64/sxmo_hook_lock.sh diff --git a/configs/default_hooks/sxmo_hook_screenoff.sh b/configs/default_hooks/pinephone-1.2pine64/sxmo_hook_screenoff.sh similarity index 100% rename from configs/default_hooks/sxmo_hook_screenoff.sh rename to configs/default_hooks/pinephone-1.2pine64/sxmo_hook_screenoff.sh diff --git a/configs/default_hooks/sxmo_hook_unlock.sh b/configs/default_hooks/pinephone-1.2pine64/sxmo_hook_unlock.sh similarity index 100% rename from configs/default_hooks/sxmo_hook_unlock.sh rename to configs/default_hooks/pinephone-1.2pine64/sxmo_hook_unlock.sh diff --git a/configs/profile.d/sxmo_init.sh b/configs/profile.d/sxmo_init.sh index d92f39d..ac1d546 100644 --- a/configs/profile.d/sxmo_init.sh +++ b/configs/profile.d/sxmo_init.sh @@ -68,6 +68,7 @@ _sxmo_load_environments() { if [ -e /sys/firmware/devicetree/base/compatible ]; then device="$(cut -d ',' -f 2 < /sys/firmware/devicetree/base/compatible | tr -d '\0')" + export PATH="$XDG_CONFIG_HOME/sxmo/hooks/$device/:/usr/share/sxmo/default_hooks/$device/:$PATH" deviceprofile="$(which "sxmo_deviceprofile_$device.sh")" # shellcheck disable=SC1090 if [ -f "$deviceprofile" ]; then