dotfiles/.i3blocks/beep
2020-11-06 01:59:52 +01:00

14 lines
244 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\">beep</span>"
else
echo "<span foreground=\"#747369\">beep</span>"
fi