Plasma’s restore session functionality has started working for me relatively recently, but there’s one thing that bugs me: all my windows are just dumped together into the same activity and workspace I’m in at login, so it becomes a big mess.
Is there a setting somewhere that tells it to respect the last position of the windows?
My understanding is that not saving window size and placement is a limitation of Wayland right now (for security reasons that it’s trying to address rather than ignore like xorg I think?). I think it’s something that’s planned to be added eventually, but who knows when that might be. It is frustrating in the meantime I agree.
Take all this with a large grain of salt of course, I am by no means an expert on the matter and am just repeating what I read when I looked into it myself a year ago or so.
Your are right, it’s not implemented yet in Plasma Wayland. It must be done in Plasma/KWin itself since top-level Wayland windows can’t position themselves on screen and don’t even know their coordinates (and doing it on the application side is not really correct since not all apps will support it and it duplication of work and code, while compositor can do it consistently for all windows). However it just doesn’t work yet.
I have simply created custom rules for the respective programs and the associated open windows. Since these are standard programs anyway, which I always have open or want to open again on the same activity with the same arrangement. So I set up one for gaming, Internet, multimedia and work. This works without any problems.
Just to say that I have the same question/problem ! 😌
@lascapi @QuazarOmega You can set rules for a lot of options for application windows.
How do you use workspaces? I’ve not figured out if they can help me.
I group together apps that I want to use together, usually in split screen, and also those that are logically related, say I’m doing web browsing and also listening to music, even if it’s just two apps (browser and music player), they aren’t related by one task, so I put each on their own workspace. Now add that I’m writing down information from the browser, I’ll open the text editor in the same workspace because the info between the two is related and I need to see both at the same time. These are just examples, but things are even more flexible since Plasma allows you to keep a window in multiple workspaces and even multiple activities at the same time, I have examples of that too if you’re curious about the logic
Maybe I just don’t use enough apps to make it desirable? Work chat, browser, and IDE for work; discord, browser, IDE for fun.
It’s not about the number really, I started getting used to it since using Gnome, there the workflow is pretty workspace oriented, by default I think you can’t even access the minimise button on windows, I found it super convenient mainly so I don’t have to dig through the various windows I may have by cycling one after the other with Ctrl+tab, I just lay them out in a way that maps to a physical position so I do Meta+Ctrl+arrow left/right and know what I’m getting (most of the time, because on Plasma there aren’t yet dynamic workspaces as far as I’m aware, so sometimes I’ll end up in an empty one after clearing out some windows and forgetting about it, unlike on Gnome)