[-- 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 --]
[-- 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 --]
[-- 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 --]
"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>
[-- 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 --]
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'.