From 5945afeaca6889ae1134a86eeb1c3e16fcbdbab1 Mon Sep 17 00:00:00 2001 From: joestandring Date: Wed, 16 Oct 2019 18:06:27 +0100 Subject: [PATCH] dwm-ccurse uses apts file --- bar-functions/dwm_ccurse.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bar-functions/dwm_ccurse.sh b/bar-functions/dwm_ccurse.sh index bbfe948..578336c 100755 --- a/bar-functions/dwm_ccurse.sh +++ b/bar-functions/dwm_ccurse.sh @@ -7,7 +7,8 @@ # Dependencies: calcurse dwm_ccurse () { - APPOINTMENT=$(calcurse -a | head -n 3 | tr -d '\n+>-' | awk '$1=$1' | sed 's/://') + APTSFILE="$HOME/.calcurse/apts" + APPOINTMENT=$(head -n 1 "$APTSFILE" | sed -r 's/\[1\] //') if [ "$APPOINTMENT" != "" ]; then printf "%s" "$SEP1"