dotfiles/.i3blocks/beep
2020-09-15 02:50:48 +02:00

16 lines
259 B
Bash
Executable file

#!/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