From c6f6c410baa0fe624012d46f19eeeb3dd459446a Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Tue, 24 Aug 2021 10:05:30 +0200 Subject: gromo: list --- gromo | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gromo b/gromo index e14de26..d4adff4 100755 --- a/gromo +++ b/gromo @@ -47,10 +47,14 @@ elif [ "$1" = "--help" ] || [ "$1" = "-h" ]; then cmd=$(basename $0) echo -e "Usage: $cmd --xmobar-status \tReturn state formatted for display in xmobar + $cmd --list | -l \tList past gromos $cmd --help | -h \tShow this help $cmd [gromo] [descr] \tStart counting gromo (default gromo: "work") " exit 0 +elif [ "$1" = "--list" ] || [ "$1" = "-l" ]; then + find $DATA_DIR/ -type f -print | xargs -n 1 basename | sort -u + exit 0 elif [ "$#" -ge 1 ]; then gromo="$1" desc="$2" -- cgit v1.2.3