Skip to content

Instantly share code, notes, and snippets.

@ShortArrow
Last active January 2, 2025 12:48
Show Gist options
  • Save ShortArrow/cde7b64ca983af1bb0708251243b447e to your computer and use it in GitHub Desktop.
Save ShortArrow/cde7b64ca983af1bb0708251243b447e to your computer and use it in GitHub Desktop.
Everything you wanted to know about keyboard

Everything you wanted to know about keyboard

In ArchLinux

https://wiki.archlinux.org/title/Keyboard_input https://wiki.archlinux.org/title/Input_remap_utilities

Remap keys in ArchLinux

Install remapper.

sudo pacman -S keyd

Check current status.

xmodmap -pke
setxkbmap -print
echo $LANG
echo $LC_CTYPE
ls /usr/share/kbd/keymaps/
localectl status

Chech The keycode

kev

In windows

How to find keyboard in Registry

ls 'HKLM:\SYSTEM\CurrentControlSet\Enum\HID\' `
  | % {Get-ChildItem "HKLM:$_"} `
  | ? {(Get-ItemProperty "HKLM:$_").DeviceDesc -like "*keyboard*"}

How to find with standard command

Get-PnpDevice -Class keyboard -Status OK

How to find keyboard layout

Get-Item 'HKLM:\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment