help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get X Window id from within Emacs?


From: Alain . Cochard
Subject: Re: How to get X Window id from within Emacs?
Date: Sun, 15 Dec 2024 20:00:10 +0100

Jean Louis writes on Sun 15 Dec 2024 20:52:

 > The standard shell commend `xwininfo' gives me the Window id, such as
 > 0x2e000ac and then I can run shell command like `xdotool' to activate
 > the Emacs window:
 > 
 > $ xwininfo 
 > 
 > xwininfo: Please select the window about which you
 >           would like information by clicking the
 >           mouse in that window.
 > 
 > xwininfo: Window id: 0x2e000ac "*shell* - GNU Emacs at lco2"
 > 
 > after switching to other workspace, then I can still do:
 > 
 > $ xdotool windowactivate 0x2e000ac
 > 
 > and I would return to Emacs X Window.
 > 
 > Is there a way to get the Window ID from within Emacs?

Wouldn't 'xwininfo' (or 'wmctrl'), from an Emacs shell, be enough?


 > That will be useful to return to Emacs upon some notifications and
 > jobs done, during the watching of the movie.

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes                 | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France     | bureau 110, ancien bât.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]