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 :emacs: :heart_cyber:

Follow

@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.

@theonefreeman ah now there is a hardcore Emacs user! :} Does Emacs play well with Wayland? I know it's the future, and it's good to know swaywm will be there when I make the move.

@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.

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.