mirror of
https://github.com/karl0ss/AnotterKiosk.git
synced 2025-04-28 18:43:41 +01:00
Update autostart
Add condition to rotate screen if enabled in kioskbrowser.ini
This commit is contained in:
parent
6a159135ac
commit
cf6fcef28a
@ -34,6 +34,14 @@ then
|
|||||||
xrandr --output "${MONITOR}" --mode "custom"
|
xrandr --output "${MONITOR}" --mode "custom"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set a screen rotation (if specified)
|
||||||
|
ROTATE_SCREEN=$(get-ini /boot/kioskbrowser.ini screen rotate_screen)
|
||||||
|
if [ -n "${ROTATE_SCREEN}" ]
|
||||||
|
then
|
||||||
|
MONITOR=$(xrandr -q | grep " connected" | awk '{ print $1; }')
|
||||||
|
xrandr --output "${MONITOR}" --rotate ${ROTATE_SCREEN}
|
||||||
|
fi
|
||||||
|
|
||||||
# start chromium
|
# start chromium
|
||||||
URL=$(get-ini /boot/kioskbrowser.ini browser url)
|
URL=$(get-ini /boot/kioskbrowser.ini browser url)
|
||||||
chromium --start-fullscreen \
|
chromium --start-fullscreen \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user