Ihor Radchenko <yanta...@posteo.net> writes:

>> +(defcustom org-clock-pgtkidle-program-name
>> +  (if (executable-find "jc-idle-time")
>> +      "jc-idle-time")
>> +  "Name of the program which prints idle time in milliseconds.
>
> 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.

--8<---------------cut here---------------start------------->8---
#!/usr/bin/env python3

from idle_time import IdleMonitor

monitor = IdleMonitor.get_monitor()
print(f"{1000*monitor.get_idle_time():.0f}")
--8<---------------cut here---------------end--------------->8---

-- 
Julien Cubizolles


Reply via email to