From: Alain.Cochard@unistra.fr
To: Jean Louis <bugs@static.rcdrun.com>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to get X Window id from within Emacs?
Date: Sun, 15 Dec 2024 20:00:10 +0100 [thread overview]
Message-ID: <26463.10042.952656.405775@frac.u-strasbg.fr> (raw)
In-Reply-To: <f16c72ea66f044590f3954e2b0d3ca42.support1@rcdrun.com>
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.
next prev parent reply other threads:[~2024-12-15 19:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2024-12-15 21:57 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=26463.10042.952656.405775@frac.u-strasbg.fr \
--to=alain.cochard@unistra.fr \
--cc=bugs@static.rcdrun.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).