mirror of
https://github.com/karl0ss/AnotterKiosk.git
synced 2025-04-28 18:43:41 +01:00
Merge pull request #14 from karl0ss/add_screen_rotation
Add screen rotation
This commit is contained in:
commit
1c702f90e4
@ -7,6 +7,8 @@ hostname = "kioskpi"
|
||||
;force_resolution = "1920x1080"
|
||||
; force a custom modelines (for specialty diplays like embedded monitors, car screens, etc.)
|
||||
;custom_modeline = "40.141 1024 1032 1064 1104 600 604 612 618 +HSync -VSync"
|
||||
; set screen rotation to be used (normal, left, right, inverted)
|
||||
;rotate_screen = "normal"
|
||||
|
||||
[wifi]
|
||||
; If you need more complex WiFi settings (like WPA2-Enterprise, hidden SSIDs, etc.)
|
||||
|
@ -34,6 +34,14 @@ then
|
||||
xrandr --output "${MONITOR}" --mode "custom"
|
||||
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
|
||||
URL=$(get-ini /boot/kioskbrowser.ini browser url)
|
||||
chromium --start-fullscreen \
|
||||
|
Loading…
x
Reference in New Issue
Block a user