blob: 27bfc2d3c8a52dbe438c849fac66bfbbabc64d81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
# <xbar.title>Org Clock</xbar.title>
/opt/homebrew/bin/emacsclient --eval '(with-output-to-string (if (org-clocking-p) (princ (org-trim (org-clock-get-clock-string))) (princ "no clock")))' 2>/dev/null | awk '{print substr($0,2,length($0)-2)}'
if [[ ${PIPESTATUS[0]} -eq 1 ]]; then
echo "no emacs"
fi
echo "---"
echo "Hello"
|