Skip to content

Instantly share code, notes, and snippets.

@blrB
Created December 17, 2018 19:14
Show Gist options
  • Save blrB/6127948af0b1c8a866cbe368f38f49e0 to your computer and use it in GitHub Desktop.
Save blrB/6127948af0b1c8a866cbe368f38f49e0 to your computer and use it in GitHub Desktop.
# eye rest timer
eye() {
for i in {1..$1}
do
echo "$i time"
sleep 30
(speaker-test -t sine -f 500 )& pid=$! ; sleep 0.1s ; kill -9 $pid
sleep 30
(speaker-test -t sine -f 1000 )& pid=$! ; sleep 0.1s ; kill -9 $pid
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment