26 lines
445 B
Bash
Executable File
26 lines
445 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sleep_rand()
|
|
{
|
|
time=$(( RANDOM % 60 + 1 ))
|
|
echo "$time"
|
|
sleep $time
|
|
}
|
|
|
|
spin()
|
|
{
|
|
while true
|
|
do
|
|
xrandr --output "DP1" --rotate normal
|
|
sleep_rand
|
|
xrandr --output "DP1" --rotate left
|
|
sleep_rand
|
|
xrandr --output "DP1" --rotate inverted
|
|
sleep_rand
|
|
xrandr --output "DP1" --rotate right
|
|
sleep_rand
|
|
done
|
|
}
|
|
echo "Oh shit please kill me => PID == $$"
|
|
spin
|