Bug 485529 - Support a shortcut for toggling the legacy applications scaling mode
Summary: Support a shortcut for toggling the legacy applications scaling mode
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kscreen (show other bugs)
Version: 6.0.3
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-14 09:32 UTC by Sin Jeong-hun
Modified: 2025-01-10 12:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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`