Bug 475876 - Support additional mouse keys as modifiers
Summary: Support additional mouse keys as modifiers
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (show other bugs)
Version: 5.27.8
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-20 13:13 UTC by Thomas Capricelli
Modified: 2024-04-25 16:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2023-10-20 13:13:35 UTC
In most window managers, but not kwin, I can configure my mouse additional keys as modifiers.

I think plasma/wayland supports configuring those keys as a plain input (says 'x', or even a sequence of inputs i suppose). But, to my knowledge, doesn't support modifiers yet.
I.. think (but not sure), that it's handled by kglobalaccel.
There are lot of tickets about mapping keys/macros to mouse buttons, but this is not what i'm talking about.

The more obvious use case is to use those buttons to move/resize windows. This is of uttermost usefulness, believe me. And this is the reason i use kde/plasma without kwin for a very long time. And now that's the last point preventing me to switch to wayland, as most 'traditional' window managers haven't moved to wayland.

As an exemple, here's how it's configured in openbox:
      <mousebind button="button8" action="Drag">
        <action name="Resize"/>
      </mousebind>
      <mousebind button="button9" action="Drag">
        <action name="Move"/>
      </mousebind>
Comment 1 David Redondo 2023-10-23 06:36:16 UTC
Confirmed, we are not allowing modifiers only at the moment there, I think it could be added easily as we are not going through kglobalaccel
Comment 2 Thomas Capricelli 2023-10-29 01:23:33 UTC
Can I help in any way ?
Comment 3 Bug Janitor Service 2024-03-28 15:06:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2156
Comment 4 David Redondo 2024-04-03 08:18:07 UTC
Git commit e5b5816d6d8b92a789ea042828ec0aadc6377b74 by David Redondo.
Committed on 03/04/2024 at 08:11.
Pushed by davidre into branch 'master'.

kcms/mouse: Allow binding modifiers to mouse buttons

This can be useful for example to do window managment via Meta key.

M  +2    -0    kcms/mouse/kcm/libinput/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/e5b5816d6d8b92a789ea042828ec0aadc6377b74
Comment 5 Thomas Capricelli 2024-04-25 16:46:23 UTC
Ok. The patch seems very minimalist. I guess I can not move/resize windows with just a mouse key, right ?
It's only acting as a modifier. I'll open another ticket for that.