How to zoom in, out with key+mouse in KDE?

What about using xbindkeys?

sudo pacman -Syu xbindkeys
xbindkeys --defaults > $HOME/.xbindkeysrc

Then edit with your preferred editor the file ~/.xbindkeysrc and add before the end following lines:

# 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

Restart xbindkeys to apply the new shortcut:

killall xbindkeys && xbindkeys

Now you should be able to fully use the zoom effect and don’t forget to add xbindkeys into Autostart kde systemsettings tab.

The shortcut in above lines is meta key + scroll up for zoom in and meta key + scroll down for the zoom out.

2 Likes