xmodmap key bindings reset when I open a new tab in the shellReassign Ctrl and Alt keys - xmodmap 'BadValue'...
How to scale a verbatim environment on a minipage?
What are the spoon bit of a spoon and fork bit of a fork called?
Is it the same airport YUL and YMQ in Canada?
My ID is expired, can I fly to the Bahamas with my passport
Copy line and insert it in a new position with sed or awk
Why is Arya visibly scared in the library in S8E3?
How to back up a running Linode server?
How could a planet have most of its water in the atmosphere?
How did Arya manage to disguise herself?
Can commander tax be proliferated?
Does the Darkness spell dispel the Color Spray and Flaming Sphere spells?
Junior developer struggles: how to communicate with management?
Does the time required to copy a spell into a spellbook have to be consecutive, or is that just the cumulative time required?
Password expiration with Password manager
Transfer over $10k
Short story about people living in a different time streams
What was the state of the German rail system in 1944?
Was Hulk present at this event?
Unidentified items in bicycle tube repair kit
What is the most remote airport from the center of the city it supposedly serves?
Can fracking help reduce CO2?
Accidentally deleted the "/usr/share" folder
Was the ancestor of SCSI, the SASI protocol, nothing more than a draft?
Does higher resolution in an image imply more bits per pixel?
xmodmap key bindings reset when I open a new tab in the shell
Reassign Ctrl and Alt keys - xmodmap 'BadValue' errorhow to assign another modifier to Alt key for X11?Pasting from clipboard to vi-enabled zsh or bash shellVim with foreign QWERTZ keyboard“xmodmap -pke” shows more than 6 columnsxmodmap Alt+Tab doesn't work with new Alt_L keyhow to remap super keys?What files does the Gnome Tweak Tool act on (when changing the Typing settings)?Latching group in xmodmap / core protocol mappings (XChangeKeyboardMapping())Setting an alias when double quotes and single quotes both fail
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
When I open a shell in ranger with shift-s, open vim and then open a shell with :sh or open a new shell tab with ctrl-shift-t, my xmodmap keybindings (swapped caps lock and escape keys) are reset. This is what the terminal spits out:
xmodmap: please release the following keys within 2 seconds:
t (keysym 0x74, keycode 28)
Shift_R (keysym 0xffe2, keycode 62)
My keybindings are very important to me as I am an active vim user currently working with Typescript (I need quick access to the shell to compile my code). I set my keybindings with xmodmap ~/.Xmodmap
(the .Xmodmap file contains my xmodmap commands) and I added that command to my .bashrc.
For some more context I am using Ubuntu 16.4 and I recently created a ranger configuration file (~/.config/ranger/rifle.conf) to add support for the .ts file extension. I not an expert ranger or bash user, but both are very important for my workflow. Help would be greatly appreciated.
edit: this problem is solved when I remove xmodmap ~/.Xmodmap
from my .bashrc, but now I have no way of having my xmodmap keybindings enabled on startup. Adding @reboot xmodmap ~/.Xmodmap
to my crontab file does not work (maybe I should post a separate question for that, but I'll leave this question here for future reference).
bash vim bashrc xmodmap ranger
add a comment |
When I open a shell in ranger with shift-s, open vim and then open a shell with :sh or open a new shell tab with ctrl-shift-t, my xmodmap keybindings (swapped caps lock and escape keys) are reset. This is what the terminal spits out:
xmodmap: please release the following keys within 2 seconds:
t (keysym 0x74, keycode 28)
Shift_R (keysym 0xffe2, keycode 62)
My keybindings are very important to me as I am an active vim user currently working with Typescript (I need quick access to the shell to compile my code). I set my keybindings with xmodmap ~/.Xmodmap
(the .Xmodmap file contains my xmodmap commands) and I added that command to my .bashrc.
For some more context I am using Ubuntu 16.4 and I recently created a ranger configuration file (~/.config/ranger/rifle.conf) to add support for the .ts file extension. I not an expert ranger or bash user, but both are very important for my workflow. Help would be greatly appreciated.
edit: this problem is solved when I remove xmodmap ~/.Xmodmap
from my .bashrc, but now I have no way of having my xmodmap keybindings enabled on startup. Adding @reboot xmodmap ~/.Xmodmap
to my crontab file does not work (maybe I should post a separate question for that, but I'll leave this question here for future reference).
bash vim bashrc xmodmap ranger
add a comment |
When I open a shell in ranger with shift-s, open vim and then open a shell with :sh or open a new shell tab with ctrl-shift-t, my xmodmap keybindings (swapped caps lock and escape keys) are reset. This is what the terminal spits out:
xmodmap: please release the following keys within 2 seconds:
t (keysym 0x74, keycode 28)
Shift_R (keysym 0xffe2, keycode 62)
My keybindings are very important to me as I am an active vim user currently working with Typescript (I need quick access to the shell to compile my code). I set my keybindings with xmodmap ~/.Xmodmap
(the .Xmodmap file contains my xmodmap commands) and I added that command to my .bashrc.
For some more context I am using Ubuntu 16.4 and I recently created a ranger configuration file (~/.config/ranger/rifle.conf) to add support for the .ts file extension. I not an expert ranger or bash user, but both are very important for my workflow. Help would be greatly appreciated.
edit: this problem is solved when I remove xmodmap ~/.Xmodmap
from my .bashrc, but now I have no way of having my xmodmap keybindings enabled on startup. Adding @reboot xmodmap ~/.Xmodmap
to my crontab file does not work (maybe I should post a separate question for that, but I'll leave this question here for future reference).
bash vim bashrc xmodmap ranger
When I open a shell in ranger with shift-s, open vim and then open a shell with :sh or open a new shell tab with ctrl-shift-t, my xmodmap keybindings (swapped caps lock and escape keys) are reset. This is what the terminal spits out:
xmodmap: please release the following keys within 2 seconds:
t (keysym 0x74, keycode 28)
Shift_R (keysym 0xffe2, keycode 62)
My keybindings are very important to me as I am an active vim user currently working with Typescript (I need quick access to the shell to compile my code). I set my keybindings with xmodmap ~/.Xmodmap
(the .Xmodmap file contains my xmodmap commands) and I added that command to my .bashrc.
For some more context I am using Ubuntu 16.4 and I recently created a ranger configuration file (~/.config/ranger/rifle.conf) to add support for the .ts file extension. I not an expert ranger or bash user, but both are very important for my workflow. Help would be greatly appreciated.
edit: this problem is solved when I remove xmodmap ~/.Xmodmap
from my .bashrc, but now I have no way of having my xmodmap keybindings enabled on startup. Adding @reboot xmodmap ~/.Xmodmap
to my crontab file does not work (maybe I should post a separate question for that, but I'll leave this question here for future reference).
bash vim bashrc xmodmap ranger
bash vim bashrc xmodmap ranger
edited Jun 21 '18 at 17:26
Liam Thornback
asked Jun 20 '18 at 20:40
Liam ThornbackLiam Thornback
212
212
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Don't run xmodmap
in .bashrc.
It belongs in ~/.xinitrc
so your window manager will run it once upon startup.
The same keybindings will continue to be available when you open your 2nd or 3rd shell tab.
Your .bashrc commands run in several contexts,
including an ssh login session that may lack a $DISPLAY
,
so that init script is usually not the right place for X11 commands.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f450971%2fxmodmap-key-bindings-reset-when-i-open-a-new-tab-in-the-shell%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
Don't run xmodmap
in .bashrc.
It belongs in ~/.xinitrc
so your window manager will run it once upon startup.
The same keybindings will continue to be available when you open your 2nd or 3rd shell tab.
Your .bashrc commands run in several contexts,
including an ssh login session that may lack a $DISPLAY
,
so that init script is usually not the right place for X11 commands.
add a comment |
Don't run xmodmap
in .bashrc.
It belongs in ~/.xinitrc
so your window manager will run it once upon startup.
The same keybindings will continue to be available when you open your 2nd or 3rd shell tab.
Your .bashrc commands run in several contexts,
including an ssh login session that may lack a $DISPLAY
,
so that init script is usually not the right place for X11 commands.
add a comment |
Don't run xmodmap
in .bashrc.
It belongs in ~/.xinitrc
so your window manager will run it once upon startup.
The same keybindings will continue to be available when you open your 2nd or 3rd shell tab.
Your .bashrc commands run in several contexts,
including an ssh login session that may lack a $DISPLAY
,
so that init script is usually not the right place for X11 commands.
Don't run xmodmap
in .bashrc.
It belongs in ~/.xinitrc
so your window manager will run it once upon startup.
The same keybindings will continue to be available when you open your 2nd or 3rd shell tab.
Your .bashrc commands run in several contexts,
including an ssh login session that may lack a $DISPLAY
,
so that init script is usually not the right place for X11 commands.
answered 1 hour ago
J_HJ_H
26113
26113
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f450971%2fxmodmap-key-bindings-reset-when-i-open-a-new-tab-in-the-shell%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