mirror of
https://github.com/Threnklyn/zeit.git
synced 2026-06-06 22:00:52 +02:00
Updated zeit-waybar-wofi.sh, updated .gitignore
This commit is contained in:
@@ -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" == "" ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user