From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alain.Cochard@unistra.fr Newsgroups: gmane.emacs.help Subject: Re: How to get X Window id from within Emacs? Date: Sun, 15 Dec 2024 20:00:10 +0100 Message-ID: <26463.10042.952656.405775@frac.u-strasbg.fr> References: Reply-To: alain.cochard@unistra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11425"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 20:01:20 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tMtrk-0002ow-GM for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 20:01:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMtrE-0000DD-Jf; Sun, 15 Dec 2024 14:00:51 -0500 Original-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 1tMtqm-0008UQ-3K for help-gnu-emacs@gnu.org; Sun, 15 Dec 2024 14:00:21 -0500 Original-Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMtqj-0000F0-6R for help-gnu-emacs@gnu.org; Sun, 15 Dec 2024 14:00:19 -0500 Original-Received: from zmtaauth03.partage.renater.fr (zmtaauth03.partage.renater.fr [194.254.240.26]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id 9C83E64D07; Sun, 15 Dec 2024 20:00:12 +0100 (CET) Original-Received: from zmtaauth03.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPS id 952BC8000E; Sun, 15 Dec 2024 20:00:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id 8454080017; Sun, 15 Dec 2024 20:00:12 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr 8454080017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1734289212; bh=0NIWDrTv3eWcDXAvmij/B+81+rOPTzIYLeEW4lBhuiY=; h=MIME-Version:Message-ID:Date:From:To; b=QKavj6P9DGlVODo4qHmtRIkwJjXx5+E5XGpelBOsnt9JvVeR1KigYKtjWmykzMkYO slbCjPErnQCRZJSRZs+JpOgAs9m4ejfk25auRD+x7U6Y9zEXq+2SFbTfx6N0A9Dn5a yKZmRPJW4DuReWc+K7KC80h3w9Ph4Z7XRgzGs83PMqDPnFZbiKAPOgL/N/Fbl+t694 0ZMRZUEptrPpLg5SsZye9Pqi5hUOIoAByvBuaiTliTYvMvmx6o11F/36jVKtMOBBDe K+GTS53qg9PSeSZyVfCSn5YPRzy6dQGFe4F1SvvbD6lmdUsP0Bp4WmPceA9w52d2hg iKbjT0/r3ULnA== Original-Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavis, port 10026) with ESMTP id dzPux9AgwSbU; Sun, 15 Dec 2024 20:00:12 +0100 (CET) Original-Received: from 90.33.60.1 (unknown [194.254.241.249]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPA id 4052C8000E; Sun, 15 Dec 2024 20:00:12 +0100 (CET) In-Reply-To: X-Mailer: VM 8.2.0b under 29.4 (x86_64-redhat-linux-gnu) X-Virus-Scanned: clamav-milter 0.103.8 at clamav03 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgeefuddrledugdduudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepgggtgffkfffhvfevufgjfhforhesthhqredtredtudenucfhrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrnecuggftrfgrthhtvghrnheptdevffdtuefhieefveegjefhffffffdtuddvgeefuddugffhtefgueffvdfhffegnecukfhppeduleegrddvheegrddvgedurddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdegledphhgvlhhopeeltddrfeefrdeitddruddpmhgrihhlfhhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhdpnhgspghrtghpthhtohepvddprhgtphhtthhopehhvghlphdqghhnuhdqvghmrggtshesghhnuhdrohhrghdprhgtphhtthhopegsuhhgshesshhtrghtihgtrdhrtggurhhunhdrtghomh Received-SPF: pass client-ip=194.254.240.33; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout01-ext2.partage.renater.fr X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, NICE_REPLY_A=-0.641, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148814 Archived-At: Jean Louis writes on Sun 15 Dec 2024 20:52: > The standard shell commend `xwininfo' gives me the Window id, such a= s > 0x2e000ac and then I can run shell command like `xdotool' to activat= e > the Emacs window: >=20 > $ xwininfo=20 >=20 > xwininfo: Please select the window about which you > would like information by clicking the > mouse in that window. >=20 > xwininfo: Window id: 0x2e000ac "*shell* - GNU Emacs at lco2" >=20 > after switching to other workspace, then I can still do: >=20 > $ xdotool windowactivate 0x2e000ac >=20 > and I would return to Emacs X Window. >=20 > Is there a way to get the Window ID from within Emacs=3F Wouldn't 'xwininfo' (or 'wmctrl'), from an Emacs shell, be enough=3F > That will be useful to return to Emacs upon some notifications and > jobs done, during the watching of the movie. --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | bureau 110, ancien b=E2t.