Skip to content

feat(settings): add Mouse & Touchpad settings tab for Niri - #2905

Merged
bbedward merged 12 commits into
duxlabs-dev:masterfrom
hthienloc:feat/mouse-trackpad
Jul 22, 2026
Merged

bbedward merged 12 commits into
duxlabs-dev:masterfrom
hthienloc:feat/mouse-trackpad

Conversation

@hthienloc

@hthienloc hthienloc commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

Description

This PR introduces the Mouse & Trackpad settings tab under the System settings category, scoped specifically to Niri compositor.

Key implementation details:

  • Added mouseAccelSpeed, mouseAccelProfile, mouseNaturalScroll, touchpadAccelSpeed, touchpadAccelProfile, touchpadNaturalScroll, and touchpadTapToClick to SettingsSpec.js and SettingsData.qml, calling a unified updateCompositorInput() hook upon changes.
  • Implemented generateNiriInputConfig() inside NiriService.qml to output clean KDL configurations to dms/input.kdl. Options like natural-scroll and tap are formatted as KDL argument-less flag nodes (without true/false arguments) to match Niri KDL grammar constraints.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

image image

Checklist

@hthienloc hthienloc changed the title feat(settings): add Mouse & Trackpad settings tab for Niri feat(settings): add Mouse & Touchpad settings tab for Niri Jul 22, 2026

@bbedward bbedward left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also make it so the new dms/input.kdl is setup by dms setup and the install script?

It can just create the file with niri defaults, this commit is an example of it somewhat: ad43053

@hthienloc
hthienloc force-pushed the feat/mouse-trackpad branch from d087509 to 5043030 Compare July 22, 2026 13:46
@hthienloc

Copy link
Copy Markdown
Member Author

@bbedward I made the changes you requested

include optional=true "dms/binds.kdl"
include optional=true "dms/outputs.kdl"
include optional=true "dms/cursor.kdl"
include optional=true "dms/input.kdl"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can delete the input {} section of this file, and just rely on the included file

@hthienloc
hthienloc marked this pull request as draft July 22, 2026 15:33
@hthienloc
hthienloc marked this pull request as ready for review July 22, 2026 16:22
@hthienloc
hthienloc requested a review from bbedward July 22, 2026 16:32
@bbedward
bbedward merged commit 75eac83 into duxlabs-dev:master Jul 22, 2026
3 checks passed
@purian23

Copy link
Copy Markdown
Member

This looks really nice, good work here!

@hthienloc
hthienloc deleted the feat/mouse-trackpad branch July 23, 2026 05:33
marcusramberg pushed a commit to marcusramberg/DankMaterialShell that referenced this pull request Sep 2, 2026
…ev#2905)

* feat(settings): add Mouse & Trackpad settings tab

* style(settings): clarify touchpad natural scroll description

* chore(settings): update settings search index

* refactor(settings): unify Mouse & Trackpad terminology to Mouse & Touchpad

* feat(setup): deploy default dms/input.kdl on setup

* style(niri): restore include section comment in base config template

* refactor(niri): remove redundant input block from base config template

* refactor(niri): restore keyboard and non-mouse input config to base template

* feat(settings): add touchpad disable-on-external-mouse toggle

* feat(settings): add left-handed, scroll-factor and dwt options

* feat(settings): add middle-emulation, scroll-method, tap-and-drag and drag-lock options

* refactor(settings): re-order mouse and touchpad UI options logically
@bbedward bbedward mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mouse Acceleration Setting

3 participants