From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GaGLd-0007oS-BI for garchives@archives.gentoo.org; Wed, 18 Oct 2006 18:41:01 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9IIbWEt030586; Wed, 18 Oct 2006 18:37:32 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9IIWmqA018329 for ; Wed, 18 Oct 2006 18:32:48 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id CE438647DB for ; Wed, 18 Oct 2006 18:32:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -1.614 X-Spam-Level: X-Spam-Status: No, score=-1.614 required=5.5 tests=[AWL=0.785, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SmFLWvvXRp8H for ; Wed, 18 Oct 2006 18:32:41 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by smtp.gentoo.org (Postfix) with ESMTP id 866FF64241 for ; Wed, 18 Oct 2006 18:32:40 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id h2so265975ugf for ; Wed, 18 Oct 2006 11:32:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TaK70GbhnuMSTg57o6lyPZc5wuH67prTJ6h+ea5zCoQCHTZCJKD5Xhkc5KKh4LG1s+pwzAKW6zWdlC2JQBBB3RLY3RGqfsGxP4MfZn6IoQl1tkSaHRztX+jlLIhGHDSOZImoOKTEsJfpbCzH/3FRgeZ8DQ3aCLkysQKFLNWiVSQ= Received: by 10.82.111.8 with SMTP id j8mr2584894buc; Wed, 18 Oct 2006 11:32:35 -0700 (PDT) Received: by 10.82.147.11 with HTTP; Wed, 18 Oct 2006 11:32:35 -0700 (PDT) Message-ID: Date: Thu, 19 Oct 2006 02:32:35 +0800 From: "Qiangning Hong" To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Run script when X is idle for some time? Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Archives-Salt: 39ed4867-b758-4469-a397-312d74a17e79 X-Archives-Hash: 58b3d134493a89853af97db17a842e86 I'd like to run a script after X is idle for some time (e.g. 5 minute), just like what gaim do (it set my status to "away" if I haven't touch anything for some time). How can I do? FYI, I have some Shell/C/Python programming skill. -- gentoo-user@gentoo.org mailing list