{"id":468,"date":"2021-10-01T16:28:44","date_gmt":"2021-10-01T14:28:44","guid":{"rendered":"https:\/\/michalu.eu\/wordpress\/?p=468"},"modified":"2021-10-01T16:30:44","modified_gmt":"2021-10-01T14:30:44","slug":"how-to-fix-magic-keyboard-w-o-numeric-pad-to-work-correctly-with-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/michalu.eu\/wordpress\/how-to-fix-magic-keyboard-w-o-numeric-pad-to-work-correctly-with-ubuntu-20-04-lts\/","title":{"rendered":"How to fix Magic Keyboard (w\/o Numeric pad) to work correctly with Ubuntu 20.04 LTS"},"content":{"rendered":"\n<p>If you would like to enjoy typing your favourite keyboard on Ubuntu as well, you need to change mapping on keys like:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Left Control to Left Win<\/li><li>Left Win to Left Control<\/li><li>Right Option to Right Command <\/li><\/ol>\n\n\n\n<p>First two steps we will achieve using gnome-tweak-tool (how to install, check <a href=\"https:\/\/linuxhint.com\/gnome_tweak_installation_ubuntu\/\">here<\/a>). If you have installed successfully, open it, go to Keyboard &amp; Mouse section -&gt; Additional layout options -&gt; Ctrl postion and check as shown on the picture below:<\/p>\n\n\n\n<div class=\"wp-block-columns are-vertically-aligned-center is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/michalu.eu\/wordpress\/wp-content\/uploads\/2021\/10\/Screenshot-from-2021-10-01-16-23-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"538\" src=\"https:\/\/michalu.eu\/wordpress\/wp-content\/uploads\/2021\/10\/Screenshot-from-2021-10-01-16-23-14.png\" alt=\"\" class=\"wp-image-470\" srcset=\"https:\/\/michalu.eu\/wordpress\/wp-content\/uploads\/2021\/10\/Screenshot-from-2021-10-01-16-23-14.png 503w, https:\/\/michalu.eu\/wordpress\/wp-content\/uploads\/2021\/10\/Screenshot-from-2021-10-01-16-23-14-280x300.png 280w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>The 3rd step doesn&#8217;t work for me while I set up it through tool above. But it is quite simple to use it by one-liner in \/etc\/rc.local. I had to created it manually and configure permissions to chmod 755<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\n# switch opt with command key\necho 1 | tee \/sys\/module\/hid_apple\/parameters\/swap_opt_cmd\n<\/pre><\/div>\n\n\n<p><\/p>\n\n\n\n<p>And that&#8217;s all, now you can use commands and diacritics like on your mac \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you would like to enjoy typing your favourite keyboard on Ubuntu as well, you need to change mapping on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[22,1],"tags":[115,114,113,110,108,109,111,116,112],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-developers","category-bez-kategorii","tag-alt","tag-command","tag-gnome-tweak-tool","tag-keyboard","tag-macbook","tag-magic","tag-mapping","tag-option","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":4,"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/posts\/468\/revisions\/474"}],"wp:attachment":[{"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michalu.eu\/wordpress\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}