cutiepi-rotation-scripts/bin/screen-rotate-right

15 lines
359 B
Text
Raw Normal View History

2022-01-27 00:59:07 +01:00
#!/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;;
right) screen_set_vertical_inverted;;
normal) screen_set_horizontal_inverted;;
inverted) screen_set_horizontal;;
esac