mirror of
https://github.com/BlackLight/cutiepi-rotation-scripts.git
synced 2025-07-10 06:58:07 +02:00
Added files
This commit is contained in:
parent
ea31d3810f
commit
d92d98a4b8
6 changed files with 162 additions and 1 deletions
14
bin/screen-rotate-left
Executable file
14
bin/screen-rotate-left
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue