this post was submitted on 26 Apr 2024
118 points (98.4% liked)

Linux

48039 readers
770 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Thanks to /u/[email protected] for mentioning KDE window rules. In KDE, we can add rules for windows so that they behave in specific ways. One rule that can be added is the position: remember rule, and it's possible to make that rule apply to all windows by removing the match field. This way, closing and reopening windows keeps them where they were.

This is a very typical complaint about wayland that a lot of people have, something that apparently worked natively with X11 and annoyed me to no end since I had to position all the windows every day when logging into my desktop. No more! I hope this helps :)

https://imgur.com/a/zrvbRPI

top 18 comments
sorted by: hot top controversial new old
[–] [email protected] 15 points 6 months ago (2 children)

This fix is hillarious. Why isnt that default, if such a powerful feature exists??

[–] [email protected] 6 points 6 months ago

It wasn't needed in x11 so I guess it wasn't made default when Wayland dropped, since it's something extra that the DE is checking. In any case, I have plenty processing power to spare for this fix so it's fine by me.

[–] [email protected] 4 points 6 months ago (1 children)

Usually the program manages this for itself, among a few other things, so normally this is not needed, but it seems wayland does not allow them to set their own location.

[–] [email protected] 6 points 6 months ago* (last edited 6 months ago) (1 children)

Yes and that is known. Programs are not able to see the screen, as this can be fingerprintable or other issues. So they cannot place themselves.

So this is the obvious solution!

[–] [email protected] 1 points 6 months ago (1 children)

They don't shouldn't need to see the screen just to position themselves on it. Or do you mean the screen size?

[–] [email protected] 1 points 6 months ago

Yes they need to know screen size, layout, DPI, arrangements

[–] [email protected] 7 points 6 months ago

I was literally just looking this up 30 minutes ago. Incredible timing. Thanks for sharing

[–] [email protected] 6 points 6 months ago

Thanks a bunch for this, just what I was looking for!

[–] [email protected] 5 points 6 months ago (1 children)

Why on earth isn't this the default behavior lol, who is out there wanting their windows to just open up randomly.

[–] [email protected] 0 points 6 months ago* (last edited 6 months ago)
[–] [email protected] 5 points 6 months ago (2 children)

Is there a rule to make sure when you open a window on one virtual desktop or on one screen it stays on that screen and doesn't try to open on your current desktop? Sometimes I try to switch desktops before an app has launched and it opens up right where I'm trying to do something else.

[–] [email protected] 3 points 6 months ago

There's a virtual desktop property and it has the remember value, bu5bidk of it will work since I have just a single virtual desktop. Go test :)

[–] [email protected] 2 points 6 months ago

There is definitely this for activities, so I'd be surprised if there isn't for virtual desktops given how much more popular/supported they are

[–] [email protected] 3 points 6 months ago

First time reading this, thought talking about MS Windows for just a moment....

"You get back in the dumpster where you belong!"

[–] [email protected] 2 points 6 months ago

This is great. Thank you for sharing!! I was just thinking about how I wanted this and knew it had to exist in the settings but hadn’t gotten around to looking up how to accomplish it.

[–] [email protected] 2 points 6 months ago

This does not remember the position of each individual window, though. i.e. all programs will (still) open on the same position.

[–] [email protected] 0 points 6 months ago (1 children)

Is there a GNOME extension for this?

[–] [email protected] 2 points 6 months ago

No idea, you'll have to search around.