dotfiles

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

commit c056210cfff74f14f0069178773d68cfd6d8a577
parent bfc0e049592695a69cb0844e50d998b159f2cf5a
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Fri, 28 Jun 2024 17:39:05 +0200

dwmblock-taskspooler

Diffstat:
Ascripts/dwmblock-taskspooler | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/scripts/dwmblock-taskspooler b/scripts/dwmblock-taskspooler @@ -0,0 +1,16 @@ +#!/bin/sh +tsp_cmd=tsp + +case $BUTTON in + 6) "$TERMINAL" -e "$EDITOR" "$0" ;; +esac + +$tsp_cmd -l | awk --traditional ' + BEGIN { finished=0 } + NR > 1 { total++ } + $2 == "finished" { finished++ } + END { + if (total > 0) { + printf("🧵 %s/%s", finished, total) + } + }'