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 #!/bin/bash
# Description: Rotate screen clockwise in a complete circle
# rotate all screens clockwise in a complete circle # Usage: rotate.sh
# by Justin Oros # Author: Justin Oros
# Source: https://github.com/JustinOros
screen_types="VGA HDMI DP eDP" screen_types="VGA HDMI DP eDP"
screen_rotations="right inverted left normal" screen_rotations="right inverted left normal"
@@ -18,7 +19,7 @@ rotate() {
do do
for screen in 0 .. $screens for screen in 0 .. $screens
do do
xrandr --output $screen_type-$screen --rotate $screen_rotation > /dev/null 2>&1 xrandr -o $screen_rotation > /dev/null 2>&1
done done
done done
sleep $sleep_time sleep $sleep_time