Nama / swayrst

Restore workspaces in sway to displays and move applications to saved workspaces
MIT License
54 stars 7 forks source link

Move multiple windows of the same program #3

Closed MNolan147 closed 1 year ago

MNolan147 commented 1 year ago

Currently, the script doesn't know what to do when there are multiple windows of the same program that need to be arranged.

Nama commented 1 year ago

I hope @roselandgoose will do a PR with the code which implements this. If not, I'm gonna do it in a few days. https://github.com/swaywm/sway/issues/1005#issuecomment-1278150088

Nama commented 1 year ago

Implemented @roselandgoose code with 7580bc1f9151d2980c0ccd635b1822c1824675cd.

Window titles are compared. That means, that if you have another website open in your browser, it wont be possible to match. But then it still moves them separately to the correct workspaces. Might just be the wrong windows^^