KBDINFO(1)
๐ KBDINFO(1) ๐
okay bestie, so this is kbdinfo from the General Commands Manual โ she's a lil utility that reads your keyboard's whole situation and your virtual console's vibe. no cap, she's the nosy bestie who knows everything about your keyboard state and is not sorry about it ๐
โจ NAME โจ
kbdinfo โ read information about keyboard state ๐โจ๏ธ
๐ฆ SYNOPSIS ๐ฆ
kbdinfo [options] getmode [text|graphics]
kbdinfo [options] gkbmode [raw|xlate|mediumraw|unicode]
kbdinfo [options] gkbmeta [metabit|escprefix]
kbdinfo [options] gkbled [scrolllock|numlock|capslock]
๐ธ DESCRIPTION ๐ธ
so basically this utility lets you read and check a bunch of different parameters of the keyboard and the virtual console. it's giving "let me look at you, let me really look at you" ๐ซถ
getmodeโ get or check the virtual console mode. that's it, that's the whole job.gkbmodeโ gets the current keyboard mode. here's the tea on what those modes actually are:rawโ Raw (scancode) mode. these are the raw codes generated by the keyboard. unprocessed, unfiltered, straight off the presses ๐mediumrawโ Medium raw (scancode) mode. this is extended medium raw mode, with keys above 127 encoded as0, high 7 bits, low 7 bits, with the0bearing the'up'flag if needed.0is reserved, so this shouldn't interfere with anything else. the two bytes after0will always have the up flag set not to interfere with older applications. this allows for 16384 different keycodes, which should be enough. (iconic of them to just say "should be enough" honestly ๐ญ)xlateโ Translate keycodes using keymap. these are the codes generated via the current keysym mapping.unicodeโ Unicode mode. exactly what it says on the tin โจ
gkbmetaโ gets meta key handling mode. two flavours:escprefixโ specifies if pressing the meta (alt) key generates anESC(\033) prefix followed by the keysym.metabitโ the keysym marked with the high bit set.
gkbledโ get keyboard flags CapsLock, NumLock, ScrollLock (not lights, bestie, flags โ we're reading state, not staring at your lil LEDs ๐). which one is down:scrolllockโ the scroll lock is down.numlockโ the num lock is down.capslockโ the caps lock is down.
๐ OPTIONS ๐
-C,--console=DEVโ the console device to be used. pick your console, main character energy ๐ฎ-V,--versionโ print version number. slay, who are you โจ-h,--helpโ print this usage message. the classic cry for help ๐ซถ
๐ง AUTHORS ๐ง
Written by Alexey Gladkov. respect, thank you for your service ๐ซก๐
๐ SEE ALSO ๐
kbdrate(1), setleds(1), kbd_mode(1)
the whole friend group honestly, go say hi to all of them ๐ฆ
kbd ยท June 2019 โ that's the source, the version, and the date bestie, and that's the whole page, you ate it up fr fr ๐ ๐ no cap, go check your keyboard mode, she's waiting for you ๐ธ
๐ฆ where this page comes from
- alpine 3.22: kbd-doc 2.7.1-r1 ยท GPL-2.0-or-later
- alpine 3.23: kbd-doc 2.8.0-r0 ยท GPL-2.0-or-later
- alpine 3.24: kbd-doc 2.8.0-r0 ยท GPL-2.0-or-later
- arch rolling: kbd 2.10.0-1 ยท GPL-2.0-or-later
- fedora 43: kbd 2.8.0-3.fc43 ยท GPL-2.0-or-later
- fedora 43: kbd 2.8.0-4.fc43 ยท GPL-2.0-or-later
- fedora 44: kbd 2.9.0-3.fc44 ยท GPL-2.0-or-later
- fedora 44: kbd 2.9.0-4.fc44 ยท GPL-2.0-or-later
- nixos 26.05: kbd 2.9.0
- nixos 26.05: kbd-vlock 2.9.0
- nixpkgs unstable: kbd 2.9.0
- nixpkgs unstable: kbd-vlock 2.9.0
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms