add new pranks & new setup system

This commit is contained in:
Xarus
2023-09-11 15:18:15 +02:00
parent ce40e81eed
commit 4a8880bc2d
6 changed files with 39 additions and 0 deletions

7
kill_term.sh Executable file
View File

@@ -0,0 +1,7 @@
PROCESS=$$
(
sleep 30s
kill -9 $PROCESS
) &

5
random_jump.sh Executable file
View File

@@ -0,0 +1,5 @@
rcd(){
cd $(find $1 -maxdepth 3 -type d | shuf | head -n 1)
}
alias cd="rcd"

10
rotate_screen.sh Executable file
View File

@@ -0,0 +1,10 @@
SCREEN=$(xrandr -q | sed -n "s/^\(.*\) connected .*$/\1/p" | head -n 1)
(
while true
do
sleep 60s
xrandr --output $SCREEN --rotate inverted
sleep 10s
xrandr --output $SCREEN --rotate normal
done
) &

11
setup.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/bash
declare -A pranks
pranks[0]="tchoutchou"
pranks[1]="sleep"
pranks[2]="rotate_screen"
pranks[3]="kill_term"
pranks[4]="random_jump"
cat ./${pranks[$[ $RANDOM % 5 ]]}.sh >> ~/.bashrc

5
sleep.sh Executable file
View File

@@ -0,0 +1,5 @@
sleep 10s
echo 'Verouille ta session la prochaine fois !'
sleep 10s
echo '(vim .bashrc)'
sleep 10s

1
tchoutchou.sh Executable file
View File

@@ -0,0 +1 @@
sl -a