From a71b1f50b8094a82eb4e7e13c7c1955c5406f159 Mon Sep 17 00:00:00 2001 From: Botspot Date: Fri, 9 Apr 2021 20:42:23 -0500 Subject: [PATCH] support multiple xlunch modes --- etc/setting-params/App List Style | 6 ++++-- preload | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/etc/setting-params/App List Style b/etc/setting-params/App List Style index 92947fc..22f8706 100644 --- a/etc/setting-params/App List Style +++ b/etc/setting-params/App List Style @@ -1,3 +1,5 @@ -#Pi-Apps may use a new dialog program for the app list in the future. To preview this feature now, switch to 'xlunch'. +#Pi-Apps can display the apps as a compact list (yad), or as a group of larger icons. (xlunch) yad -xlunch +xlunch-dark +xlunch-dark-3d +xlunch-light-3d diff --git a/preload b/preload index ec1fa9c..4efd90f 100755 --- a/preload +++ b/preload @@ -24,6 +24,8 @@ format="$1" if [ -z "$format" ];then format=yad +elif [[ "$format" = xlunch* ]];then + format=xlunch elif [ "$format" != 'yad' ] && [ "$format" != 'xlunch' ];then error "Unknown list format '$format'!" fi @@ -57,6 +59,7 @@ dir $dir $(stat -c %Y "${dir}/$(ls -t "$dir" | head -n1)")" format: $format number of files: $(ls -1q "${DIRECTORY}/apps"/* | wc -l) preload shasum: $(sha256sum "${DIRECTORY}/preload" | awk '{print $1}') +api shasum: $(sha256sum "${DIRECTORY}/api" | awk '{print $1}') structure shasum: $(shasum "${DIRECTORY}/data/categories/structure" | awk '{print $1}') ${timestamps:1}" }