Ajout de scripts
This commit is contained in:
parent
44d83419ec
commit
0c233bf494
3 changed files with 27 additions and 0 deletions
5
.local/bin/screensaver
Executable file
5
.local/bin/screensaver
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo
|
||||
neofetch --off --disable cols --disable term --stdout
|
||||
mpc current
|
9
.local/bin/space-cadet
Executable file
9
.local/bin/space-cadet
Executable 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
13
.local/bin/toggle-beep
Executable 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
|
Loading…
Reference in a new issue