Ajout de scripts

This commit is contained in:
Breizh 2020-02-05 19:30:25 +01:00
parent bbe4b2f098
commit ed7e33d5a5
3 changed files with 27 additions and 0 deletions

5
.local/bin/screensaver Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
echo
neofetch --off --disable cols --disable term --stdout
mpc current

9
.local/bin/space-cadet Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
cvlc --loop "$HOME/.wine/drive_c/Maxis/FullTilt/CADET/SOUND/TABA1.MID" &
pid=$!
wine .wine/drive_c/Maxis/FullTilt/CADET/CADET.EXE
kill $pid
timeout 2 wait $pid || kill -9 $pid

13
.local/bin/toggle-beep Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
dunstid=$(sum <<<beep | cut -d' ' -f1)
result=$(sudo modprobe -vr pcspkr)
if [[ -z "$result" ]]
then
sudo modprobe -v pcspkr &>/dev/null
sleep .5
dunstify -u low -r "$dunstid" Beep Activé
else
dunstify -u low -r "$dunstid" Beep Désactivé
fi