Updated zeit-waybar-wofi.sh, updated .gitignore
This commit is contained in:
parent
8bc5014ab3
commit
41f1c0f542
2 changed files with 4 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -16,4 +16,6 @@
|
||||||
|
|
||||||
/zeit
|
/zeit
|
||||||
/db
|
/db
|
||||||
|
/db.demo
|
||||||
|
/charts.txt
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
@ -23,7 +23,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
selection=$($ZEIT_BIN list \
|
selection=$($ZEIT_BIN list \
|
||||||
--only-projects-and-tasks \
|
--only-tasks \
|
||||||
--append-project-id-to-task \
|
--append-project-id-to-task \
|
||||||
| wofi \
|
| wofi \
|
||||||
--dmenu \
|
--dmenu \
|
||||||
|
@ -31,7 +31,7 @@ then
|
||||||
--cache-file /dev/null\
|
--cache-file /dev/null\
|
||||||
)
|
)
|
||||||
|
|
||||||
task=$(echo $selection | pcregrep -io1 '└── (.+) \[.+')
|
task=$(echo $selection | pcregrep -io1 '(.+) \[.+')
|
||||||
project=$(echo $selection | pcregrep -io1 '.+\[(.+)\]')
|
project=$(echo $selection | pcregrep -io1 '.+\[(.+)\]')
|
||||||
|
|
||||||
if [[ "$task" == "" ]] || [[ "$project" == "" ]]
|
if [[ "$task" == "" ]] || [[ "$project" == "" ]]
|
||||||
|
|
Loading…
Reference in a new issue