Modified a built-in windmove function for better windows focus integration between #Emacs and #i3wm because I only love them a normal amount https://github.com/ljwrites/dotfiles/commit/a87a3df67cf0c8c80878625ce833b6e97c0ef297#diff-a09ea17318d02c135b5a31ee032db4dac6646f450272961bddd52306e098f81bR408
What this does is, when I try to go in a direction (say, right) when there is no Emacs windows there, instead of throwing the default error that there is no window in that direction, the function sends a command to i3wm with i3-msg to shift focus to an external window in the same direction under the theory that there is a non-Emacs window I'm trying to get to.
By turning off Emacs mode and reverting to default mode as I shift to the non-Emacs window, I can use the same keybinds for internal Emacs window focus shifts and the default i3 keybinds for window focus shifting, and the transition between them becomes seamless
@ljwrites I use emacs-like keybinds with swaywm. Super+{p,n,b,f} is bound for navigation instead of hjkl. I leave most other keys alone.
@ljwrites Yeah, emacs works great with wayland, I haven't had any problems with it. I have had problems with a couple other programs, mostly games, but most things work perfectly. The main reason I switched to sway was for multi monitor freesync, since it's the only WM that supports freesync on more than one monitor so far. I had my nav commands bound the same way on i3wm when I was using that.
@theonefreeman ooh, sounds awesome! Going to have to seriously look into this.