emacs/var/elfeed/db/data/b5/b5195d73ebab71823abaf4bf1d8576cb62cc5d4e
2022-01-03 12:49:32 -06:00

1 line
2.1 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>First off, I want to thank this community for all the help I have gotten both through explicitly asking questions and just through watching others questoins. </p> <p>&#x200B;</p> <p><strong>Main point:</strong> </p> <p>I recently switched to EXWM because its awesome. I found some rough edges that I have been trying to smooth out and wanted to share a particularly simple one. </p> <p>The EXWM wiki suggets merging framemove with windmove to move between workspaces on two different monitors. I found that framemove considers not just visible workspaces but also inactive (invisible) workspaces. Imagine the following setup</p> <p><code>Monitor 1: assigned workspaces 0 and 1; currently showing workspace 1</code></p> <p><code>Monitor 2: assigned workspaces 2; currently showing monitor 2. Focus is on workspace 2.</code> </p> <p>Trying to move across frames using framemove could actually cause focus to not just switch to monitor 1 but also monitor 1 to change from showing workspace 1 to workspace 0. </p> <p>Turns out it was pretty simple to modify framemove to restrict to only considering currently active frames using the predicate function `exwm-workspace--active-p`. </p> <p>&#x200B;</p> <p>In case anyone else runs into this issue take a look at my forked version of framemove: <a href="https://github.com/jsilve24/framemove">https://github.com/jsilve24/framemove</a>. </p> <p>&#x200B;</p> <p>Honestly, it seems rediculous that I forked this repo since my contribution is essentially nil. That said, I really wasn&#39;t sure a better way since the original library is on the emacswiki and also maintained by the emacsmirror github user. </p> <p>&#x200B;</p> <p>That said, hope this helps someone else.</p> <p>&#x200B;</p> <p>Cheers.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/JustinSilverman"> /u/JustinSilverman </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/qzy21l/framemove_but_improved_for_exwm/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/qzy21l/framemove_but_improved_for_exwm/">[comments]</a></span>