Tips for working with EXWM #437
harmonymjb
started this conversation in
Ideas
Replies: 1 comment
-
Exwm doesn't reliably send my |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody I’ve been using
meow
for a little while now withexwm
and I wanted to share a couple of tips/suggestions.First of all, I suggest you bind
meow-keypad
to a non-useful key inexwm-input-global-keys
:In my case, I use
F18
/XF86Launch9
, which I have made a convenient key for me. I think the important thing here is that the key you choose isn’t one that you would normally use in an X application.If the key you're using isn't already set to
meow-keypad-self-insert
, you'll probably want to do that, or bind it to something useful.Otherwise, spamming
<leader>
can cause a bad state of nested keypads.Second, set the configurations in
exwm
to always bechar-mode
.This makes it so that X windows always take the input, with the exception of being able to launch
meow-keypad
with our shortcut set above.And with that, you’ll need a hook like this to allow
meow-keypad
to take inputs when it’s started.Finally, here is a fix for previews of windows in
consult-buffer
which I find to be a useful addition, even though this override is needed.I attempted before with an
:after
hook, but I found it only worked as expected when I could do theexwm
check inside the returned function. Happy to take advice to simplify this. (but at the end of the day it’s an issue inexwm
, but I haven’t found a fix on that end yet.)Finally, if you want to run Emacs as an X window in
exwm
you might try a hack like this:This allows
meow-keypad
to run inside a nested Emacs by passing it the leader key withexwm-input--fake-key
. I like to pair withC-<leader>
also bound tomeow-keypad
meaningwith a nested Emacs,
<leader>
will work on the inner Emacs andC-<leader>
will work on theouter Emacs.
I know this is all a little scrappy, but I wanted to share in case there are others using
exwm
withmeow
and might find these tips useful or want to share some of their own.
Beta Was this translation helpful? Give feedback.
All reactions