Replies: 4 comments 7 replies
|
You can move workspaces to a different monitor with a set of binds like: That's as shared as they will get. I personally find the way Paper does shared workspaces a bit weird, especially when your monitors have different resolution. |
|
I would also like to see this happen, but since you've mentioned not liking it, here are a few of my use cases for it:
The main issue is that all workspaces are locked to a monitor, even named ones. Do you think something like this could ever be done, or is it simply not in scope for niri? I guess what I'm trying to do is use the horizontal scrolling but have more fine-grained control over where each workspace goes. |
|
The current issues I had when trying to share workspaces across windows by using named workspaces only:
@YaLTeR Do you know why this doesn't work? current_output=$(niri msg --json focused-output | jq '.name')
workspace_output=$(niri msg --json workspaces \
| jq ".[] | select(.name == \"$1\").output")
if [[ $current_output != "$workspace_output" ]]; then
# TODO there is no focus-monitor?
while true; do
niri msg action focus-monitor-next
new_output=$(niri msg --json focused-output | jq '.name')
if [[ $new_output == "$workspace_output" ]]; then
break
fi
done
fi
niri msg action focus-workspace "$1"
if [[ $current_output != "$workspace_output" ]]; then
focused_workspace=$(niri msg --json workspaces \
| jq ".[] | select(.is_focused == true).name")
echo "Focused: $focused_workspace, move to: $current_output"
niri msg action move-workspace-to-monitor "$current_output"
fiI tried a couple approaches, but none of them worked. I like the way herbstluftwm handles things because it supports both methods. You can optionally lock workspaces to specific monitors so that switching to them will switch to that monitor if on another monitor, but otherwise you can switch to any workspace on any monitor. |
|
@YaLTeR would it be possible to have one set of global workspaces that can be accessed from any monitor? (up/down movement) Ideally, it would skip the ones shown on the other monitors. I would be happy to try and PR this if you think it's plausible with the current code base. |
Uh oh!
There was an error while loading. Please reload this page.
As mentioned niri is inspired by PaperWM. Which I absolutely love, btw! One feature of PaperWM however, which I heavily used, is missing in my opinion and that one is, that the workspaces are shared across the monitors.
While it looks a bit messy, code wise, to implement that I don't think it's too far off and it would be a super cool feature, or am I the only one feeling that?
All reactions