2020-02-05 19:30:25 +01:00
|
|
|
#!/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
|
2020-12-31 11:14:20 +01:00
|
|
|
dunstify -u low -r "$dunstid" Bipeur Activé
|
2020-02-05 19:30:25 +01:00
|
|
|
else
|
2020-12-31 11:14:20 +01:00
|
|
|
dunstify -u low -r "$dunstid" Bipeur Désactivé
|
2020-02-05 19:30:25 +01:00
|
|
|
fi
|