{"id":4479,"date":"2022-12-20T18:08:46","date_gmt":"2022-12-20T21:08:46","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/keyboard-man5\/"},"modified":"2022-12-20T18:08:46","modified_gmt":"2022-12-20T21:08:46","slug":"keyboard-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/keyboard-man5\/","title":{"rendered":"KEYBOARD (man5)"},"content":{"rendered":"<h1 align=\"center\">KEYBOARD<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">keyboard \u2212 keyboard configuration file<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>keyboard<\/b> file describes the properties of the keyboard. It is read by <b>setupcon<\/b>(1) in order to configure the keyboard on the console. In Debian systems the default keyboard layout is described in <i>\/etc\/default\/keyboard<\/i> and it is shared between X and the console.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The specification of the keyboard layout in the <b>keyboard<\/b> file is based on the <small>XKB<\/small> options XkbModel, XkbLayout, XkbVariant and XkbOptions. Unfortunately, there is little documentation how to use them. Description of all possible values for these options can be found in the file <i>xorg.lst<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You might want to read \u201cThe XKB Configuration Guide\u201d by Kamil Toman and Ivan U. Pascal:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">http:\/\/www.xfree86.org\/current\/XKB-Config.html<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Other possible readings are:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">https:\/\/wiki.archlinux.org\/index.php\/X_KeyBoard_extension <br \/> http:\/\/pascal.tsu.ru\/en\/xkb\/ <br \/> http:\/\/www.charvolant.org\/~doug\/xkb\/<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The complete XKB-specification can be found on<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">http:\/\/xfree86.org\/current\/XKBproto.pdf<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The file <b>keyboard<\/b> consists of variable settings in <small>POSIX<\/small> format:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>VARIABLE<\/i>=<i>VALUE<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Only one assignment is allowed per line. Comments (starting with \u2019#\u2019) are also allowed.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following variables can be set. <b><br \/> XKBMODEL<\/b><\/p>\n<p style=\"margin-left:22%;\">Specifies the <small>XKB<\/small> keyboard model name. Default: <b>pc105<\/b> on most platforms.<\/p>\n<p style=\"margin-left:11%;\"><b>XKBLAYOUT<\/b><\/p>\n<p style=\"margin-left:22%;\">Specifies the <small>XKB<\/small> keyboard layout name. This is usually the country or language type of the keyboard. Default: <b>us<\/b> on most platforms<\/p>\n<p style=\"margin-left:11%;\"><b>XKBVARIANT<\/b><\/p>\n<p style=\"margin-left:22%;\">Specifies the <small>XKB<\/small> keyboard variant components. These can be used to further specify the keyboard layout details. Default: not set.<\/p>\n<p style=\"margin-left:11%;\"><b>XKBOPTIONS<\/b><\/p>\n<p style=\"margin-left:22%;\">Specifies the <small>XKB<\/small> keyboard option components. Options usually relate to the behavior of the special keys <small>(<Shift>, <Control>, <Alt>, <CapsLock>, etc.)<\/small> Default: not set.<\/p>\n<p style=\"margin-left:11%;\"><b>BACKSPACE<\/b><\/p>\n<p style=\"margin-left:22%;\">Determines the behavior of <small><BackSpace><\/small> and <small><Delete><\/small> keys on the console. Allowed values: <b>bs<\/b>, <b>del<\/b> and <b>guess<\/b>. In most cases you can specify <b>guess<\/b> here, in which case the current terminal settings and the kernel of your operating system will be used to determine the correct value. Value <b>bs<\/b> specifies VT100-conformant behavior: <small><BackSpace><\/small> will generate <b>^H<\/b> <small>(ASCII BS)<\/small> and <small><Delete><\/small> will generate <b>^?<\/b> <small>(ASCII DEL).<\/small> Value <b>del<\/b> specifies VT220-conformant behavior: <small><BackSpace><\/small> will generate <b>^?<\/b> <small>(ASCII DEL)<\/small> and <small><Delete><\/small> will generate a special function sequence.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>KMAP<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>Usually this variable will be unset but if you don\u2019t want to use a <small>XKB<\/small> layout on the console, you can specify an alternative keymap here. Specify a file that is suitable as input for <b>loadkeys<\/b>(1) on Linux or for <b>kbdcontrol<\/b>(1) on FreeBSD.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The standard location of the <b>keyboard<\/b> file is <i>\/etc\/default\/keyboard<\/i>. Description of all available keyboard models, layouts, variants and options is available in <i>\/usr\/share\/X11\/xkb\/rules\/xorg.lst<\/i>. In most cases, in <i>\/lib\/kbd\/keymaps\/<\/i> you will find several keymaps that can be used with the variable <b>KMAP<\/b>.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">In Debian systems, changes in <i>\/etc\/default\/keyboard<\/i> do not become immediately visible to X. You should either reboot the system, or use<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">udevadm trigger &#8211;subsystem-match=input &#8211;action=change<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In order to activate the changes on the console, run <b>setupcon<\/b>(1)<b>.<\/b><\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">When a triple-layout is used on the console, i.e. a layout with three <small>XKB<\/small> groups, then the group toggling happens in the following way: Group1 \u2212> Group2 \u2212> Group1 \u2212> Group3.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">On FreeBSD triple- and quadruple-layouts are not supported on the console (only the first and the second layout are taken into account).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The option <b>grp:shifts_toggle<\/b> is not supported on the console.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following configuration will give you the standard <small>US QWERTY<\/small> layout (<b>us<\/b>). The key <small><Menu><\/small> will act as a compose key (<b>compose:menu<\/b>) and <small><CapsLock><\/small> will act as third control key (<b>ctrl:nocaps<\/b>).<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">XKBLAYOUT=us <br \/> XKBVARIANT= <br \/> XKBOPTIONS=compose:menu,ctrl:nocaps<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In the following configuration the right <small><Alt><\/small> key (<b>grp:toggle<\/b>) will toggle between <small>US QWERTY<\/small> layout (<b>us<\/b>) and Greek (<b>gr<\/b>) layout. The option <b>grp_led:scroll<\/b> is ignored on the console but in X in means to use the ScrollLock keyboard led as indicator for the current layout (US or Greek).<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">XKBLAYOUT=us,gr <br \/> XKBVARIANT= <br \/> XKBOPTIONS=grp:toggle,grp_led:scroll<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In the following configuration the <small><Control>+<Shift><\/small> key combination will toggle (<b>grp:ctrl_shift_toggle<\/b>) between French keyboard (<b>fr<\/b>) without dead keys (<b>nodeadkeys<\/b>) and British (<b>gb<\/b>) \u201cDvorak\u201d (<b>dvorak<\/b>) keyboard. The right <small><Win><\/small> key will be a compose-key (<b>compose:rwin<\/b>) and the right <small><Alt><\/small> key will function as AltGr (<b>lv3:lalt_switch<\/b>).<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">XKBLAYOUT=fr,gb <br \/> XKBVARIANT=nodeadkeys,dvorak <br \/> XKBOPTIONS=grp:ctrl_shift_toggle,compose:rwin,lv3:ralt_switch<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>setupcon<\/b>(1), <b>ckbcomp<\/b>(1), <b>console-setup<\/b>(5), <b>loadkeys<\/b>(1), <b>kbdcontrol<\/b>(1)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  keyboard \u2212 keyboard configuration file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1453,1291],"class_list":["post-4479","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-keyboard","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4479"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4479\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}