How to Override Any Key on UbuntuHow do I create a customized CD that doesn't display any installation screens?Get keyboard input without requiring root and without x11How can I swap Left Meta for an arbitrary key (preferably using xkb)?Alt key caught by ubuntu, can't use intellij keybindings (and want to key the bindings I know)

Source for the tradition of buying seats in synagogues

Invalid time zone 'UTC'

Just bought HD650's with Scarlet 2i2 solo and it sounds too QUIET

Can Mathematica achieve this diagram?

How to manage publications on a local computer

Why rounding odd font sizes to even?

What is a dropfile?

Can you have a permanent become all permanent types at the same time?

Why do Muslim refugees seek asylum in Europe and not in rich countries in the Middle East?

Greatsword with light and thrown?? (New wild barbarian)

How did Krennic locate the Ersos' hideout?

RegionCentroid and center of mass

Why was the DC-9-80 so successful despite being obsolete almost from birth?

When the direction of a movement changes, is the object at rest at some time?

Why use Fourier series instead of Taylor?

Paying to leave without notice in at-will employment state

Average Two Letters

My boss wants me to recreate everything I have done for my previous employer

“philanthropy” as an uncountable noun

Where is a warlock's soul?

How to communicate faster than the system clock

Linearity assumption of linear regression

Offensive/negative meaning of 雑草

Interview question: If correlation doesn't imply causation, how do you detect causation?



How to Override Any Key on Ubuntu


How do I create a customized CD that doesn't display any installation screens?Get keyboard input without requiring root and without x11How can I swap Left Meta for an arbitrary key (preferably using xkb)?Alt key caught by ubuntu, can't use intellij keybindings (and want to key the bindings I know)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2

















As far as I know, Ubuntu's Key Bindings are all exposed on the files inside the /usr/share/X11/xkb/symbols folder. I've sometimes used the pc file to make some changes to some keys. However, I would like to know if there is a best practice on how to override the keys, preferably without overwriting these core files.



For example, is there a way of creating a user keyboard settings that would override the default one (like most good code editors do nowadays, such as VS Code)? It would also be much better if this method used the terminal or saved the settings in a file, so I could easily reproduce it in other machines.



EDIT:



More specifically, right now, in my use case, I'm looking to customize my FN key.










