dotfiles/.i3blocks/beep

15 lines
242 B
Text
Raw Permalink Normal View History

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-12-31 11:14:20 +01:00
echo "<span foreground=\"#99CC99\">bip</span>"
2020-09-15 02:50:48 +02:00
else
2020-12-31 11:14:20 +01:00
echo "<span foreground=\"#747369\">bip</span>"
2020-09-15 02:50:48 +02:00
fi