Files
os/image/mkosi.extra/usr/bin/sf-launcher-start
2026-10-24 09:06:06 +02:00

9 lines
370 B
Bash

#!/bin/sh
# Runs inside cage: apply the output mode, then start the launcher.
if [ -n "${SMARTFOX_MODE:-}" ]; then
OUT=$(wlr-randr | awk 'NR==1 {print $1}')
wlr-randr --output "$OUT" --custom-mode "$SMARTFOX_MODE" ||
echo "sf-launcher-start: could not set $SMARTFOX_MODE on $OUT"
fi
exec /usr/bin/sf-launcher --fullscreen --apps /usr/share/smartfox/apps