emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Julien Cubizolles <j.cubizolles@free.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-clock idle time in pgtk Emacs
Date: Fri, 3 Feb 2023 22:07:20 +0700	[thread overview]
Message-ID: <860dc32b-2aa7-cfca-cea6-3f836de0f578@gmail.com> (raw)
In-Reply-To: <877cwzndtt.fsf@localhost>

On 03/02/2023 19:17, Ihor Radchenko wrote:
> Julien Cubizolles writes:
>>> May I know where "jc-idle-time" is coming from? Is it a built-in command
>>> on wayland?
>> Sorry, I forgot to mention. It's a custom python program, working both
>> in X11 and wayland. I didn't find a built-in command.
> I would prefer something built-in or, at least, available via OS'
> package manager.

It seems, one can obtain the python package using

pip install idle-time


The issue is that the project has just 2 commits, a pull request for 
wider support of various environments is ignored by the author. The 
package already has CLI interface, but output format is not script-friendly:

print(f"Idle time: {monitor.get_idle_time()}s")

python3 -m idle-time

> This does not look pgtk-specific. Is it?

I see X11 and Windows in the implementation. xprintidle might be more 
reliable though.

As to Org my opinion is still that a defcustom for user-defined function 
returning idle may be a better option.

  reply	other threads:[~2023-02-03 15:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24  8:32 org-clock idle time in pgtk Emacs Julien Cubizolles
2022-05-24 10:27 ` Tim Cross
2022-05-25  6:38 ` Ihor Radchenko
2023-01-31 16:24   ` Julien Cubizolles
2023-02-01 13:15     ` Ihor Radchenko
2023-02-01 15:45       ` Max Nikulin
2023-02-02  9:17         ` Ihor Radchenko
2023-02-03  5:55       ` Julien Cubizolles
2023-02-03 12:17         ` Ihor Radchenko
2023-02-03 15:07           ` Max Nikulin [this message]
2023-02-04 11:04             ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=860dc32b-2aa7-cfca-cea6-3f836de0f578@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=j.cubizolles@free.fr \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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