commit 79ecf01cffa39ae21036ebca74e7e393a45a0213 Author: Alexandre CHAZAL Date: Fri Oct 4 20:12:50 2019 +0200 Dammmnn it do be startin diff --git a/spinnin.sh b/spinnin.sh new file mode 100755 index 0000000..0aa3588 --- /dev/null +++ b/spinnin.sh @@ -0,0 +1,25 @@ +#!/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