From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borbus Subject: Re: Clocking time in frame title bar Date: Thu, 23 Feb 2012 19:42:05 +0000 Message-ID: <4F46968D.4020401@gmail.com> References: <4F46892E.9070907@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0eYM-0001rK-CD for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 14:42:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0eYL-0000j0-6v for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 14:42:10 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:48458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0eYL-0000iv-1r for emacs-orgmode@gnu.org; Thu, 23 Feb 2012 14:42:09 -0500 Received: by wera13 with SMTP id a13so1290313wer.0 for ; Thu, 23 Feb 2012 11:42:08 -0800 (PST) In-Reply-To: <4F46892E.9070907@gmail.com> 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 Well I just went ahead and wrote the hack anyway and it seems to work for me, here is what I did: ;; show clock and timer stuff in the frame title (defvar plain-frame-title-format frame-title-format) (defun clock-in-frame-title () (if (org-clocking-p) (setq frame-title-format (list (concat (car plain-frame-title-format) " :: Clocked in: " (org-clock-get-clock-string) " :: Pomodoro:" org-timer-mode-line-string))) (setq frame-title-format plain-frame-title-format))) (run-at-time t 1 'clock-in-frame-title) (add-hook 'org-clock-in-hook 'clock-in-frame-title) (add-hook 'org-clock-out-hook 'clock-in-frame-title) (add-hook 'org-clock-cancel-hook 'clock-in-frame-title) Any comments? Is run-at-time the best thing to use here? Note that I use the Pomodoro method and use the code to start the Pomodoro that was posted to this list previously: http://orgmode.org/worg/org-gtd-etc.html Borbus.