Convergent Windows for KDE Plasma
KDE Plasma windows work well on large screens and can also be tailored for mobile devices. But what if an external screen is connected to a mobile device?
When used on the desktop, Plasma windows have window decorations with titlebar buttons and can be resized and moved around. With Plasma Phone Settings, the windows do not have window decorations and are always maximized. This makes perfect sense on small mobile screens and is exactly what you would expect in Plasma Mobile.
However, if an external screen is connected to the mobile device, you will want to use it in desktop mode (i.e. convergence). There is an idea to add a specific setting in Plasma Mobile to toggle convergence mode.
I thought to myself "there must be a way to achieve this automatically" and here it is:
Convergent Windows is a KWin script which
- removes window decorations and maximizes windows on the first screen (i.e. mobile device)
- shows window decorations and generally uses the default behavior on all other screens (i.e. external screens)
Currently, there's a known limitation with GTK apps: Some GTK apps draw the titlebar buttons inside the window. Those are still visible even if the window decorations are removed.
Convergent Windows can be used with both Plasma Desktop and Plasma Mobile. Note, however, that distributions which provide Plasma Mobile images install also Plasma Phone Settings. This might overrule the desired behavior.