emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* OSX: Display cur. task in Menu Bar?
@ 2011-08-12 15:08 Nathan Neff
  2011-08-12 15:17 ` Michael C Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Neff @ 2011-08-12 15:08 UTC (permalink / raw)
  To: emacs-orgmode

Does anyone know of a script or a "menulet" that
will display the currently logged in task in OSX's menu-bar?

My main purpose is to show Org mode's currently logged in task
on some part of the screen that's always visible.

I considered using Growl, but Growl only stays open for X seconds,
and takes up a more considerable part of the screen.

I keep Emacs open in a separate "Space" and would like to have a constant
reminder of what I'm /supposed/ to be working on.

Thanks,
--Nate

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OSX: Display cur. task in Menu Bar?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Michael C Gilbert @ 2011-08-12 15:17 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

On Aug 12, 2011, at 8:08 AM, Nathan Neff wrote:

> Does anyone know of a script or a "menulet" that will display the currently logged in task in OSX's menu-bar? My main purpose is to show Org mode's currently logged in task on some part of the screen that's always visible.

Thanks for bringing this up. I've explored some answers to this, but haven't settled on anything. I really like being able to focus on one task and have my desktop environment support that as well.


> I considered using Growl, but Growl only stays open for X seconds, and takes up a more considerable part of the screen.

Have you experimented with this? There are Growl settings that allow you to keep a Growl notification up until dismissed,


> I keep Emacs open in a separate "Space" and would like to have a constant reminder of what I'm /supposed/ to be working on.

I don't know how to display information in the menu bar. That's beyond my skills. But my answer, which might work well with a separate Space, is to use Geektool to display the currently clocked-in task on the desktop. 

— Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OSX: Display cur. task in Menu Bar?
  2011-08-12 15:17 ` Michael C Gilbert
@ 2011-08-12 19:25   ` Rasmus
  0 siblings, 0 replies; 3+ messages in thread
From: Rasmus @ 2011-08-12 19:25 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-12 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).