Untitled
public text v1 · immutable#!/bin/bash
orient=$(xrandr -q --verbose | awk 'NR==2{print $5}') #;echo $var
if ["$orient" = "normal"]; then
xrandr -o right
elif ["$orient" = "right"]; then
xrandr -o inverted
elif ["$orient" = "inverted"]; then
xrandr -o left
elif ["$orient" = "left"]; then
xrandr -o normal
fi