Re: cwm(1) without warping the pointer
Crystal Kolipe <[email protected]> Sat, 04 Jul 2026 12:13:40 -0000
| Newsgroups | gmane.os.openbsd.misc |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jul 04, 2026 at 01:49:47PM +0200, Walter Alejandro Iglesias wrote: > If, like me, you prefer the keyboard, any time you want to go back to > (or alternate with) the window you were previously working on, you > depend on the cycle stack If you prefer the keyboard, why not just use the 'menu-window' function which lets you display a list of currently open windows and navigate them using the cursor-up or cursor-down keys. By default the menu displays no entries and expects you to either start typing a search string or hit control-a to display all windows. The following trivial diff inverts that logic to display the list without the need to explicitly hit control-a: --- menu.c.dist +++ menu.c @@ -105,8 +105,7 @@ mc.geom.x = xsave; mc.geom.y = ysave; - if (mc.flags & CWM_MENU_LIST) - mc.list = 1; + mc.list = 1; (void)strlcpy(mc.promptstr, prompt, sizeof(mc.promptstr)); if (initial != NULL)