unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to get X Window id from within Emacs?
@ 2024-12-15 17:52 Jean Louis
  2024-12-15 18:25 ` Eli Zaretskii
  2024-12-15 19:00 ` Alain.Cochard
  0 siblings, 2 replies; 7+ messages in thread
From: Jean Louis @ 2024-12-15 17:52 UTC (permalink / raw)
  To: Help GNU Emacs

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?

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

Jean




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-12-16  5:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15 17:52 How to get X Window id from within Emacs? Jean Louis
2024-12-15 18:25 ` Eli Zaretskii
2024-12-15 21:53   ` Jean Louis
2024-12-16  0:39   ` Po Lu
2024-12-16  5:20     ` Jean Louis
2024-12-15 19:00 ` Alain.Cochard
2024-12-15 21:57   ` Jean Louis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).