Julien Cubizolles <j.cubizol...@free.fr> 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. > --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--- This does not look pgtk-specific. Is it? -- 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>