Skip to content

Conversation

@barrulus
Copy link

@barrulus barrulus commented Jan 26, 2026

Summary

  • Adds a new toggle-touchpad action to toggle the touchpad on/off at runtime without editing the config file
  • Can be bound to a key or invoked via IPC with niri msg action toggle-touchpad
  • The toggle state is combined with the config's off setting - both must allow the touchpad for it to be enabled

Notes

  • State resets on restart
  • Applies to newly hot-plugged touchpads

Test plan

  • Bind toggle-touchpad to a key and verify it toggles touchpad input
  • Test via IPC: niri msg action toggle-touchpad
  • Verify interaction with config off setting
  • Hot-plug a touchpad while toggled off and verify it stays off

Adds a new action to toggle the touchpad on/off at runtime without
editing the config file. Can be bound to a key or invoked via IPC
with `niri msg action toggle-touchpad`.

The toggle state is combined with the config's `off` setting - both
must allow the touchpad for it to be enabled. State resets on restart
and applies to newly hot-plugged touchpads.
@helixoid
Copy link

Question: Can this allow me to disable touchpad when I plug any mouse through usb when gaming so touchpad input get disabled and re-enabled upon disconnecting the mouse?

@barrulus
Copy link
Author

Yes. Because there is an ipc call, you can script an action to run the ipc call on whatever system event you want. You could also bake it into the start of your game!

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.

2 participants