Bug 485529

Summary: Support a shortcut for toggling the legacy applications scaling mode
Product: [Applications] systemsettings Reporter: Sin Jeong-hun <typingcat>
Component: kcm_kscreenAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: plasma-bugs-null
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sin Jeong-hun 2024-04-14 09:32:37 UTC
I need both "Apply scaling themselves" and "Scaled by the system", depending on the X11 app I am using. Some more recent X11 apps, such as Android Studio or VS Code, support scaling themselves, but a lot of older X11 apps, such as Qt5-based ones, do not support self-scaling. I have tried `export QT_SCALE_FACTOR`, but the mouse pointer pointed wrong items when trying to click a submenu of  their main menu, and the window content was not painted correctly (they were blank until I resized or moved mouse over them), so QT scaling was not very useable.

It's inconvenient and time-consuming to repeatedly open the Display Configuration and change it every time. I wish that toggling this setting was possible with a system-wide shortcut (Input & Output -> Keyboard -> Shortcuts -> System Settings).
Comment 1 Vlad Zahorodnii 2025-01-10 12:33:54 UTC
This seems like a really niche case, also in order to propagate the new settings properly, you'll need to restart the computer. You could create a custom shortcut that runs a kwriteconfig command to update the config, e.g. `kwriteconfig6 --file kdeglobals --group KScreen --key XwaylandClientsScale true`