r/kde • u/Ok_Solid307 • 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
•
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..
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.
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
2
u/FairLight8 2d ago
Krohnkite is your answer. I can't use my pc without KDE + krohnkite
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.
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.
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/cwo__ 2d ago
In principle it's possible to replace a compositor. But:
I would strongly advise against doing this.