Thanks to /u/azvasKvklenko@sh.itjust.works 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

  • Orac
    link
    fedilink
    17 days ago

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

    • Fushuan [he/him]OP
      link
      fedilink
      English
      611 days 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.

    • @ReversalHatchery@beehaw.org
      link
      fedilink
      English
      411 days ago

      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.

  • @Corr@lemm.ee
    link
    fedilink
    711 days ago

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

  • 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.

    • Fushuan [he/him]OP
      link
      fedilink
      English
      311 days 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 :)

    • @beforan@lemm.ee
      link
      fedilink
      English
      211 days 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

  • @tenchiken@lemmy.dbzer0.com
    link
    fedilink
    311 days ago

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

    “You get back in the dumpster where you belong!”

  • @harsh3466
    link
    211 days 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.