Created
June 20, 2022 11:22
-
-
Save pedrxd/6401108a79eac8d9a5bc9f85de00e76f to your computer and use it in GitHub Desktop.
20-20-20 beep script for eye-care
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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