From anonymous, 7 Years ago, written in Plain Text.
Embed
  1. ...
  2.     while true ; do
  3.         date +'date ^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d'
  4.         sleep 1 || break
  5.     done > >(uniq_linebuffered)  &
  6.     while true; do
  7.         echo "vol $(amixer get Master | tail -1 | sed 's/.*\[\([0-9]*%\)\].*/\1/)
  8.         sleep 1 || break
  9.     done > >(uniq_linebuffered) &
  10. ...
  11.     #echo -n "^bg()^fg() ${windowtitle//^/^^}"
  12.     echo -n "^bg()^fg() $vol"
  13. ...
  14.         case "${cmd[0]}" in
  15. ...
  16.             vol)
  17.                 vol="${cmd[@]:1}"
  18.                 ;;
  19. ...
  20.