Edit: I want a graphical window switcher that's fully keyboard controlled, so I can see the windows before switching them.

The screenshot is from hyprland-easymotion which only shows labels for visible windows. I want a switcher that allows for both switching to windows or the same, or from any app, using just the keyboard and no mouse.

Ideally I could go to a window without pressing tab or another key a bunch of times, perhaps select any window (visible or not) with a letter like easymotion.

all 17 comments

sorted by: hot top controversial new old
[–] 3 points 10 months ago (3 children)

I think Mangowm and maybe even base dwl have a feature like this, where it shows you windows from other workspaces as well in an overview and you can switch between them, but not entirely sure because i personally don't use it much aside from trying it once or twice.

  • source
  • hideshow 3 child comments
  • [–] 3 points 10 months ago (2 children)

    How many windows do you usually have open in a workspace? Wouldn’t the usual Meta+Direction shortcuts be quick enough for 2-4 windows?

  • source
  • hideshow 2 child comments
  • [–] 1 point 10 months ago

    I guess, those don't work for hidden/minimized windows.

    Perhaps worth considering a bspwm-like workflow. Rather than minimizing windows, you put them onto another workspace. Just absolves you from dealing with the whole concept of minimized windows...

  • source
  • parent
  • [–] 5 points 10 months ago

    Have you tried "niri" wm? Pair it with dankmaterialshell or noctalia-shell for a desktop feeling (cosmic is also and option.)

    The keyboard based control you are looking for is almost met, but not quite. That said, you might find this kind of a navigational wm works well for you, based on your description.

    The niri website has a decent video demo.

  • source
  • [–] 1 point 10 months ago (3 children)

    Idk if I follow. I believe the default keybinds in hyprland allow you to switch between windows using super+J/K/L/;, and between workspaces using super+number. Hyprland, like all tiled window managers, are specifically designed to be used exclusively with a keyboard.

    Are you asking for something more like alt+tab on windows? Where it shows a little preview of all the windows? I think that's kind of obviated by the concept of a tiled window manager.

  • source
  • hideshow 3 child comments
  • [–] 3 points 10 months ago (1 child)

    This is better than directional arrows or alt tab because you can go directly to any window with one binding to open the utility and a second key to type a window label.

    https://github.com/edzdez/sway-easyfocus

    The beauty is that it’s the same short process to go to any window no matter if if you 15 visible windows across 3 monitors.

    You don’t have to conceptually switch to an output and then to a window or type a string of directional keys like Super+LLLLLJJ

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 10 months ago (4 children)

    Try sway. It's great and just works.

  • source
  • hideshow 4 child comments
  • [–] 5 points 10 months ago (1 child)

    Does sway have the feature OP is asking for, or are you just suggesting a different tiling window manager, and they would still be left solving the same problem?

  • source
  • parent
  • hideshow 1 child comment
  • 9 comments in c/linux@lemmy.world view that post
    [–] 4 points 10 months ago (2 children)

    Sway. Windows manager, switcher... all that. Fully keyboard controlled. You can change any key combination you don't like. :)

  • source
  • hideshow 2 child comments
  • [–] 2 points 10 months ago (3 children)

    So this is not exactly what you want, but have you seen the rofi -show window feature? There's no preview of the window, but it does display the title even if the window is not on the current workspace.

  • source
  • hideshow 3 child comments
  • [–] 1 point 10 months ago (2 children)

    rofi works in Wayland now? I know there's like a fork that supports Wayland?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 10 months ago (1 child)

    I don’t know if I understood correctly but I have seen this maybe this helps:

  • source
  • hideshow 1 child comment
  • 2 comments in c/linux@programming.dev view that post
    [–] 3 points 10 months ago

    You can switcj windows using keyvoard with apps like krunner, rofi, etc. Not exactly what you described/wanted.

  • source
  • [–] 1 point 10 months ago

    I like rofi for this use case, but it uses fuzzy search instead of labels. You might have to type more than one letter, depending on what windows you have open. OTOH if you know any part of the window title you can start typing immediately without having to scan a list for a label first.

    Labels work well for jumping to something you can already see, because the label appears where you are already looking, so you see it immediately. I'm guessing the process of finding the label for a window that is not visible would be clunkier - you'd have to find the label in a possibly long window list.

  • source
  • 1 comment in c/hyprland@lemmy.world view that post
    [–] 1 point 10 months ago

    I think you want something similar to my setup... I rarely position and focus windows with the mouse.. only for certain apps that don't resize well into my predefined regions. I believe it's somewhat similar to what Rectangle can do on OS/X, although I only stumbled upon that later.

    Here's something I put together for the (not-hyperland) compositor LabWC: https://github.com/labwc/labwc/issues/1001 (and have done similar with X11/OpenBox previously) which might serve as explanation and inspiration. Your post inspired me to rebase and clean up the patch, so thanks.

  • source