Ubuntu16.04/Gnome: How to swap AltGr and Ctrl right at keyboard?
My keyboard key of AltGr does not work anymore. I want rebind the
functionality of AltGr to Ctrl_R.
What is the easiest way to rebind AltGr to Ctrl_R?
OS: Ubuntu 16.04
Desktop: Gnome 3
I tried to use xmodmap
with the following configuration:
!Swap right control and right alt
remove Control = Control_R
remove Mod1 = Alt_R
keycode 105 = Alt_R
keycode 108 = Control_R
add Control = Control_R
add Mod1 = Alt_R
But I always get the following error:
> xmodmap .Xmodmap
xmodmap: .Xmodmap:3: bad keysym in remove modifier list 'Alt_R', no corresponding keycodes
Moreover, the configuration of xmodmap
is persistent throughout several
restarts.
Related Questions
How to bind Alt+Arrows to PageUp/PageDown?
remap right alt to behave as right ctrl
gnome keyboard keyboard-layout xmodmap
add a comment |
My keyboard key of AltGr does not work anymore. I want rebind the
functionality of AltGr to Ctrl_R.
What is the easiest way to rebind AltGr to Ctrl_R?
OS: Ubuntu 16.04
Desktop: Gnome 3
I tried to use xmodmap
with the following configuration:
!Swap right control and right alt
remove Control = Control_R
remove Mod1 = Alt_R
keycode 105 = Alt_R
keycode 108 = Control_R
add Control = Control_R
add Mod1 = Alt_R
But I always get the following error:
> xmodmap .Xmodmap
xmodmap: .Xmodmap:3: bad keysym in remove modifier list 'Alt_R', no corresponding keycodes
Moreover, the configuration of xmodmap
is persistent throughout several
restarts.
Related Questions
How to bind Alt+Arrows to PageUp/PageDown?
remap right alt to behave as right ctrl
gnome keyboard keyboard-layout xmodmap
add a comment |
My keyboard key of AltGr does not work anymore. I want rebind the
functionality of AltGr to Ctrl_R.
What is the easiest way to rebind AltGr to Ctrl_R?
OS: Ubuntu 16.04
Desktop: Gnome 3
I tried to use xmodmap
with the following configuration:
!Swap right control and right alt
remove Control = Control_R
remove Mod1 = Alt_R
keycode 105 = Alt_R
keycode 108 = Control_R
add Control = Control_R
add Mod1 = Alt_R
But I always get the following error:
> xmodmap .Xmodmap
xmodmap: .Xmodmap:3: bad keysym in remove modifier list 'Alt_R', no corresponding keycodes
Moreover, the configuration of xmodmap
is persistent throughout several
restarts.
Related Questions
How to bind Alt+Arrows to PageUp/PageDown?
remap right alt to behave as right ctrl
gnome keyboard keyboard-layout xmodmap
My keyboard key of AltGr does not work anymore. I want rebind the
functionality of AltGr to Ctrl_R.
What is the easiest way to rebind AltGr to Ctrl_R?
OS: Ubuntu 16.04
Desktop: Gnome 3
I tried to use xmodmap
with the following configuration:
!Swap right control and right alt
remove Control = Control_R
remove Mod1 = Alt_R
keycode 105 = Alt_R
keycode 108 = Control_R
add Control = Control_R
add Mod1 = Alt_R
But I always get the following error:
> xmodmap .Xmodmap
xmodmap: .Xmodmap:3: bad keysym in remove modifier list 'Alt_R', no corresponding keycodes
Moreover, the configuration of xmodmap
is persistent throughout several
restarts.
Related Questions
How to bind Alt+Arrows to PageUp/PageDown?
remap right alt to behave as right ctrl
gnome keyboard keyboard-layout xmodmap
gnome keyboard keyboard-layout xmodmap
edited Feb 5 at 12:03
TDK
25013
25013
asked Dec 4 '16 at 0:24
JonJon
1083
1083
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If the functionality of AltGr for your keyboard layout is to access third level symbols of various keys, I suggest that you run this command:
setxkbmap -option lv3:switch
If it does what you want, you can make the change permanent by opening /etc/default/keyboard
for editing and changing the line
XKBOPTIONS=""
to
XKBOPTIONS="lv3:switch"
Thank you, Gunnar for your quick and precise answer! I struggled two full day with possible solutions!
– Jon
Dec 4 '16 at 19:13
@Jon: You're welcome. I struggled a bit before I could provide that answer; the xkb stuff is poorly documented.
– Gunnar Hjalmarsson
Dec 4 '16 at 20:58
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/3.0/"u003ecc by-sa 3.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%2f856694%2fubuntu16-04-gnome-how-to-swap-altgr-and-ctrl-right-at-keyboard%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
If the functionality of AltGr for your keyboard layout is to access third level symbols of various keys, I suggest that you run this command:
setxkbmap -option lv3:switch
If it does what you want, you can make the change permanent by opening /etc/default/keyboard
for editing and changing the line
XKBOPTIONS=""
to
XKBOPTIONS="lv3:switch"
Thank you, Gunnar for your quick and precise answer! I struggled two full day with possible solutions!
– Jon
Dec 4 '16 at 19:13
@Jon: You're welcome. I struggled a bit before I could provide that answer; the xkb stuff is poorly documented.
– Gunnar Hjalmarsson
Dec 4 '16 at 20:58
add a comment |
If the functionality of AltGr for your keyboard layout is to access third level symbols of various keys, I suggest that you run this command:
setxkbmap -option lv3:switch
If it does what you want, you can make the change permanent by opening /etc/default/keyboard
for editing and changing the line
XKBOPTIONS=""
to
XKBOPTIONS="lv3:switch"
Thank you, Gunnar for your quick and precise answer! I struggled two full day with possible solutions!
– Jon
Dec 4 '16 at 19:13
@Jon: You're welcome. I struggled a bit before I could provide that answer; the xkb stuff is poorly documented.
– Gunnar Hjalmarsson
Dec 4 '16 at 20:58
add a comment |
If the functionality of AltGr for your keyboard layout is to access third level symbols of various keys, I suggest that you run this command:
setxkbmap -option lv3:switch
If it does what you want, you can make the change permanent by opening /etc/default/keyboard
for editing and changing the line
XKBOPTIONS=""
to
XKBOPTIONS="lv3:switch"
If the functionality of AltGr for your keyboard layout is to access third level symbols of various keys, I suggest that you run this command:
setxkbmap -option lv3:switch
If it does what you want, you can make the change permanent by opening /etc/default/keyboard
for editing and changing the line
XKBOPTIONS=""
to
XKBOPTIONS="lv3:switch"
answered Dec 4 '16 at 2:36
Gunnar HjalmarssonGunnar Hjalmarsson
19.6k23461
19.6k23461
Thank you, Gunnar for your quick and precise answer! I struggled two full day with possible solutions!
– Jon
Dec 4 '16 at 19:13
@Jon: You're welcome. I struggled a bit before I could provide that answer; the xkb stuff is poorly documented.
– Gunnar Hjalmarsson
Dec 4 '16 at 20:58
add a comment |
Thank you, Gunnar for your quick and precise answer! I struggled two full day with possible solutions!
– Jon
Dec 4 '16 at 19:13
@Jon: You're welcome. I struggled a bit before I could provide that answer; the xkb stuff is poorly documented.
– Gunnar Hjalmarsson
Dec 4 '16 at 20:58
Thank you, Gunnar for your quick and precise answer! I struggled two full day with possible solutions!
– Jon
Dec 4 '16 at 19:13
Thank you, Gunnar for your quick and precise answer! I struggled two full day with possible solutions!
– Jon
Dec 4 '16 at 19:13
@Jon: You're welcome. I struggled a bit before I could provide that answer; the xkb stuff is poorly documented.
– Gunnar Hjalmarsson
Dec 4 '16 at 20:58
@Jon: You're welcome. I struggled a bit before I could provide that answer; the xkb stuff is poorly documented.
– Gunnar Hjalmarsson
Dec 4 '16 at 20:58
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%2f856694%2fubuntu16-04-gnome-how-to-swap-altgr-and-ctrl-right-at-keyboard%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