zhaoJian's Tech Notes

Linux KDE Plasma6 Wayland Mouse Gesture Software InputActions - Easystroke Alternative

Technology ~3837 words · 10 min read - views

Today I updated to KDE Plasma 6.4.0, which fixed many minor issues. The scaling issue for Linux WeChat under Wayland no longer requires manually setting environment variables.

Taking this opportunity, I tested some software compatibility. I remembered the long-missing mouse gesture tool Easystroke. Since Easystroke doesn’t support Wayland, continuing to rely on X11 isn’t a long-term solution. So I explored alternatives again and finally found InputActions — as of 2025-06-21, the only mouse gesture tool I’ve found that works smoothly on KDE Plasma 6 (Wayland).

Although it can’t perfectly replace Easystroke, common operations like “close window” and “forward/back” can be achieved by mapping gestures to keyboard shortcuts, meeting daily needs.

System Information

Operating System: EndeavourOS
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland

Installation and Usage

Install according to the project documentation. Only supports Plasma 6 Wayland environment, supports mainstream distros like arch, debian, fedora.

I’m on EndeavourOS which is arch-based, so following the arch installation method. First install build dependencies:

Dependencies
Terminal window
sudo pacman -S --needed base-devel git extra-cmake-modules qt6-tools kwin yaml-cpp libevdev
Build
Terminal window
git clone https://github.com/taj-ny/InputActions
cd InputActions
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
Usage
  1. Open “System Settings” > “Window Management” > “Desktop Effects”, scroll to the bottom, check “Input Actions”.

Linux KDE Plasma6 Wayland Mouse Gesture Software InputActions Linux KDE Plasma6 Wayland Mouse Gesture Software InputActions

  1. Click the configure icon to the right of “Input Actions” to open the detailed configuration interface. Click ① “Record stroke” button, then move your mouse to record the gesture trajectory (yes, just move the mouse - no trajectory is displayed and you don’t need to press left or right button, I’ve already stepped in this trap 😂). After recording, click ③ “copy” to copy the recorded trajectory at ② to clipboard. Linux KDE Plasma6 Wayland Mouse Gesture Software InputActions
  2. Create a configuration file combining your recorded gestures.
sudo nano /home/user/.config/kwingestures.yml
# Note: replace 'user' with your username
mouse:
gestures:
- type: stroke
mouse_buttons: [ right ]
conditions:
- $window_class contains chrome
# Specify gesture only works in chrome window
gestures:
- strokes: [ 'AAkAMQBaLP9kVmQA' ]
# Replace content in [ ] with your recorded gesture trajectory
actions:
- on: end
input:
- keyboard: [ LEFTCTRL+W ]
# Replace content in [ ] with the shortcut for the gesture
- strokes: [ 'ZDEAYwAyZAA=' ]
actions:
- on: end
input:
- keyboard: [ LEFTALT+LEFT ]
- strokes: [ 'AC8AAWQ0ZAA=' ]
actions:
- on: end
input:
- keyboard: [ LEFTALT+RIGHT ]

After saving, you need to log out or restart for changes to take effect. After rewriting the config file, mouse gestures may stop working.

References

https://discuss.kde.org/t/available-until-the-end-of-2024-mouse-gestures-support-on-plasma-6-wayland

https://github.com/InputActions/docs/blob/cf320a16a836e267191f8bd9ccbb36450b3b6eb2/configuration.md

Share:

Comments