Four-finger touchpad navigation for KDE Plasma's Overview, implemented purely as an InputActions config. No KWin source changes, no patched binaries.
Lift your fingers to activate the highlighted window — no extra tap.
| Gesture | State | Result |
|---|---|---|
| 4-finger swipe up | outside Overview | Open Overview (stays open) |
| 4-finger swipe left / right | inside Overview | Move selection horizontally (continuous while fingers move) |
| 4-finger swipe up / down | inside Overview | Move selection one row |
| 4-finger swipe diagonals | inside Overview | Jump to the other row in a single gesture |
| Lift fingers after any selection swipe | inside Overview | Activate the highlighted window immediately |
| 4-finger tap | inside Overview | Close Overview without activating anything |
| 4-finger pinch in | inside Overview | Same as above |
KWin's built-in 4-finger desktop switching is suppressed with block_events: true on every
trigger, so these swipes never switch virtual desktops behind the Overview's back.
- KDE Plasma 6 (developed/tested on KWin 6.8.4)
- The InputActions KWin plugin (
kwin_gestures) installed and enabled inputactionsCLI available forconfig reload/config issues
Karousel is not needed — nothing in this config calls its shortcuts. It can stay installed, enabled or disabled as you like.
git clone https://github.com/SuDefRequests/kwin-overview-swipe.git kwin-slide
cd kwin-slide
./install.shOr manually:
cp config.yaml ~/.config/inputactions/config.yaml
kwriteconfig6 --file kwinrc --group Plugins --key kwin_gesturesEnabled true
qdbus-qt6 org.kde.KWin /KWin org.kde.KWin.reconfigure
inputactions config reload
inputactions config issues # must print nothinginstall.sh backs up an existing config to ~/.config/inputactions/config.yaml.bak.<timestamp>.
- Two-state behaviour —
$plasma_overview_activeis a computed variable provided by the InputActions KWin plugin. The same physical swipe means different things depending on whether Overview is open. block_events: true— KWin registers hard-coded 4-finger swipe handlers insrc/virtualdesktops.cpp; there is no kwinrc switch to turn them off. Blocking the events in InputActions is the only config-level way to override them.intervalis a motion-delta step, not milliseconds. Horizontal swipes useinterval: 75for a smooth glide; vertical and diagonal swipes uselimit: 1because extra Down/Up presses at the last row fall through to KDE's "activate adjacent desktop view" code.- Pointer parking — KDE's
WindowHeapDelegate.HoverHandlercallsresetSelected()whenever hover changes, which can clear the keyboard selection even though the blue box is visible. On Overview open the pointer is moved to the top-left corner (off the thumbnails) usingMOVE_BY -10000,-10000. Relative mouse motion is required here: KWin silently ignores the absoluteMOVE_TOaction from InputActions' virtual mouse, soMOVE_TO 0,0looked fine in the config but never actually moved the cursor. This is what fixed the intermittent "rectangle on the window but lifting opens a different window" behaviour — the cursor now sits still, outside the grid, so hover cannot clear the selection. - Instant activation — Enter is sent directly on
on: end. No sleep/double-press workaround is needed once hover cannot reset the selection.
ls ~/.config/inputactions/*.bak.* # find your backup's timestamp
cp ~/.config/inputactions/config.yaml.bak.<timestamp> ~/.config/inputactions/config.yaml
inputactions config reload