I have 2 monitors, 2 keyboards, 2 mice, and 1 computer. How can I set it up for shared use?

I know this was possible on X but with Wayland maturing I assume it's moved over.

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 6 hours ago* (last edited 5 hours ago)

It is possible, but it is not a wayland limitation per-say but a compositor one (aka the wayland server), and I say "limitation" if the compositor doesn't have multi-display option.

Technically wayland is not the issue:

If you look at your /run/user/[uisd] (uid is probably 1000) you will see the wayland "displays" (socket here), usually named wayland-X. The /run[...] is usually set from $XDG_RUNTIME_DIR while the wayland socket to be used is set in the environment variable $WAYLAND_DISPLAY. So running an application in a 2nd session would just require setting the $WAYLAND_DISPLAY to an other value (that exists).

It seems that Sway is able to do this with the output command.

  • source