Rebind Alt key to win using setxkbmap?
After an hour or two of manpage and Google searching and finding no solution or good resources, I've come for help!
I have set my Caps Lock key to Ctrl using setxkbmap -option ctrl:nocaps - this works perfectly fine.
However, since I use [awesome][1], and an IBM model M which lacks the meta key, I need my left alt key to replace the windows key. Using xkeycaps I was able to get this to work, except it killed my arrow keys and End. Problematic.
Unfortunately, documentation on setxkbmap options are sparse. and I can't find the proper option to use.
Thanks for any links/solutions.
keyboard
add a comment |
After an hour or two of manpage and Google searching and finding no solution or good resources, I've come for help!
I have set my Caps Lock key to Ctrl using setxkbmap -option ctrl:nocaps - this works perfectly fine.
However, since I use [awesome][1], and an IBM model M which lacks the meta key, I need my left alt key to replace the windows key. Using xkeycaps I was able to get this to work, except it killed my arrow keys and End. Problematic.
Unfortunately, documentation on setxkbmap options are sparse. and I can't find the proper option to use.
Thanks for any links/solutions.
keyboard
add a comment |
After an hour or two of manpage and Google searching and finding no solution or good resources, I've come for help!
I have set my Caps Lock key to Ctrl using setxkbmap -option ctrl:nocaps - this works perfectly fine.
However, since I use [awesome][1], and an IBM model M which lacks the meta key, I need my left alt key to replace the windows key. Using xkeycaps I was able to get this to work, except it killed my arrow keys and End. Problematic.
Unfortunately, documentation on setxkbmap options are sparse. and I can't find the proper option to use.
Thanks for any links/solutions.
keyboard
After an hour or two of manpage and Google searching and finding no solution or good resources, I've come for help!
I have set my Caps Lock key to Ctrl using setxkbmap -option ctrl:nocaps - this works perfectly fine.
However, since I use [awesome][1], and an IBM model M which lacks the meta key, I need my left alt key to replace the windows key. Using xkeycaps I was able to get this to work, except it killed my arrow keys and End. Problematic.
Unfortunately, documentation on setxkbmap options are sparse. and I can't find the proper option to use.
Thanks for any links/solutions.
keyboard
keyboard
asked Mar 9 '11 at 23:33
Wayne WernerWayne Werner
2,73972034
2,73972034
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
setxkbmap -option altwin:swap_alt_win
The list of predefined remapping options is in /usr/share/X11/xkb/rules/evdev.lst. In this case, you probably want one of
jinx:792 Z$ grep alt /usr/share/X11/xkb/rules/evdev.lst | grep win
altwin Alt/Win key behavior
altwin:menu Add the standard behavior to Menu key
altwin:meta_alt Alt and Meta are on Alt keys
altwin:ctrl_win Control is mapped to Win keys (and the usual Ctrl keys)
altwin:ctrl_alt_win Control is mapped to Alt keys, Alt is mapped to Win keys
altwin:meta_win Meta is mapped to Win keys
altwin:left_meta_win Meta is mapped to Left Win
altwin:hyper_win Hyper is mapped to Win-keys
altwin:alt_super_win Alt is mapped to Right Win, Super to Menu
altwin:swap_lalt_lwin Left Alt is swapped with Left Win
The Windows key is generally mapped to X11's Super modifier, and the Menu key is sometimes mapped to its Hyper modifier.
1
Is there a way to swap the right alt and win instead of the left?
– Kerrick
Dec 14 '11 at 21:05
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%2f29731%2frebind-alt-key-to-win-using-setxkbmap%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
setxkbmap -option altwin:swap_alt_win
The list of predefined remapping options is in /usr/share/X11/xkb/rules/evdev.lst. In this case, you probably want one of
jinx:792 Z$ grep alt /usr/share/X11/xkb/rules/evdev.lst | grep win
altwin Alt/Win key behavior
altwin:menu Add the standard behavior to Menu key
altwin:meta_alt Alt and Meta are on Alt keys
altwin:ctrl_win Control is mapped to Win keys (and the usual Ctrl keys)
altwin:ctrl_alt_win Control is mapped to Alt keys, Alt is mapped to Win keys
altwin:meta_win Meta is mapped to Win keys
altwin:left_meta_win Meta is mapped to Left Win
altwin:hyper_win Hyper is mapped to Win-keys
altwin:alt_super_win Alt is mapped to Right Win, Super to Menu
altwin:swap_lalt_lwin Left Alt is swapped with Left Win
The Windows key is generally mapped to X11's Super modifier, and the Menu key is sometimes mapped to its Hyper modifier.
1
Is there a way to swap the right alt and win instead of the left?
– Kerrick
Dec 14 '11 at 21:05
add a comment |
setxkbmap -option altwin:swap_alt_win
The list of predefined remapping options is in /usr/share/X11/xkb/rules/evdev.lst. In this case, you probably want one of
jinx:792 Z$ grep alt /usr/share/X11/xkb/rules/evdev.lst | grep win
altwin Alt/Win key behavior
altwin:menu Add the standard behavior to Menu key
altwin:meta_alt Alt and Meta are on Alt keys
altwin:ctrl_win Control is mapped to Win keys (and the usual Ctrl keys)
altwin:ctrl_alt_win Control is mapped to Alt keys, Alt is mapped to Win keys
altwin:meta_win Meta is mapped to Win keys
altwin:left_meta_win Meta is mapped to Left Win
altwin:hyper_win Hyper is mapped to Win-keys
altwin:alt_super_win Alt is mapped to Right Win, Super to Menu
altwin:swap_lalt_lwin Left Alt is swapped with Left Win
The Windows key is generally mapped to X11's Super modifier, and the Menu key is sometimes mapped to its Hyper modifier.
1
Is there a way to swap the right alt and win instead of the left?
– Kerrick
Dec 14 '11 at 21:05
add a comment |
setxkbmap -option altwin:swap_alt_win
The list of predefined remapping options is in /usr/share/X11/xkb/rules/evdev.lst. In this case, you probably want one of
jinx:792 Z$ grep alt /usr/share/X11/xkb/rules/evdev.lst | grep win
altwin Alt/Win key behavior
altwin:menu Add the standard behavior to Menu key
altwin:meta_alt Alt and Meta are on Alt keys
altwin:ctrl_win Control is mapped to Win keys (and the usual Ctrl keys)
altwin:ctrl_alt_win Control is mapped to Alt keys, Alt is mapped to Win keys
altwin:meta_win Meta is mapped to Win keys
altwin:left_meta_win Meta is mapped to Left Win
altwin:hyper_win Hyper is mapped to Win-keys
altwin:alt_super_win Alt is mapped to Right Win, Super to Menu
altwin:swap_lalt_lwin Left Alt is swapped with Left Win
The Windows key is generally mapped to X11's Super modifier, and the Menu key is sometimes mapped to its Hyper modifier.
setxkbmap -option altwin:swap_alt_win
The list of predefined remapping options is in /usr/share/X11/xkb/rules/evdev.lst. In this case, you probably want one of
jinx:792 Z$ grep alt /usr/share/X11/xkb/rules/evdev.lst | grep win
altwin Alt/Win key behavior
altwin:menu Add the standard behavior to Menu key
altwin:meta_alt Alt and Meta are on Alt keys
altwin:ctrl_win Control is mapped to Win keys (and the usual Ctrl keys)
altwin:ctrl_alt_win Control is mapped to Alt keys, Alt is mapped to Win keys
altwin:meta_win Meta is mapped to Win keys
altwin:left_meta_win Meta is mapped to Left Win
altwin:hyper_win Hyper is mapped to Win-keys
altwin:alt_super_win Alt is mapped to Right Win, Super to Menu
altwin:swap_lalt_lwin Left Alt is swapped with Left Win
The Windows key is generally mapped to X11's Super modifier, and the Menu key is sometimes mapped to its Hyper modifier.
edited 10 hours ago
Boris
30238
30238
answered Mar 9 '11 at 23:57
geekosaurgeekosaur
9,39712217
9,39712217
1
Is there a way to swap the right alt and win instead of the left?
– Kerrick
Dec 14 '11 at 21:05
add a comment |
1
Is there a way to swap the right alt and win instead of the left?
– Kerrick
Dec 14 '11 at 21:05
1
1
Is there a way to swap the right alt and win instead of the left?
– Kerrick
Dec 14 '11 at 21:05
Is there a way to swap the right alt and win instead of the left?
– Kerrick
Dec 14 '11 at 21:05
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%2f29731%2frebind-alt-key-to-win-using-setxkbmap%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