mirror of
https://github.com/BlackLight/cutiepi-rotation-scripts.git
synced 2024-11-24 04:35:11 +01:00
15 lines
359 B
Text
15 lines
359 B
Text
|
#!/bin/bash
|
||
|
|
||
|
script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||
|
source "$script_dir/cutiepi-screen-common"
|
||
|
|
||
|
cur_rotation=$(screen_rotation)
|
||
|
|
||
|
case "$cur_rotation" in
|
||
|
left) screen_set_vertical_inverted;;
|
||
|
right) screen_set_vertical;;
|
||
|
normal) screen_set_horizontal;;
|
||
|
inverted) screen_set_horizontal_inverted;;
|
||
|
esac
|
||
|
|