You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
347 B
10 lines
347 B
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
value=$(emacsclient --eval '(progn (setq silent-buffer (generate-new-buffer "\*silent-buffer\*")) (if (org-clocking-p)(print (org-clock-get-clock-string) silent-buffer)(print -1 silent-buffer)))' | head -n1 | cut -d\" -f2)
|
||
|
|
||
|
emacsclient --eval "(kill-buffer silent-buffer)" >/dev/null 2>&1
|
||
|
|
||
|
[ "$value" = "-1" ] && exit 1
|
||
|
|
||
|
echo "$value"
|