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;
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
add a comment
|
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
add a comment
|
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
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
keyboard customization
edited Aug 3 at 16:27
Philippe Fanaro
asked Aug 3 at 15:27
Philippe FanaroPhilippe Fanaro
306 bronze badges
306 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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()
But is that only when usingAtom? I was more on the lines of using theX11files actually. (Maybe there is a Gnome Tweaks Extension that does that?)
– Philippe Fanaro
Aug 3 at 17:19
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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()
But is that only when usingAtom? I was more on the lines of using theX11files actually. (Maybe there is a Gnome Tweaks Extension that does that?)
– Philippe Fanaro
Aug 3 at 17:19
add a comment
|
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()
But is that only when usingAtom? I was more on the lines of using theX11files actually. (Maybe there is a Gnome Tweaks Extension that does that?)
– Philippe Fanaro
Aug 3 at 17:19
add a comment
|
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()
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()
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 usingAtom? I was more on the lines of using theX11files actually. (Maybe there is a Gnome Tweaks Extension that does that?)
– Philippe Fanaro
Aug 3 at 17:19
add a comment
|
But is that only when usingAtom? I was more on the lines of using theX11files 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
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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