You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
422 B
23 lines
422 B
#!/usr/bin/env sh |
|
|
|
TIME=$( |
|
echo "$@" | |
|
sed 's#h#*60m#g'| |
|
sed 's#m#*60s#g'| |
|
sed 's#s#*1#g'| |
|
sed 's# #+#g' | |
|
bc |
|
) |
|
|
|
date1=$((`date +%s` + $TIME)); |
|
while [ "$date1" -ge `date +%s` ]; do |
|
echo -ne "$(date -u --date @$(($date1 - `date +%s`)) +%H:%M:%S) \r"; |
|
sleep 0.1 |
|
done |
|
echo "Done with $@" |
|
|
|
while :; |
|
do notify-send "Done with $@"; |
|
sxmo_vibratepine 1000 |
|
sleep 0.5 |
|
done
|
|
|