dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

dwmblock-taskspooler (286B)


      1 #!/bin/sh
      2 tsp_cmd=tsp
      3 
      4 case $BUTTON in
      5   6) "$TERMINAL" -e "$EDITOR" "$0" ;;
      6 esac
      7 
      8 $tsp_cmd -l | awk --traditional '
      9   BEGIN { finished=0 }
     10   NR > 1 { total++ }
     11   $2 ~ /finished|skipped/ { finished++ }
     12   END {
     13     if (total > 0) {
     14       printf("🧵 %s/%s", finished, total)
     15     }
     16   }'