support multiple xlunch modes

pull/569/head
Botspot 3 years ago
parent f974daeee3
commit a71b1f50b8

@ -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

@ -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}"
}

Loading…
Cancel
Save