From 38d9442c7d23edb2d2232239439beea6e1ec0f91 Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Sat, 17 Sep 2022 20:42:50 +1200 Subject: [PATCH] Set neko default screen size based on current configured screen size --- overlay/etc/cont-init.d/90-configure_neko.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overlay/etc/cont-init.d/90-configure_neko.sh b/overlay/etc/cont-init.d/90-configure_neko.sh index 6549d70..4df1583 100644 --- a/overlay/etc/cont-init.d/90-configure_neko.sh +++ b/overlay/etc/cont-init.d/90-configure_neko.sh @@ -33,6 +33,10 @@ if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then # export NEKO_H264="true" # fi # fi + + # Configure screen size if it is not already set + if [[ -z ${NEKO_SCREEN} ]]; then + export NEKO_SCREEN="${DISPLAY_SIZEW}x${DISPLAY_SIZEH}@${DISPLAY_REFRESH}" fi else echo "Disable Neko server"