From 9af2fd3fa2d2c0ad30e3b3c85e3b51e5fe48734c Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Thu, 10 Feb 2022 13:13:26 +0100 Subject: [PATCH] Move pinephone specific workflows in its own folder --- .../default_hooks/{ => pinephone-1.2pine64}/sxmo_hook_lock.sh | 0 .../{ => pinephone-1.2pine64}/sxmo_hook_screenoff.sh | 0 .../default_hooks/{ => pinephone-1.2pine64}/sxmo_hook_unlock.sh | 0 configs/profile.d/sxmo_init.sh | 1 + 4 files changed, 1 insertion(+) rename configs/default_hooks/{ => pinephone-1.2pine64}/sxmo_hook_lock.sh (100%) rename configs/default_hooks/{ => pinephone-1.2pine64}/sxmo_hook_screenoff.sh (100%) rename configs/default_hooks/{ => pinephone-1.2pine64}/sxmo_hook_unlock.sh (100%) 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