unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Basile Starynkevitch <basile@starynkevitch.net>
To: help-gnu-emacs@gnu.org
Cc: e.fraga@ucl.ac.uk
Subject: Re: How can I (programmatically) tell if exwm is active?
Date: Wed, 16 Aug 2023 13:27:17 +0200	[thread overview]
Message-ID: <fd203ac3-27f6-81ca-309b-60acdbb32dc4@starynkevitch.net> (raw)
In-Reply-To: <875y5fcmdt.fsf@ucl.ac.uk>


On 8/16/23 12:27, Eric S Fraga wrote:
> Hello all,
>
> As the subject line says, how can I check to see if exwm is active so I
> can adapt my Emacs configuration accordingly?
>
> Thank you,
> eric


On Linux, you could use the pgrep utility or the /proc/ filesystem.

https://man7.org/linux/man-pages/man1/pgrep.1.html

https://man7.org/linux/man-pages/man5/proc.5.html

Maybe you need to write some GNU emacs module using these 
https://phst.eu/emacs-modules.html

BTW, my pet open source project is the RefPerSys inference engine on 
https://github.com/RefPerSys/RefPerSys (and amateurish website on 
http://refpersys.org/ ....) - contributions are welcome!


Regards


-- 
Basile Starynkevitch                  <basile@starynkevitch.net>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/




  reply	other threads:[~2023-08-16 11:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-16 10:27 How can I (programmatically) tell if exwm is active? Eric S Fraga
2023-08-16 11:27 ` Basile Starynkevitch [this message]
2023-08-16 12:37 ` Marcus Harnisch
2023-08-16 13:39   ` Eric S Fraga
2023-08-16 14:20     ` Marcus Harnisch
2023-08-16 14:34       ` Eric S Fraga

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=fd203ac3-27f6-81ca-309b-60acdbb32dc4@starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=e.fraga@ucl.ac.uk \
    --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).