Skip to content

Commit

Permalink
changed execution path because otherwise this would not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Leon Happel committed Nov 7, 2021
1 parent dbee083 commit f5131de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoscreenrotation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ function processnewcommand {
case $1 in
"Accelerometer orientation changed: normal")
echo "screen rotated to normal"
./screenrotation.sh "normal"
screenrotation.sh "normal"
;;
"Accelerometer orientation changed: bottom-up")
echo "screen rotated to inverted"
./screenrotation.sh "inverted"
screenrotation.sh "inverted"
;;
"Accelerometer orientation changed: left-up")
echo "screen rotated to left"
./screenrotation.sh "left"
screenrotation.sh "left"
;;
"Accelerometer orientation changed: right-up")
echo "screen rotated to right"
./screenrotation.sh "right"
screenrotation.sh "right"
;;
esac
}
Expand Down

0 comments on commit f5131de

Please sign in to comment.