[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I (programmatically) tell if exwm is active?
From: |
Eric S Fraga |
Subject: |
Re: How can I (programmatically) tell if exwm is active? |
Date: |
Wed, 16 Aug 2023 15:34:57 +0100 |
User-agent: |
gnus (Emacs 30.0.50) |
On Wednesday, 16 Aug 2023 at 16:20, Marcus Harnisch wrote:
> If such a function existed, how would it work without doing
> essentially the same?
Well, not necessarily: I would have thought that invoking exwm-enable
would set some flag (i.e. an elisp global variable) but it does not look
like it does, having gone through the code. Oh well, never mind!
> Not claiming to be an expert on these matters, it looks like at least
> XDG_SESSION_DESKTOP might be a common standard. So if you must roll
> your own, it could be a good idea to use that or one of the others.
Again, for the record, as I do not use a desktop environment, this
variable is set to "lightdm-session" regardless of the window manager I
start up from my .xsession file.
But thank you for your suggestions. I've gone with (getenv "WM") in my
.emacs, where WM is the environment variable I use in my .xsession to
store the name of the window manager I choose during startup of the X
session. I just had to make sure I "exported" that variable. Very easy
and pretty much what you were suggesting except with my own variable.
Thanks again,
eric
--
Eric S Fraga via gnus (Emacs 30.0.50 2023-08-14) on Debian 12.1