reddit / emacs

Help integrating windowing commands with an external wm (similar to vim-tmux-navigator)?

grep_Name · 2022-09-10 17:49
I'm new to emacs and elisp, but I'd like to modify (for example) windmove-left so that if it's unable to move left due to being at the edge of the program it instead calls an outside function (in my case "bspc node -f west"). I think if I'm able to accomplish this I should be able to handle switching contexts from the wm back into emacs on the wm side, but I don't know much about elisp hooks and advices yet, could someone let me know at a high level what's the best way to implement this?
h-m-b-tu · 2022-09-10 18:50
See my [answer](https://www.reddit.com/r/emacs/comments/kxdfjb/framemove_with_3_monitors/gj9k9w1/?context=3) on another question.
grep_Name · 2022-09-12 14:39
Thanks! That should get me most of the way there