diff --git a/.gitignore b/.gitignore index bc0ff3e..d27ac9d 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,6 @@ /zeit /db +/db.demo +/charts.txt .DS_Store diff --git a/extras/zeit-waybar-wofi.sh b/extras/zeit-waybar-wofi.sh index 97478d7..eb9aa97 100755 --- a/extras/zeit-waybar-wofi.sh +++ b/extras/zeit-waybar-wofi.sh @@ -23,7 +23,7 @@ then fi selection=$($ZEIT_BIN list \ - --only-projects-and-tasks \ + --only-tasks \ --append-project-id-to-task \ | wofi \ --dmenu \ @@ -31,7 +31,7 @@ then --cache-file /dev/null\ ) - task=$(echo $selection | pcregrep -io1 '└── (.+) \[.+') + task=$(echo $selection | pcregrep -io1 '(.+) \[.+') project=$(echo $selection | pcregrep -io1 '.+\[(.+)\]') if [[ "$task" == "" ]] || [[ "$project" == "" ]]