Remix.run Logo
phs2501 2 days ago

Does anyone know of a Wayland WM/compositor that does multi-screen like XMonad? Preferably out of the box but I'll take configurable.

For those unaware, though I doubt you're reading this thread if so, I want n desktops that are shared between all screens, not desktops _assigned_ to particular screens. If I summon a desktop on screen 1 and it's currently displayed on screen 2, they should swap.

Ideally also does layouts kind of like xmonad too, not "here's a tiling tree structure and a bunch of commands to manually manage it".

baobun 2 days ago | parent | next [-]

Qtile. It has the corresponding layouts, too.

https://docs.qtile.org/en/stable/manual/ref/layouts.html#mon...

jolmg 2 days ago | parent | prev | next [-]

> If I summon a desktop on screen 1 and it's currently displayed on screen 2, they should swap.

At least i3's (and I imagine sway's) config is sufficiently flexible for that. Here's a shell function that brings the workspace you specify to your current output:

  i3_bring_workspace_to_focused_output() {
    local workspace="$1"
    i3 "
      workspace $workspace 
      move workspace to output $(
        i3-msg -t get_workspaces |
        jq -r '.[]|select(.focused).output'
      )
    "
  }
You can turn that into an executable and have it be called through a keybinding.
rlpb 2 days ago | parent | prev | next [-]

Sway can more or less do it, and I've switched from XMonad to Sway but configured similar to XMonad's default method of operation.

I haven't managed to get it quite right though. For example Sway doesn't seem to be willing to move a workspace to a different monitor if it is empty.

thraxil 2 days ago | parent [-]

Yeah, I switched from XMonad (which I used for over a decade) to Sway a few years back. Spent some time trying to duplicate the XMonad behaviour but eventually just realized that spending a few hours getting used to the Sway approach and slightly changing my workflow was a lot easier.

immibis 2 days ago | parent | prev [-]

> If I summon a desktop on screen 1 and it's currently displayed on screen 2, they should swap.

This is due to a limitation of X11 where a window can't be in two places at once. In theory, Wayland compositors can duplicate the desktop (at the cost of, like, not letting applications know their own window coordinates which seems pretty bad).

phs2501 21 hours ago | parent | next [-]

That's... fine, and a cool trick I guess, but I don't actually want that behavior.

gizmo686 a day ago | parent | prev [-]

> at the cost of, like, not letting applications know their own window coordinates which seems pretty bad

I'm pretty sure Wayland applications already don't know their coordinates.

immibis a day ago | parent [-]

Exactly.