Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling Touchpad #1277

Closed
onlyTrueAki opened this issue Jul 13, 2017 · 4 comments
Closed

Disabling Touchpad #1277

onlyTrueAki opened this issue Jul 13, 2017 · 4 comments

Comments

@onlyTrueAki
Copy link

There are several methods for en-/disabling the touchpad on the fly under X11, however all I found concerning the same thing under wayland is that it is up to the compositor.
Currently the only way to disable the touchpad is to just do it in the BIOS, however that means a reboot anytime I want to change the touchpad status.
If anyone has the time and knowhow to implement this I'd greatly appreciate it.

@ddevault
Copy link
Member

man sway-input

@gerrard00
Copy link

For future web searchers:

swaymsg -t get_inputs

Will let you determine the identifier to use and:

swaymsg input <identifier> events disabled

will disable the device. This is deatils in the man page discussed earlier.

@Michael-AUG
Copy link

For future web searchers:

swaymsg -t get_inputs

Will let you determine the identifier to use and:

swaymsg input <identifier> events disabled

will disable the device. This is deatils in the man page discussed earlier.

That's great. Thanks. Will this persist after reboot, or does it need to be set each time?

@RiedleroD
Copy link

RiedleroD commented Oct 18, 2023

to catch all touchpads (and not have to grep the ID every time) swaymsg input type:touchpad events disabled

you can do the same in your sway config to make it persist:

input type:touchpad {
  events disabled
}

there's likely already a few lines for input, just put them next to each other for readability of your config.

edit: there's also toggle so if you wanted to toggle the touchpad via e.g. alt+space you could do this in your config: bindsym alt+space exec swaymsg input type:touchpad events toggle - though do note that it toggles between on, off and "off while external mouse is being used"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants