#!/bin/bash if [[ -n "$button" ]] then $HOME/.local/bin/toggle-beep fi if [[ -e /dev/input/by-path/platform-pcspkr-event-spkr ]] then echo "beep" else echo "beep" fi