Updated zeit-waybar-wofi.sh, updated .gitignore

This commit is contained in:
マリウス 2022-04-14 19:15:31 -05:00
parent 8bc5014ab3
commit 41f1c0f542
No known key found for this signature in database
GPG key ID: 272ED814BF63261F
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View file

@ -16,4 +16,6 @@
/zeit
/db
/db.demo
/charts.txt
.DS_Store

View file

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