This commit is contained in:
2026-03-22 16:18:26 +01:00
parent 0b54e2680d
commit 76cd1ce5b6
2 changed files with 3 additions and 20 deletions

2
Jenkinsfile vendored
View File

@@ -130,8 +130,6 @@ pipeline {
cp -R /usr/share/live-helper/templates/* config/templates/ cp -R /usr/share/live-helper/templates/* config/templates/
sed -i \ sed -i \
-e 's|^menu vshift.*|menu vshift 0|' \
-e 's|^menu hshift.*|menu hshift 0|' \
-e 's|^menu width.*|menu width 60|' \ -e 's|^menu width.*|menu width 60|' \
-e 's|^menu color sel.*|menu color sel * #ff82c059 #c01f1f1f none|' \ -e 's|^menu color sel.*|menu color sel * #ff82c059 #c01f1f1f none|' \
-e 's|^menu color unsel.*|menu color unsel * #8082c059 #c01f1f1f none|' \ -e 's|^menu color unsel.*|menu color unsel * #8082c059 #c01f1f1f none|' \

View File

@@ -11,22 +11,7 @@ case "$MODE" in
;; ;;
esac esac
# Old xrandr first : "${DISPLAY:=:0}"
if command -v xrandr >/dev/null 2>&1; then export DISPLAY
if xrandr -s "$MODE" >/dev/null 2>&1; then
exit 0
fi
if xrandr --size "$MODE" >/dev/null 2>&1; then exec xrandr -s "$MODE"
exit 0
fi
# Try single connected output if newer syntax is available
OUT="$(xrandr 2>/dev/null | awk '/ connected/{print $1; exit}')"
if [ -n "${OUT:-}" ] && xrandr --output "$OUT" --mode "$MODE" >/dev/null 2>&1; then
exit 0
fi
fi
echo "Failed to switch resolution to $MODE" >&2
exit 1