Skip to content

About

Four-finger touchpad navigation for KDE Plasma's overview (plasma 6+)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

inputactions-overview-gestures

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.

Gestures

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.

Requirements

  • KDE Plasma 6 (developed/tested on KWin 6.8.4)
  • The InputActions KWin plugin (kwin_gestures) installed and enabled
  • inputactions CLI available for config reload / config issues

Karousel is not needed — nothing in this config calls its shortcuts. It can stay installed, enabled or disabled as you like.

Install

git clone https://github.com/SuDefRequests/kwin-overview-swipe.git kwin-slide
cd kwin-slide
./install.sh

Or 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 nothing

install.sh backs up an existing config to ~/.config/inputactions/config.yaml.bak.<timestamp>.

Why it is built this way

  • Two-state behaviour — $plasma_overview_active is 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 in src/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.
  • interval is a motion-delta step, not milliseconds. Horizontal swipes use interval: 75 for a smooth glide; vertical and diagonal swipes use limit: 1 because extra Down/Up presses at the last row fall through to KDE's "activate adjacent desktop view" code.
  • Pointer parking — KDE's WindowHeapDelegate.HoverHandler calls resetSelected() 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) using MOVE_BY -10000,-10000. Relative mouse motion is required here: KWin silently ignores the absolute MOVE_TO action from InputActions' virtual mouse, so MOVE_TO 0,0 looked 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.

Uninstall

ls ~/.config/inputactions/*.bak.*   # find your backup's timestamp
cp ~/.config/inputactions/config.yaml.bak.<timestamp> ~/.config/inputactions/config.yaml
inputactions config reload

About

Four-finger touchpad navigation for KDE Plasma's overview (plasma 6+)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages