From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: OSX: Display cur. task in Menu Bar? Date: Fri, 12 Aug 2011 21:25:15 +0200 Message-ID: <874o1mh1pg.fsf@gmail.com> References: <48640BA5-2DFA-4511-A5A6-B15FA849E4BD@gilbert.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrxKn-000687-1Y for emacs-orgmode@gnu.org; Fri, 12 Aug 2011 15:23:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrxKl-0000wF-9p for emacs-orgmode@gnu.org; Fri, 12 Aug 2011 15:23:56 -0400 Received: from lo.gmane.org ([80.91.229.12]:54058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrxKk-0000vu-Ri for emacs-orgmode@gnu.org; Fri, 12 Aug 2011 15:23:55 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QrxKi-0008TJ-Sy for emacs-orgmode@gnu.org; Fri, 12 Aug 2011 21:23:52 +0200 Received: from 194.94.206.186 ([194.94.206.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Aug 2011 21:23:52 +0200 Received: from rasmus by 194.94.206.186 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Aug 2011 21:23:52 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.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