2019-07-18 23:42:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
function planktimer() {
|
2019-08-20 23:07:55 +00:00
|
|
|
# dependencies: 'say' 'termdown' '.wryn/bash/rentdynamics'
|
2019-08-20 17:06:26 +00:00
|
|
|
message='Plank Time'
|
2019-07-18 23:42:11 +00:00
|
|
|
while true;
|
|
|
|
do
|
|
|
|
termdown 1h30m;
|
|
|
|
clear;
|
2019-08-20 15:52:04 +00:00
|
|
|
figlet "$message" | lolcat;
|
2019-08-20 23:07:55 +00:00
|
|
|
# update slack status
|
|
|
|
rdplank;
|
2019-08-20 15:52:04 +00:00
|
|
|
say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "$message";
|
2019-07-18 23:42:11 +00:00
|
|
|
read -n 1;
|
2019-08-06 20:40:33 +00:00
|
|
|
if [ $1 ]; then
|
|
|
|
termdown $1;
|
|
|
|
say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "done";
|
|
|
|
fi
|
2019-08-20 23:07:55 +00:00
|
|
|
rdstart;
|
2019-07-18 23:42:11 +00:00
|
|
|
done
|
|
|
|
}
|
2019-08-06 20:40:33 +00:00
|
|
|
|
|
|
|
function sayvoices() {
|
|
|
|
for voice in $(say -v ? | sed 's/ .*//' | sed 's/ News//');
|
|
|
|
do
|
|
|
|
say -v "$voice" $(say -v ? | grep $voice | sed 's/[^#]*# //');
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
function sayone() {
|
|
|
|
voice=$(say -v ? | sed 's/ .*//' | sed 's/ News//' | shuf -n 1);
|
|
|
|
say -v "$voice" $(say -v ? | grep $voice | sed 's/[^#]*# //');
|
|
|
|
}
|