dotfiles/.i3blocks/beep
2020-12-31 11:14:20 +01:00

14 lines
242 B
Bash
Executable file

#!/bin/bash
if [[ -n "$button" ]]
then
$HOME/.local/bin/toggle-beep
fi
if [[ -e /dev/input/by-path/platform-pcspkr-event-spkr ]]
then
echo "<span foreground=\"#99CC99\">bip</span>"
else
echo "<span foreground=\"#747369\">bip</span>"
fi