
{"id":34151,"date":"2021-07-12T14:46:41","date_gmt":"2021-07-12T14:46:41","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=34151"},"modified":"2023-03-29T05:06:30","modified_gmt":"2023-03-29T05:06:30","slug":"remap-keyboard-gamepad-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/07\/remap-keyboard-gamepad-ubuntu\/","title":{"rendered":"How to Remap Keyboard \/ Gamepad in Ubuntu Easily with This Tool"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-34152\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/keymapper-icon.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/keymapper-icon.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/keymapper-icon-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>Want to remap your keyboard or gamepad keys in Ubuntu Linux? It&#8217;s easy to do this via <i>Input Remapper<\/i>.<\/p>\n<p>Input Remapper is a free and open-source tool written in Python 3. With it, you can change the mapping for input devices, including <b>mouse<\/b>, <b>keyboard<\/b>, and <b>gamepad<\/b>.<\/p>\n<p>It works on both X11 and Wayland, and supports for mapping to combined buttons (e.g., Control+A) and programmable macros.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/input-remapper-keys.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43843\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/input-remapper-keys-600x419.webp\" alt=\"\" width=\"600\" height=\"419\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/input-remapper-keys-600x419.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/input-remapper-keys-300x210.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/input-remapper-keys-768x537.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/input-remapper-keys.webp 1052w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The software has an easy to use interface. Simply start the app, choose the device (e.g., keyboard) to you want to remap, then click add new preset and do:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Click &#8216;Add&#8217; button in left to add an item.<\/li>\n<li>Click the pencil icon and type a name.<\/li>\n<li>Use &#8220;Record&#8221; button to record the original keyboard key or key combination.<\/li>\n<li>Choose device to map the input key to.<\/li>\n<li>Finally, type the output key, e.g., letter (a, b, &#8230;, z), number (1, 2, &#8230;, 9), and\/or function keys (Alt_L Control_L Control_R Shift_L Shift_R)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Presets are saved in user&#8217;s <code>.config\/input-remapper-2\/presets<\/code> folder. You can use them in another machine that can read these &#8220;<i>.json<\/i>&#8221; files.<\/p>\n<h3>How to Install Input Remapper in Ubuntu:<\/h3>\n<p>The software offers official <b>.deb<\/b> package for Ubuntu \/ Debian based systems.<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/sezanzeb\/key-mapper\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">Download Input Remapper (.deb)<\/a><\/div>\n<\/div>\n<p>Grab the deb package, then open terminal and run command to install it:<\/p>\n<pre>sudo apt install ~\/Downloads\/input-remapper*.deb<\/pre>\n<p>It should work on all current Ubuntu releases since it requires only a few python modules.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/apt-input-remapper.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43841\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/apt-input-remapper-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/apt-input-remapper-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/apt-input-remapper-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/apt-input-remapper-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/apt-input-remapper.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Once installed, open it from system app launcher and enjoy!<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/open-inputremapper.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-43842\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/open-inputremapper.webp\" alt=\"\" width=\"524\" height=\"281\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/open-inputremapper.webp 524w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/07\/open-inputremapper-300x161.webp 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/a><\/p>\n<p>(<b>Optional<\/b>) For choice, there&#8217;s command to remove the tool from Ubuntu:<\/p>\n<pre>sudo apt remove --autoremove input-remapper<\/pre>","protected":false},"excerpt":{"rendered":"<p>Want to remap your keyboard or gamepad keys in Ubuntu Linux? It&#8217;s easy to do this via Input Remapper. Input Remapper is a free and open-source tool written in Python 3. With it, you can change the mapping for input devices, including mouse, keyboard, and gamepad. It works on both X11 and Wayland, and supports [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1994],"class_list":["post-34151","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-key-remapping"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=34151"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/34151\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=34151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=34151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=34151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}