Mildly generalize beep script (really?)