From 1ecf4c52ff9f6ba645af12fa9589fac09165debe Mon Sep 17 00:00:00 2001 From: emiara <61361584+emiara@users.noreply.github.com> Date: Wed, 27 Mar 2024 09:16:10 +0100 Subject: [PATCH] showkey: add page (#12550) * showkey v1 * added sudo * showkey: add page * showkey: add page Fixed build test errors * Apply suggestions from code review - Imperative mood - ctrl +d - added long options - changed key-caps in accordance to style guide Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> * Update pages/linux/showkey.md Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> --------- Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> --- pages/linux/showkey.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/showkey.md diff --git a/pages/linux/showkey.md b/pages/linux/showkey.md new file mode 100644 index 0000000000..2972847676 --- /dev/null +++ b/pages/linux/showkey.md @@ -0,0 +1,24 @@ +# showkey + +> Display the keycode of pressed keys on the keyboard, helpful for debugging keyboard-related issues and key remapping. +> More information: . + +- View keycodes in decimal: + +`sudo showkey` + +- Display [s]cancodes in hexadecimal: + +`sudo showkey {{-s|--scancodes}}` + +- Display [k]eycodes in decimal (default): + +`sudo showkey {{-k|--keycodes}}` + +- Display keycodes in [a]SCII, decimal, and hexadecimal: + +`sudo showkey {{-a|--ascii}}` + +- Exit the program: + +`Ctrl + d`