From 415840b77e3cd94687999b5a58f44b1533ac4e97 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Tue, 10 Nov 2020 11:44:47 +0000 Subject: [PATCH] Catch common errors in hyperpixel4-rotate --- dist/hyperpixel4-rotate | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dist/hyperpixel4-rotate b/dist/hyperpixel4-rotate index 51a20be..eaa80ce 100755 --- a/dist/hyperpixel4-rotate +++ b/dist/hyperpixel4-rotate @@ -15,7 +15,6 @@ function set_matrix { function set_display { printf "Rotating display\n"; - xrandr --output DSI-1 --rotate $1 sudo python2 - <\n" + exit 0 +fi + if [ "$ORIENTATION" == "right" ]; then set_display $ORIENTATION set_matrix 0 1 0 -1 0 1