今なにをしているか、Emacsの外でも確認するためにemacsclientからタスク名を取り出して、BitBarに表示するようにしました。
要 (server-start)
です。
#!/bin/bash # <bitbar.title>org-clock current task</bitbar.title> # <bitbar.version>v1.0</bitbar.version> # <bitbar.author>peccu</bitbar.author> # <bitbar.author.github>peccu</bitbar.author.github> # <bitbar.desc>Displays org-clock current task</bitbar.desc> # <bitbar.image></bitbar.image> TASK=$(/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -e 'org-clock-current-task'|sed -e 's/^"\(.*\)"$/\1/') echo "$TASK" echo '---' echo "---" echo "Refresh... | refresh=true"
これで作業中に別のことをし始めた時に気づくきっかけが増えます。