14 lines
284 B
Bash
Executable file
14 lines
284 B
Bash
Executable file
#!/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}"
|