share|improve this question


































    2

















    As far as I know, Ubuntu's Key Bindings are all exposed on the files inside the /usr/share/X11/xkb/symbols folder. I've sometimes used the pc file to make some changes to some keys. However, I would like to know if there is a best practice on how to override the keys, preferably without overwriting these core files.



    For example, is there a way of creating a user keyboard settings that would override the default one (like most good code editors do nowadays, such as VS Code)? It would also be much better if this method used the terminal or saved the settings in a file, so I could easily reproduce it in other machines.



    EDIT:



    More specifically, right now, in my use case, I'm looking to customize my FN key.










    share|improve this question






























      2












      2








      2








      As far as I know, Ubuntu's Key Bindings are all exposed on the files inside the /usr/share/X11/xkb/symbols folder. I've sometimes used the pc file to make some changes to some keys. However, I would like to know if there is a best practice on how to override the keys, preferably without overwriting these core files.



      For example, is there a way of creating a user keyboard settings that would override the default one (like most good code editors do nowadays, such as VS Code)? It would also be much better if this method used the terminal or saved the settings in a file, so I could easily reproduce it in other machines.



      EDIT:



      More specifically, right now, in my use case, I'm looking to customize my FN key.










      share|improve this question

















      As far as I know, Ubuntu's Key Bindings are all exposed on the files inside the /usr/share/X11/xkb/symbols folder. I've sometimes used the pc file to make some changes to some keys. However, I would like to know if there is a best practice on how to override the keys, preferably without overwriting these core files.



      For example, is there a way of creating a user keyboard settings that would override the default one (like most good code editors do nowadays, such as VS Code)? It would also be much better if this method used the terminal or saved the settings in a file, so I could easily reproduce it in other machines.



      EDIT:



      More specifically, right now, in my use case, I'm looking to customize my FN key.







      keyboard customization






      share|improve this question
















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 3 at 16:27







      Philippe Fanaro

















      asked Aug 3 at 15:27









      Philippe FanaroPhilippe Fanaro

      306 bronze badges




      306 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0


















          I hate the fact that the menu bar swallows useful key mappings like alt-f (forward word) to do something rarely needed like open the file menu.



          I searched and searched for ways to disable these alt menu keys and found nothing. Turns out you can kill them off using a bit of script in your init file.



          Tested on Ubuntu 18.04 LTS. Atom editor version 1.0.



          # Get rid of the alt-menu shortcuts
          atom.menu.template.forEach (t) ->
          t.label = t.label.replace("&", "")
          atom.menu.update()





          share|improve this answer


























          • But is that only when using Atom? I was more on the lines of using the X11 files actually. (Maybe there is a Gnome Tweaks Extension that does that?)

            – Philippe Fanaro
            Aug 3 at 17:19












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1163179%2fhow-to-override-any-key-on-ubuntu%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0


















          I hate the fact that the menu bar swallows useful key mappings like alt-f (forward word) to do something rarely needed like open the file menu.



          I searched and searched for ways to disable these alt menu keys and found nothing. Turns out you can kill them off using a bit of script in your init file.



          Tested on Ubuntu 18.04 LTS. Atom editor version 1.0.



          # Get rid of the alt-menu shortcuts
          atom.menu.template.forEach (t) ->
          t.label = t.label.replace("&", "")
          atom.menu.update()





          share|improve this answer


























          • But is that only when using Atom? I was more on the lines of using the X11 files actually. (Maybe there is a Gnome Tweaks Extension that does that?)

            – Philippe Fanaro
            Aug 3 at 17:19















          0


















          I hate the fact that the menu bar swallows useful key mappings like alt-f (forward word) to do something rarely needed like open the file menu.



          I searched and searched for ways to disable these alt menu keys and found nothing. Turns out you can kill them off using a bit of script in your init file.



          Tested on Ubuntu 18.04 LTS. Atom editor version 1.0.



          # Get rid of the alt-menu shortcuts
          atom.menu.template.forEach (t) ->
          t.label = t.label.replace("&", "")
          atom.menu.update()





          share|improve this answer


























          • But is that only when using Atom? I was more on the lines of using the X11 files actually. (Maybe there is a Gnome Tweaks Extension that does that?)

            – Philippe Fanaro
            Aug 3 at 17:19













          0














          0










          0









          I hate the fact that the menu bar swallows useful key mappings like alt-f (forward word) to do something rarely needed like open the file menu.



          I searched and searched for ways to disable these alt menu keys and found nothing. Turns out you can kill them off using a bit of script in your init file.



          Tested on Ubuntu 18.04 LTS. Atom editor version 1.0.



          # Get rid of the alt-menu shortcuts
          atom.menu.template.forEach (t) ->
          t.label = t.label.replace("&", "")
          atom.menu.update()





          share|improve this answer














          I hate the fact that the menu bar swallows useful key mappings like alt-f (forward word) to do something rarely needed like open the file menu.



          I searched and searched for ways to disable these alt menu keys and found nothing. Turns out you can kill them off using a bit of script in your init file.



          Tested on Ubuntu 18.04 LTS. Atom editor version 1.0.



          # Get rid of the alt-menu shortcuts
          atom.menu.template.forEach (t) ->
          t.label = t.label.replace("&", "")
          atom.menu.update()






          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Aug 3 at 17:13









          Kanthala RaghuKanthala Raghu

          3372 gold badges7 silver badges18 bronze badges




          3372 gold badges7 silver badges18 bronze badges















          • But is that only when using Atom? I was more on the lines of using the X11 files actually. (Maybe there is a Gnome Tweaks Extension that does that?)

            – Philippe Fanaro
            Aug 3 at 17:19

















          • But is that only when using Atom? I was more on the lines of using the X11 files actually. (Maybe there is a Gnome Tweaks Extension that does that?)

            – Philippe Fanaro
            Aug 3 at 17:19
















          But is that only when using Atom? I was more on the lines of using the X11 files actually. (Maybe there is a Gnome Tweaks Extension that does that?)

          – Philippe Fanaro
          Aug 3 at 17:19





          But is that only when using Atom? I was more on the lines of using the X11 files actually. (Maybe there is a Gnome Tweaks Extension that does that?)

          – Philippe Fanaro
          Aug 3 at 17:19


















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1163179%2fhow-to-override-any-key-on-ubuntu%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

          How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

          Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?