til/Applications/System/Xinput.md

31 lines
492 B
Markdown
Raw Normal View History

2020-05-20 09:50:13 +00:00
# Xinput
| Distribution | Package |
| ------------ | ------------- |
2020-05-24 10:44:40 +00:00
| Arch Linux | `xorg-xinput` |
2020-05-20 09:50:13 +00:00
| Ubuntu | `xinput` |
List devices:
```sh
xinput list
```
Usually laptop's keyboard is:
```txt
AT Translated Set 2 keyboard id=15 [slave keyboard (3)]
```
Disable laptop's keyboard:
```sh
xinput float "AT Translated Set 2 keyboard"
```
Re-enable laptop's keyboard, `3` is from `slave keyboard (3)`:
```sh
xinput reattach "AT Translated Set 2 keyboard" 3
```