emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] OSX: Display cur. task in Menu Bar?


From: Rasmus
Subject: Re: [O] OSX: Display cur. task in Menu Bar?
Date: Fri, 12 Aug 2011 21:25:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]