all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.