2020-09-15 02:50:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ -n "$button" ]]
|
|
|
|
then
|
|
|
|
$HOME/.local/bin/toggle-beep
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -e /dev/input/by-path/platform-pcspkr-event-spkr ]]
|
|
|
|
then
|
2020-11-06 01:59:52 +01:00
|
|
|
echo "<span foreground=\"#99CC99\">beep</span>"
|
2020-09-15 02:50:48 +02:00
|
|
|
else
|
2020-11-06 01:59:52 +01:00
|
|
|
echo "<span foreground=\"#747369\">beep</span>"
|
2020-09-15 02:50:48 +02:00
|
|
|
fi
|
|
|
|
|