9 lines
370 B
Bash
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
|