From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GMCpDzX73GPSewAAbAwnHQ (envelope-from ) for ; Fri, 03 Feb 2023 13:16:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UA1rDzX73GP4IAAAauVa8A (envelope-from ) for ; Fri, 03 Feb 2023 13:16:53 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 167B6878D for ; Fri, 3 Feb 2023 13:16:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNuzZ-0003vS-4b; Fri, 03 Feb 2023 07:16:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNuzW-0003uk-SV for emacs-orgmode@gnu.org; Fri, 03 Feb 2023 07:16:30 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNuzU-0005RY-Vs for emacs-orgmode@gnu.org; Fri, 03 Feb 2023 07:16:30 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C66B1240326 for ; Fri, 3 Feb 2023 13:16:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675426586; bh=FVtjQPb5rl8pWYYo3wxIFMFuJMy6KEVR+72oPUmp6O0=; h=From:To:Cc:Subject:Date:From; b=nH+g8Po0oVl/4xjWS101oqqJGNZA9RGqocQt+KwmSUYFuNAchrOc9eVX+IXMGkF4M CE2mBu/C3FVWl8mEm18Ej8VjgHhFL70jU1EufJc1+F6Bp0Zx5JA+G9mpw6FoRmmvDl 5QoPIbsdlyxq6wM5gzuxv3MhQetgcDpDQfmY5HPFrkDULXVRfOMISqXKp8t9B6Zs7A abp9jU1oz8iewEL+3pRKxKeRASIH88wCR7T9qk8aS4uro3C5eB8+aTeb4fPYMH+olb O46YHrECkiReRbItHjRpFxJRIF5p5FjLknvpBsFWEJUriVYy5M6eoLBzxNwHA/ELwm PWF1bCgKVPFIg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P7ZQ16Rb7z9rxQ; Fri, 3 Feb 2023 13:16:25 +0100 (CET) From: Ihor Radchenko To: Julien Cubizolles Cc: emacs-orgmode@gnu.org Subject: Re: org-clock idle time in pgtk Emacs In-Reply-To: <87r0v7s36f.fsf@free.fr> References: <875ylvnxf9.fsf@free.fr> <87wnea15hy.fsf@localhost> <87lelin03e.fsf@free.fr> <87y1phjzmg.fsf@localhost> <87r0v7s36f.fsf@free.fr> Date: Fri, 03 Feb 2023 12:17:02 +0000 Message-ID: <877cwzndtt.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675426613; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7zd4t+JkKK4bqGNzHn5jgrANKiz2R40gZH7sF0GfLW0=; b=W1FL5UscnXTgzLq4SsBjfjjEWDwZjwtTYOGzeVr4YELL7sngIz2ZAEKAt5AHQal5RC73hb 3BQ7fFwaHBgGrJeTKQ4/SChdiwoJmjie+lGmY8LnJ12c/j1HoDdvsjzs4GzQOQLsmFq7So VevSWqlhMmE0xZ1tWzE2P8ONufpnt+OyKg1hUPwi6xXwzfTpn73jO8BdbE088qEzJuU7Mj 31cE4jbHyUxxWyz3Y/ckts7XcldsvgDncL77GYcEloq7I66sMZzJGKbDgmFtKUejvzWNEx ncyTsS1v9qE/SemQwO33FVHvcNEkjIkUwsu4Tqx7hBoUTinkC5OCZw78Wht7gA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nH+g8Po0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675426613; a=rsa-sha256; cv=none; b=XFXLXPSqnnkZG9Z9XnIYCszjma8SLEAawZcq6n/u5Ph3zygHGxSHY3Mo5EJUFgd4QEYLQm +qnHaMwH3bY6bWazRq6lVtVyLCmtzMITOEkpQOLeDmOo5iKHa3AhM3qiOK3mG/TkQ2tiSQ D9n1IuQPGGfAzWO5eHH6uyIXMOVe15ntkMk7fGQTl0RXEwwenov+alWkHRafZDKL+yZf4j 3jM1O0vhmrbk4s98aJGGNauJyLvyzFMVdKU1clvlqR7nwwl3ewWP/4pLSS/hixYc2ekWlq DTcwvIpRbzMPy3DUpYDqFoJw9Q3qeEss9AB28CSi3xlVs90EmCTdHpcdH/vYjA== X-Migadu-Spam-Score: -6.04 X-Spam-Score: -6.04 X-Migadu-Queue-Id: 167B6878D Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nH+g8Po0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn1.migadu.com X-TUID: FKuKLV7hbufV 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. > --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 . Support Org development at , or support my work at