Bug 449383

Summary: Also trigger zoom effect with Meta + mouse scroll
Product: [Plasma] kwin Reporter: Edmund Laugasson <edmund.laugasson>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: ivo, nate
Priority: NOR    
Version: 5.23.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: where the zoom desktop effect and its settings are located
here is design proposal

Description Edmund Laugasson 2022-01-30 19:03:42 UTC
Created attachment 146080 [details]
where the zoom desktop effect and its settings are located

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Currently is not possible to configure via KDE Settings the desktop zoom dynamizally using custom key + mouse scroll.

STEPS TO REPRODUCE
1.  Open System Settings. From CLI with US English locale: LC_ALL=C systemsettings5
2.  Workspace behaviour
3.  Desktop effects
4.  Zoom
5.  Configure...

OBSERVED RESULT
There is no option to define key to hold down, while scrolling mouse wheel in order to dynamically zoom desktop in and out, depending on which direction to scroll the mouse wheel.

Currently only via CLI configuration possible to achieve dynamical zoom with mouse as described in Additional information below.

EXPECTED RESULT
There is an option in KDE System Settings to define custom key graphically on keyboard to hold down, while scrolling mouse wheel.

SOFTWARE/OS VERSIONS
GNU/Linux: EndeavourOS
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Currently possible via CLI configuration:
1. install xbindkeys
2. create default configuration:
xbindkeys --defaults > $HOME/.xbindkeysrc
3. open the $HOME/.xbindkeysrc and comment unnecessary key bindings to avoid interfere with other shortcut keys in system.
4. add following lines into file $HOME/.xbindkeysrc in order to get Meta+mouse wheel to zoom dynamically:
# Zoom in
"qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_in""
  m:0x50 + c:133 + b:4
# Zoom out
"qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_out""
  m:0x50 + c:133 + b:5
Defining other key than meta needs further investigation, how to achieve.
5. start or restart xbindkeys
killall xbindkeys && xbindkeys&
6. add xbindkeys to autostart to ensure it will start when logging in
Comment 1 Edmund Laugasson 2022-01-30 19:05:12 UTC
Created attachment 146082 [details]
here is design proposal

This image describes the idea, where the choice of keyboard key could be located to use with mouse scroll
Comment 2 Edmund Laugasson 2022-01-30 19:06:58 UTC
I forgot to add, that there should be also an option to define custom key if no one of them do not fit, what offered. Definitely the custom key should be possible to define.
Comment 3 Thiago Sueto 2022-04-06 19:38:58 UTC
*** Bug 175575 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2022-04-06 19:47:43 UTC

*** This bug has been marked as a duplicate of bug 156082 ***