emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* OrgModeClockingXBar - see a task when you clock in in your bar and not only
@ 2022-11-13 13:38 mag_dex
  2022-11-14  2:33 ` Christopher M. Miles
  0 siblings, 1 reply; 6+ messages in thread
From: mag_dex @ 2022-11-13 13:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

Dear All,
I designed a hack to see your clocked-in task on your bar (and not only).
The hack is composed of a few elements, Emacs code that adds hooks for clock-in and clock-out and a code for Xbar.
I have been using this for 2 years, and it's pretty robust. I didn't have time to share it before.
The code is not perfect, if you quit your Emacs, without clocking-out the content of the file will not be changed so you will not see any update on the bar (at least not till next clocking-in or -out)
https://github.com/mmagnus/OrgModeClockingXBar
Magnus

[-- Attachment #2: Type: text/html, Size: 3086 bytes --]

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

* OrgModeClockingXBar - see a task when you clock in in your bar and not only
@ 2022-11-13 16:29 mag_dex
  0 siblings, 0 replies; 6+ messages in thread
From: mag_dex @ 2022-11-13 16:29 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 119 bytes --]




(preview, https://user-images.githubusercontent.com/118740/201486665-a53e8f4f-9450-4be4-953c-5571b30dd033.jpg)

[-- Attachment #2.1: Type: text/html, Size: 889 bytes --]

[-- Attachment #2.2: 201486665-a53e8f4f-9450-4be4-953c-5571b30dd033.jpg --]
[-- Type: image/jpeg, Size: 19185 bytes --]

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

* Re: OrgModeClockingXBar - see a task when you clock in in your bar and not only
  2022-11-13 13:38 OrgModeClockingXBar - see a task when you clock in in your bar and not only mag_dex
@ 2022-11-14  2:33 ` Christopher M. Miles
  2022-11-15  1:41   ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher M. Miles @ 2022-11-14  2:33 UTC (permalink / raw)
  To: mag_dex; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]


mag_dex <mag_dex@o2.pl> writes:

> Dear All,
>
> I designed a hack to see your clocked-in task on your bar (and not only).
>
> The hack is composed of a few elements, Emacs code that adds hooks for clock-in and clock-out and a code
> for Xbar.
>
> I have been using this for 2 years, and it's pretty robust. I didn't have time to share it before.
>
> The code is not perfect, if you quit your Emacs, without clocking-out the content of the file will not be
> changed so you will not see any update on the bar (at least not till next clocking-in or -out)
>
> https://github.com/mmagnus/OrgModeClockingXBar
>
> Magnus

Thanks for sharing, this is what I needed.

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* Re: OrgModeClockingXBar - see a task when you clock in in your bar and not only
  2022-11-14  2:33 ` Christopher M. Miles
@ 2022-11-15  1:41   ` Ihor Radchenko
  2022-11-15 10:57     ` mag_dex
  0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2022-11-15  1:41 UTC (permalink / raw)
  To: numbchild; +Cc: mag_dex, emacs-orgmode

"Christopher M. Miles" <numbchild@gmail.com> writes:

>> https://github.com/mmagnus/OrgModeClockingXBar
>>
>> Magnus
>
> Thanks for sharing, this is what I needed.

Do we have a page in WORG that discusses ways to display clocked task in
taskbar for Linux/Windows/Mac?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: OrgModeClockingXBar - see a task when you clock in in your bar and not only
  2022-11-15  1:41   ` Ihor Radchenko
@ 2022-11-15 10:57     ` mag_dex
  2022-11-15 16:07       ` Max Nikulin
  0 siblings, 1 reply; 6+ messages in thread
From: mag_dex @ 2022-11-15 10:57 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: numbchild, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]



> On 15 Nov 2022, at 02:41, Ihor Radchenko <yantar92@posteo.net> wrote:
> 
> "Christopher M. Miles" <numbchild@gmail.com> writes:
> 
>>> https://github.com/mmagnus/OrgModeClockingXBar
>>> 
>>> Magnus
>> 
>> Thanks for sharing, this is what I needed.
> 
> Do we have a page in WORG that discusses ways to display clocked task in
> taskbar for Linux/Windows/Mac?
> 
I’m sure, I will look it up.

BTW, two people at reddit shared their solutions, with one just like this:
$ emacsclient --eval '(if (org-clocking-p)(org-clock-get-clock-string) -1)’
(maybe for Emacs nerds this is obvious, for me, I didn’t know that I could —eval emacs, pretty rad)

I added links to their solutions to the readme of: https://github.com/mmagnus/EmacsOrgModeClockingXBar

Magnus

> -- 
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
> 


[-- Attachment #2: Type: text/html, Size: 1747 bytes --]

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

* Re: OrgModeClockingXBar - see a task when you clock in in your bar and not only
  2022-11-15 10:57     ` mag_dex
@ 2022-11-15 16:07       ` Max Nikulin
  0 siblings, 0 replies; 6+ messages in thread
From: Max Nikulin @ 2022-11-15 16:07 UTC (permalink / raw)
  To: emacs-orgmode

On 15/11/2022 17:57, mag_dex wrote:
> 
> $ emacsclient --eval '(if (org-clocking-p)(org-clock-get-clock-string) -1)’

Consider adding `org-no-properties'.




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

end of thread, other threads:[~2022-11-15 16:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-13 13:38 OrgModeClockingXBar - see a task when you clock in in your bar and not only mag_dex
2022-11-14  2:33 ` Christopher M. Miles
2022-11-15  1:41   ` Ihor Radchenko
2022-11-15 10:57     ` mag_dex
2022-11-15 16:07       ` Max Nikulin
  -- strict thread matches above, loose matches on Subject: below --
2022-11-13 16:29 mag_dex

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