r/kde • • 2d ago

Question Specifically changing KDE Window Manager

Hi! I already asked a similar question to this subreddit but here I'm trying to be more precise (I btw will soon switch from Windows 11 to Cachy OS + KDE as my first Linux experience/distro). Is it possible to force KDE's own WM to switch to another WM like MangoWM or Hyprland whenever a window/program is launched? With a script or something else

6 Upvotes

23 comments sorted by

•

u/AutoModerator 2d ago

Thank you for your submission.

Consider donating to KDE and help the project thrive!

The KDE community supports the Fediverse and open source social media platforms over proprietary and user-abusing outlets. Consider visiting our community on Mastodon (Lemmy will be back shortly). Tag us in your toots! You can also visit our forum at KDE Discuss to talk about KDE stuff, brainstorm ideas and get the answers to your KDE-related issue.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/naikologist 2d ago

You have either kwin or another wm but never both at the same time.

This being said, it is no problem to install another WM on a running kde system. You choose a session in the login screen (SDDM) and they happily coexist for you to have a pick. Ok, they May use the same theming files and this can mess a little with the asthetics, but nothing will break fatally.

I personally have a debian system with kde and niri, though the plasma (kde) session is more of a fallback and convenient because i like most of kdes default apps and would have installed them anyways..

1

u/Ok_Solid307 2d ago

Yeah that's what I'm starting to understand but doing that or using a kwin script like someone said is I think the best thing to do for my matter

1

u/ldn-ldn 2d ago

You can technically have both, in a nested session. But that's not what OP wants.

8

u/skyfishgoo 2d ago

if you have no experience with linux then i would highly recommend a more catered experience and learn the limits of that before wanting to immediately frankensein together a desktop that no one can help you with.

kubuntu is a good solid distro an i have no regrets about picking it.

the plasma desktop with the default kwin WM is more than up to the task of anything in need to do.

1

u/Ok_Solid307 2d ago

Oh yeah yeah no worries, I'm not trying to frankenstein my way into something that might nuke my OS/computer, just trying to see if my idea could work but I received other ways of doing stuff, but thanks for the answer!

2

u/r_n_c 2d ago

What are you actually trying to achieve? And how much Linux experience do you have?

I personally use Fedora distros on both personal and work computers

1

u/Ok_Solid307 2d ago

I just wondered if I could slap say for example Hyprland on top of KDE Plasma as a replacement of KDE's own WM, a thought that striked me recently while doing some research on Linux. And I'm fairrly new to Linux say this may be why my question is not the most precised-

1

u/r_n_c 2d ago

That doesn't make much sense ... why install KDE if you're trying to replace it?

That still doesn't answer 'why' - for instance are you interested in trying out different window manager or are just wanting to see how ideas like tiling work in practice?

Also how important is your system ie do you value your data/setup/stability? For instance I prefer Fedora partially due to I'm used to a rpm based system but most importantly I value stability, security and dependable release schedule. As to the window manager - well KDE is very customisable and if it's tiling you're interested in, as others have said, there have been several projects of later to extend kde native facilities to add support for that.

2

u/FairLight8 2d ago

Krohnkite is your answer. I can't use my pc without KDE + krohnkite

2

u/Ok_Solid307 2d ago

You're the third to tell me that so i'll take a look at that

2

u/TheBezac 2d ago

Take a look to PlasmaZones too. Just awesome ! https://github.com/phosphor-works/PlasmaZones

2

u/FaultWinter3377 2d ago

So basically KDE running on Hyprland instead of kwin? I don’t know if that’s even possible, let alone feasible for someone completely new to Linux. 99% sure kwin is baked into KDE too far for that. However there are scripts and extensions that add tiling management to KDE instead.

1

u/Ok_Solid307 2d ago

Yeah other's said the same thing and this is what I might do, thanks!

2

u/jpetso KDE Contributor 2d ago edited 2d ago

If you want to use Plasma as a desktop environment, it needs all the Wayland protocol extensions that KWin provides. Many of them are KDE-specific functionalities, so in practice, you can't replace KWin inside a Plasma session.

KWin can be used to power a few other environments apart from Plasma. KWin is one of the compositor options for LXQt, and Mercedes-Benz use it for their automotive interface. This is very niche.

You can also load KWin scripts/plugins to change its behavior in certain spots. Like Krohnkite, Polonium, Plasma Zones, Mouse Tiler, these kinds of extensions. This is more common. People are building (or vibeslopping) more of these all the time.

But for what you're asking, the answer is essentially no. If you want to run Hyprland, you don't do it in a Plasma session. You log out of Plasma, and start Hyprland in a different session on the same user account.

Hyprland has its own ecosystem of panels and window management settings. Most other environments do as well. You can install them side by side with Plasma.

Wayland apps can work in all of them, apart from a handful of specialized tools. Your choice of compositor / window manager / desktop environment does not have to dictate your choice of apps.

2

u/Ok_Solid307 2d ago

Thanks for thisvery detailed answer. After some thinking and consideration with y'alls answers, I think I'll both have KDE Plasma with Krohnkite on top and MangoWM installed and just casually switch between both throughout mu uses of Linux to see which suits me best

5

u/ldn-ldn 2d ago

What do you mean by switching to different WM when launching an app? What should happen with apps which were launched before? Should they just disappear or something. Your question doesn't really make sense.

1

u/guysimnotemo 2d ago

no but if you strictly want the tiling there is krohnkite and other similar kwin scripts

1

u/Ok_Solid307 2d ago

I might need to look into that, when doing so research, I first leaned into KDE as the closest Windows-like GUI/experience but I then discovered WMs like Hyprland or MangoWM and really liked that way of using a computer
But this might be a good in between other than installing both and changing into the logging screen

1

u/guysimnotemo 2d ago

i’ve personally used tiling window managers for a while after i got into linux but eventually settled back to kde or gnome, i dont really need the tiling but it was fun

1

u/Ok_Solid307 2d ago

As someone coming from Windows, I kknow it'll be hard to change my habits if I even change how the windows/desktop works but I also really wanna try something different for once so Khronkite it will be and I'll see if I like that or not!

1

u/cwo__ 2d ago

In principle it's possible to replace a compositor. But:

  • many apps will crash, because they can't handle switching compositors. Even if you just restart the same compositor. (KDE apps often survive this, but not even all of them. Firefox is always dead). And even the ones that survive may be bugged in some form.
  • Plasma in general requires kwin. It uses a bunch of Plasma-specific wayland protocols that only kwin supports (because they're specific to implementing Plasma features).

I would strongly advise against doing this.

1

u/Ok_Solid307 2d ago

Okay! Thanks for this and as other's recommanded me doing, I'll have both MangoWM and KDE Plasma installed and just casually switch between the two to see which I prefer in my time using Linux