{"id":4062,"date":"2022-12-20T17:39:18","date_gmt":"2022-12-20T20:39:18","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/filter-key-man7\/"},"modified":"2022-12-20T17:39:18","modified_gmt":"2022-12-20T20:39:18","slug":"filter-key-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/filter-key-man7\/","title":{"rendered":"filter-key (man7)"},"content":{"rendered":"<h1 align=\"center\">filter-key<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#CONFIGURATION\">CONFIGURATION<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>filter-key<\/b>, <b>filter-keytrans<\/b> : Generic key event translator<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">filter-key: [<file>]<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">filter-keytrans: [<file>]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This filter translates key events according to a set of translation rules. This can be used to remap a keyboard.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\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 style=\"margin-top: 1em\"><i>file<\/i><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">The name of the configuration file. If none given, the filter will first look for the file <b>filter\/keytrans<\/b> in the user GGI directory (<b>$HOME\/.ggi\/<\/b> on UNIX), then in the base GGI directory if not found.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>CONFIGURATION <a name=\"CONFIGURATION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The mapping is specified through a simple text file, each line being a translation rule. A line starting with a # is a comment. Each line must contain 10 values in the following order: <br \/> modifier_mask<\/p>\n<p style=\"margin-left:22%;\">Consider only the bits set here.<\/p>\n<p style=\"margin-left:11%;\">modifier_value<\/p>\n<p style=\"margin-left:22%;\">The bits set above must match this value.<\/p>\n<p style=\"margin-left:11%;\">button_in, label_in, symbol_in<\/p>\n<p style=\"margin-left:22%;\">If this is not KEY_UNMAPPED==0xffff, the button\/label\/symbol of the incoming key must match these fields.<\/p>\n<p style=\"margin-left:11%;\">modifier_changemask<\/p>\n<p style=\"margin-left:22%;\">Change these bits from the original modifiers&#8230;<\/p>\n<p style=\"margin-left:11%;\">modifier_ormask <br \/> button_out, label_out, symbol_out<\/p>\n<p style=\"margin-left:22%;\">The data that is then sent by the keymapper. Any fields set to KEY_UNMAPPED==0xffff will be copied from the incoming event.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Mapping a symbol:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># Take any key that produces a symbol of 0x41 (\u2019A\u2019) map it to ESC <br \/> # <br \/> # modmsk modval buttin lablin symin modchg modor butout labout symout <br \/> 0x0000 0x0000 0xffff 0xffff 0x0041 0x0000 0x0000 0xffff 0xffff 0x001b<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  filter-key, filter-keytrans : Generic key event translator <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1143,972],"class_list":["post-4062","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-filter-key","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4062","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=4062"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4062\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}