add new pranks & new setup system
This commit is contained in:
7
kill_term.sh
Executable file
7
kill_term.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
PROCESS=$$
|
||||||
|
|
||||||
|
(
|
||||||
|
sleep 30s
|
||||||
|
kill -9 $PROCESS
|
||||||
|
) &
|
||||||
|
|
||||||
5
random_jump.sh
Executable file
5
random_jump.sh
Executable 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
10
rotate_screen.sh
Executable 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
11
setup.sh
Executable 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
5
sleep.sh
Executable 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
1
tchoutchou.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
sl -a
|
||||||
Reference in New Issue
Block a user