←back to thread

84 points clircle | 4 comments | | HN request time: 0.611s | source
1. phs2501 ◴[] No.45310736[source]
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".

replies(3): >>45310874 #>>45311280 #>>45312018 #
2. jolmg ◴[] No.45310874[source]
> 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.
3. baobun ◴[] No.45311280[source]
Qtile. It has the corresponding layouts, too.

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

4. rlpb ◴[] No.45312018[source]
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.