by phs2501 · 1y ago · 0 comments
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".
https://docs.qtile.org/en/stable/manual/ref/layouts.html#mon...
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.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).
I'm pretty sure Wayland applications already don't know their coordinates.
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.