Update rotate.sh

This commit is contained in:
justin authored and GitHub committed 2023-07-24 13:52:10 -07:00
1 parent 526efc2255
commit 92d9e3fa1a
1 file changed
+5 -4
+5 -4
View File
@@ -1,7 +1,8 @@
#!/bin/bash
# rotate all screens clockwise in a complete circle
# by Justin Oros
# Description: Rotate screen clockwise in a complete circle
# Usage: rotate.sh
# Author: Justin Oros
# Source: https://github.com/JustinOros
screen_types="VGA HDMI DP eDP"
screen_rotations="right inverted left normal"
@@ -18,7 +19,7 @@ rotate() {
do
for screen in 0 .. $screens
do
xrandr --output $screen_type-$screen --rotate $screen_rotation > /dev/null 2>&1
xrandr -o $screen_rotation > /dev/null 2>&1
done
done
sleep $sleep_time