This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/scripts/bin/disable-laptop-keyboard

6 lines
218 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
KEYBOARD_SEARCH_STRING="AT Translated.*keyboard"
BUILTIN_KEYBOARD_ID=$(xinput list | grep "$KEYBOARD_SEARCH_STRING" | sed -ne 's/^.*id\=\([0-9]*\).*/\1/p')
sudo xinput float "$BUILTIN_KEYBOARD_ID"