https://bugs.kde.org/show_bug.cgi?id=420493

--- Comment #8 from Yevhen <xalt7x.serv...@gmail.com> ---
(In reply to Yevhen from comment #7)
> I've tested Andrey suggestion from
> https://bugs.kde.org/show_bug.cgi?id=453506#c3
> Since Plasma 5.8 we can bind "Modifier-only" KWin shortcut (for now it could
> be "Meta", "Alt", "Shift" and "Control", according to the
> https://invent.kde.org/plasma/kwin/-/blob/Plasma/5.27/autotests/integration/
> modifier_only_shortcut_test.cpp) which triggers action on release (not
> press).
> So I assigned "Shift" to the qdbus command to switch the keyboard layout
> 
> kwriteconfig5 --file kwinrc --group 'ModifierOnlyShortcuts' --key 'Shift'
> 'org.kde.keyboard,/Layouts,org.kde.KeyboardLayouts,switchToNextLayout'
> qdbus org.kde.KWin /KWin reconfigure
> 
> Looks like this is the way! Now I can switch keyboard layouts with a single
> "Shift" press. But when I use combinations involving "Shift", the keyboard
> layout doesn't change and combinations seem to work properly. E.g., I can
> type capital letters and other symbols, use Ctrl+Shift+V paste on a terminal
> emulator, etc.

P.S. qbbus method call for "Alternative shortcut" (which supports "OSD on
layout change" on both Wayland and X11) works as well:
kwriteconfig5 --file kwinrc --group 'ModifierOnlyShortcuts' --key 'Shift'
'org.kde.kglobalaccel,/component/KDE_Keyboard_Layout_Switcher,org.kde.kglobalaccel.Component,invokeShortcut,Switch
to Next Keyboard Layout'
qdbus org.kde.KWin /KWin reconfigure

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to