From 41f1c0f542042de28775b4481f70b70776ca834e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Thu, 14 Apr 2022 19:15:31 -0500 Subject: [PATCH] Updated zeit-waybar-wofi.sh, updated .gitignore --- .gitignore | 2 ++ extras/zeit-waybar-wofi.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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" == "" ]]