dotfiles/.i3blocks/beep

17 lines
259 B
Text
Raw Normal View History

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