diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-10-02 01:22:35 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-10-02 01:22:35 -0700 |
| commit | 73dc35d886da131b357d2adfe9a1fc1479008f8a (patch) | |
| tree | fcdb47b6fb89eddea6038ae8da2eb6b70f3f9dca /arch/scripts/.local/bin/morse-train | |
| parent | 663b54a302a0f2525eb232eafc9aa2212c3c556b (diff) | |
Small scripts
Diffstat (limited to 'arch/scripts/.local/bin/morse-train')
| -rwxr-xr-x | arch/scripts/.local/bin/morse-train | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/scripts/.local/bin/morse-train b/arch/scripts/.local/bin/morse-train new file mode 100755 index 0000000..23f60e5 --- /dev/null +++ b/arch/scripts/.local/bin/morse-train @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +alphanum="abcdefghijklmnopqrstuvwxyz1234567890" +choice="${alphanum:$(( RANDOM % ${#alphanum} )):1}" +string="$choice $choice$choice$choice" + +# echo $choice +morse -n -w 20 -v 0.03 -f 660 "$string" +sleep 1.5 + +# notify-send "$choice" +echo "$choice" | festival --tts +echo "$choice" |