mod+t to tag windows, mod+n to move all tagged windows to the current frame
I have this sort of working. It can only tag a single window since it uses sway's marks and a mark uniquely identifies a single window. And it doesn't work for moving a window into an empty workspace since there has to be an existing window to scribble the _ATTACH_ mark on. But it seems to work well enough for moving a window between containers in a Notion-like way.
# Tag the currently focused window. Untags any previously tagged window.
bindsym $mod+t mark --toggle "TAG"
# Move the previously tagged window to the currently focused container.
bindsym $mod+n \
mark --add "_ATTACH_"; \
[con_mark="TAG"] focus, move window to mark "_ATTACH_"; \
[con_mark="_ATTACH_"] focus, unmark "_ATTACH_"; \
[con_mark="TAG"] focus, unmark "TAG"
It can only tag a single window since it uses sway's marks and a mark uniquely identifies a single window
That seems like a totally reasonable limitation
it doesn't work for moving a window into an empty workspace since there has to be an existing window to scribble the ATTACH mark on
That's unfortunate, might be something to revisit later
But it seems to work well enough for moving a window between containers in a Notion-like way.
Yeah, sounds great, I'll try to test and commit it soon!
Seems to work great, merged, thanks!
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?