Long time KDE/Plasma user here (since 3 days). Recently I picked up a new laptop with a screen that folds over to make it tablet like. Plasma makes it pretty easy to configure the various modes, so I wanted to share my setup in case it was useful to anyone else.
Addons:
The laptop has a touch screen, which can fold around and the device can be operated like a tablet. Everything seems to work great under linux (aurora) except for the sensor which detects that the screen is flipped around. Thus, I wanted to add functionality to toggle tablet mode (kde’s tablet mode to widen spacing for finger use + disable keyboard and mouse). Additionally, I wanted to be able to toggle the touch screen as I don’t need it in touch screen mode most of the time.
The system I came up with is to use the Configurable Button widget in the panel along with a bash script.
![]()
These are 3 configurable buttons. The first simply activates the overview mode
/usr/bin/qdbus-qt6 org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut “Overview”
This is useful in tablet mode, but I’ll come back to it later.
The next icon toggles between laptop and tablet mode by running the tablet script
/home/xian/.local/bin/tablet -d
or
/home/xian/.local/bin/tablet -a

The configurable button is able to update icons when activated, and thus displays the status.
The last icon is again a configurable button, and it too toggles between the touch icon and a screen icon while running /home/xian/.local/bin/tablet -s
![]()
As an extra bonus mode, I was also playing around with the kwin script touch screen virtual desktop manager. This configures kwin to launch new applications maximized on their own virtual desktops. Thus you can swap between apps by three finger left or right swiping between desktops, but I’ve also found just having a button for the overview mode (or 4 finger swipe up) is useful. This makes kde act a bit more like a tablet OS.
In summary, the configurable button widget along with KDE’s scriptablity is a really powerful and useful combination. Hopefully this helps others or sparks ideas.