Browse Source

dwm-ccurse uses apts file

main
joestandring 4 years ago
parent
commit
5945afeaca
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bar-functions/dwm_ccurse.sh

+ 2
- 1
bar-functions/dwm_ccurse.sh View File

@ -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"


Loading…
Cancel
Save