Add script “timewmenu”
This commit is contained in:
parent
6c1ca37fd3
commit
e197a579ed
1 changed files with 13 additions and 0 deletions
13
timewmenu
Executable file
13
timewmenu
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
|
# Present menu to select tag
|
||||||
|
tag=$(timew tags | tail +4 | cut -d " " -f 1 | bemenu $@)
|
||||||
|
tag=$(echo "${tag%-*}" | xargs echo -n)
|
||||||
|
|
||||||
|
# Start timetracking
|
||||||
|
output=$(timew start "$tag")
|
||||||
|
|
||||||
|
# Send notification
|
||||||
|
notify-send -t 5000 "timew" "${output}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue