Skip to content

Instantly share code, notes, and snippets.

@pedrxd
Created June 20, 2022 11:22
Show Gist options
  • Save pedrxd/6401108a79eac8d9a5bc9f85de00e76f to your computer and use it in GitHub Desktop.
Save pedrxd/6401108a79eac8d9a5bc9f85de00e76f to your computer and use it in GitHub Desktop.
20-20-20 beep script for eye-care
#!/bin/bash
for i in {1..2}
do
( speaker-test -t sine -f 1000 )& pid=$! ; sleep 0.1s ; kill -9 $pid
sleep 0.5s
done
sleep 2s
( speaker-test -t sine -f 1000 )& pid=$! ; sleep 0.3s ; kill -9 $pid
sleep 20s
( speaker-test -t sine -f 1000 )& pid=$! ; sleep 0.1s ; kill -9 $pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment