I am running Antergos with Gnome 3.18.2 on a Dell XPS 12 Convertible laptop/tablet, and am working on making the screen rotation more convenient.
I pulled a version of the following script from an Ubuntu forums post and modified it to match my display name, etc. Each line has the expected result when run on its own, but when I run the actual script, nothing happens - no errors, no screen rotation, nothing:
#!/bin/sh rotation='xrandr -q --verbose|grep eDP1|cut -b45-50' if [[ $rotation = "normal" ]] ; then xrandr -o right else xrandr -o normal fi
Any ideas as to why this is not working as expected?