Skip to content

Commit

Permalink
Updated zeit-waybar-wofi.sh, updated .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Apr 15, 2022
1 parent 8bc5014 commit 41f1c0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

/zeit
/db
/db.demo
/charts.txt
.DS_Store
4 changes: 2 additions & 2 deletions extras/zeit-waybar-wofi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ then
fi

selection=$($ZEIT_BIN list \
--only-projects-and-tasks \
--only-tasks \
--append-project-id-to-task \
| wofi \
--dmenu \
--sort-order default \
--cache-file /dev/null\
)

task=$(echo $selection | pcregrep -io1 '└── (.+) \[.+')
task=$(echo $selection | pcregrep -io1 '(.+) \[.+')
project=$(echo $selection | pcregrep -io1 '.+\[(.+)\]')

if [[ "$task" == "" ]] || [[ "$project" == "" ]]
Expand Down

0 comments on commit 41f1c0f

Please sign in to comment.