#!/bin/sh if type -path xkbbell >/dev/null && [ -n "$DISPLAY" ]; then xkbbell else echo -n -e "\a" fi