From Sloppy Bushbaby, 1 Week ago, written in Plain Text.
  1. #!/bin/bash
  2. speak()
  3. {
  4.   while :; do
  5.  
  6.     fortune="$(fortune -a | tr '\n' ' ' | tr '\t' ' ' | fold -w 60)"
  7.     expiret="$(( $(echo "$fortune"|wc -c) / 16))000"
  8.  
  9.     (( "$expiret" <= 10000 )) && expiret="$(( $expiret + 10000 ))"
  10.  
  11.     (notify-send --expire-time="$expiret" "  -- Fortune --" "$fortune")
  12.  
  13.     sleep 30m
  14.  
  15.   done
  16. }
  17. speak
captcha