You are not logged in.
Pages: 1
I want mouse or touchpad to be activated by key kombination and automatically disable it after timeout.
I have script activated by key combination:
#!/bin/sh
xinput --enable 9
sleep 20
xinput --disable 9
But device ID changes sometimes after reboot.
xinput -list
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Synaptics TM3336-001 id=10 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
There could be few solutions:
1) disable device by name.
What would be device name if it is possible.
2) assign id to variable and use it in script
Get output from unclutter when it hides mouse and connect it to script. Or modify source code.
Last edited by u0 (2021-11-08 15:20:35)
Offline
Use the name.
What would be device name if it is possible.
It's right there in the xinput list output you provided: "Synaptics TM3336-001".
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Pages: 1