Last active
November 17, 2023 17:14
-
-
Save jeroenvanwijgerden/133c4ed2fa012dbc7dff9505f0c5578f to your computer and use it in GitHub Desktop.
Says the time, e.g. at 18:09 you will hear "eightteen o' nine"
This file contains 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 | |
hours=$(date +"%-H") | |
minutes=$(date +"%-M") | |
if [ ${#minutes} -eq 1 ]; then | |
minutes="o$minutes" | |
fi | |
spd-say "$hours $minutes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment