emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: OSX: Display cur. task in Menu Bar?
Date: Fri, 12 Aug 2011 21:25:15 +0200	[thread overview]
Message-ID: <874o1mh1pg.fsf@gmail.com> (raw)
In-Reply-To: 48640BA5-2DFA-4511-A5A6-B15FA849E4BD@gilbert.org


I don't know anything about mac os x.

I pipe conky into my bar. I use the following command:

#+begin_src sh
emacsclient -e "(my/org-clocked-in)" | cut -d '"' -f 2
#+end_src

Here is the function I call. I might have stolen it from somewhere, but
I haven't written a source in my .emacs.

#+begin_src emacs-lisp
(defun my/org-clocked-in ()
"I use this small function to write what I am doing in my taskbar
(conky piped into i3bar). "
(concat
 (if 
     (not 
      (eq org-clock-current-task
          nil)) (message " Working on: " ) (message ""))
 org-clock-current-task 
 (if 
     (not 
      (eq org-clock-current-task
          nil)) (message " |" ) (message ""))))
#+end_src

Judging from this¹ you wont be able to get it in the dock easily
though.

—Rasmus

Footnotes: 
¹  http://apple.stackexchange.com/questions/19539/add-info-to-dock-menubar-from-shell-in-macosx

-- 
Sent from my Emacs

      reply	other threads:[~2011-08-12 19:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12 15:08 OSX: Display cur. task in Menu Bar? Nathan Neff
2011-08-12 15:17 ` Michael C Gilbert
2011-08-12 19:25   ` Rasmus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874o1mh1pg.fsf@gmail.com \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).