remapping Caps Lock to Ctrl key in tmux Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionThe key codes for Caps Lock, Shift, Left Control and FN key?Configuring Caps Lock as modifier and layout switcherMap Caps Lock to Control in Linux MintXmodmap remapping Caps, but still triggering Caps LockTmux bindings using Ctrl+commaRemapping both Caps Lock and Windows keys to be separate modifierstmux doesn't passes correctly ctrl-shift-arrow sequencesRemapping Caps Lock to ctrl+bexecute command to swap caps lock and ctrl at startupCaps Lock behavior under Sway / Wayland
Around usage results
First console to have temporary backward compatibility
For a new assistant professor in CS, how to build/manage a publication pipeline
Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?
How do I find out the mythology and history of my Fortress?
Can anything be seen from the center of the Boötes void? How dark would it be?
When the Haste spell ends on a creature, do attackers have advantage against that creature?
Do I really need recursive chmod to restrict access to a folder?
How to compare two different files line by line in unix?
Closed form of recurrent arithmetic series summation
Why aren't air breathing engines used as small first stages
What causes the direction of lightning flashes?
Maximum summed powersets with non-adjacent items
Wu formula for manifolds with boundary
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
What does this Jacques Hadamard quote mean?
What is the longest distance a player character can jump in one leap?
Do I really need to have a message in a novel to appeal to readers?
How to react to hostile behavior from a senior developer?
Is there such thing as an Availability Group failover trigger?
Do wooden building fires get hotter than 600°C?
What does the "x" in "x86" represent?
Circuit to "zoom in" on mV fluctuations of a DC signal?
Significance of Cersei's obsession with elephants?
remapping Caps Lock to Ctrl key in tmux
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionThe key codes for Caps Lock, Shift, Left Control and FN key?Configuring Caps Lock as modifier and layout switcherMap Caps Lock to Control in Linux MintXmodmap remapping Caps, but still triggering Caps LockTmux bindings using Ctrl+commaRemapping both Caps Lock and Windows keys to be separate modifierstmux doesn't passes correctly ctrl-shift-arrow sequencesRemapping Caps Lock to ctrl+bexecute command to swap caps lock and ctrl at startupCaps Lock behavior under Sway / Wayland
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm using tmux 2.0 on CentOS 6.7(without X).
How can I use Caps Lock instead of Ctrl in tmux?
keyboard-shortcuts tmux
add a comment |
I'm using tmux 2.0 on CentOS 6.7(without X).
How can I use Caps Lock instead of Ctrl in tmux?
keyboard-shortcuts tmux
add a comment |
I'm using tmux 2.0 on CentOS 6.7(without X).
How can I use Caps Lock instead of Ctrl in tmux?
keyboard-shortcuts tmux
I'm using tmux 2.0 on CentOS 6.7(without X).
How can I use Caps Lock instead of Ctrl in tmux?
keyboard-shortcuts tmux
keyboard-shortcuts tmux
edited Apr 13 at 15:21
Rui F Ribeiro
42.1k1484142
42.1k1484142
asked Sep 23 '15 at 12:39
cul8ercul8er
1849
1849
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Unfortunately, you cannot do it at the tmux layer. The tmux man page man tmux
has a section titled KEY BINDINGS which lists the special keys that can be
mapped within tmux. Caps lock is not one of them:
In addition, the following special key names are accepted: Up, Down, Left,
Right, BSpace, BTab, DC (Delete), End, Enter, Escape, F1 to F12, Home, IC
(Insert), NPage/PageDown/PgDn, PPage/PageUp/PgUp, Space, and Tab.
Fortunately, you should be able to do it easily at the CentOS layer.
There are a few ways of doing it, I prefer the following:
setxkbmap -layout us -option ctrl:nocaps
xmodmap -e 'clear Lock'
xmodmap -e 'keycode 0x7e = Control_R'
xmodmap -e 'add Control = Control_R'
Which you can put into your .bashrc file, or wherever commands are run on startup of your system.
There may also be a way to change the keyboard layout in a configuration program within CentOS. I'm not very familiar with it, but Caps Lock to Control is a pretty common request and you should be able to find it if you search for doing it in CentOS, Linux, or anything other than tmux.
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%2f231542%2fremapping-caps-lock-to-ctrl-key-in-tmux%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
Unfortunately, you cannot do it at the tmux layer. The tmux man page man tmux
has a section titled KEY BINDINGS which lists the special keys that can be
mapped within tmux. Caps lock is not one of them:
In addition, the following special key names are accepted: Up, Down, Left,
Right, BSpace, BTab, DC (Delete), End, Enter, Escape, F1 to F12, Home, IC
(Insert), NPage/PageDown/PgDn, PPage/PageUp/PgUp, Space, and Tab.
Fortunately, you should be able to do it easily at the CentOS layer.
There are a few ways of doing it, I prefer the following:
setxkbmap -layout us -option ctrl:nocaps
xmodmap -e 'clear Lock'
xmodmap -e 'keycode 0x7e = Control_R'
xmodmap -e 'add Control = Control_R'
Which you can put into your .bashrc file, or wherever commands are run on startup of your system.
There may also be a way to change the keyboard layout in a configuration program within CentOS. I'm not very familiar with it, but Caps Lock to Control is a pretty common request and you should be able to find it if you search for doing it in CentOS, Linux, or anything other than tmux.
add a comment |
Unfortunately, you cannot do it at the tmux layer. The tmux man page man tmux
has a section titled KEY BINDINGS which lists the special keys that can be
mapped within tmux. Caps lock is not one of them:
In addition, the following special key names are accepted: Up, Down, Left,
Right, BSpace, BTab, DC (Delete), End, Enter, Escape, F1 to F12, Home, IC
(Insert), NPage/PageDown/PgDn, PPage/PageUp/PgUp, Space, and Tab.
Fortunately, you should be able to do it easily at the CentOS layer.
There are a few ways of doing it, I prefer the following:
setxkbmap -layout us -option ctrl:nocaps
xmodmap -e 'clear Lock'
xmodmap -e 'keycode 0x7e = Control_R'
xmodmap -e 'add Control = Control_R'
Which you can put into your .bashrc file, or wherever commands are run on startup of your system.
There may also be a way to change the keyboard layout in a configuration program within CentOS. I'm not very familiar with it, but Caps Lock to Control is a pretty common request and you should be able to find it if you search for doing it in CentOS, Linux, or anything other than tmux.
add a comment |
Unfortunately, you cannot do it at the tmux layer. The tmux man page man tmux
has a section titled KEY BINDINGS which lists the special keys that can be
mapped within tmux. Caps lock is not one of them:
In addition, the following special key names are accepted: Up, Down, Left,
Right, BSpace, BTab, DC (Delete), End, Enter, Escape, F1 to F12, Home, IC
(Insert), NPage/PageDown/PgDn, PPage/PageUp/PgUp, Space, and Tab.
Fortunately, you should be able to do it easily at the CentOS layer.
There are a few ways of doing it, I prefer the following:
setxkbmap -layout us -option ctrl:nocaps
xmodmap -e 'clear Lock'
xmodmap -e 'keycode 0x7e = Control_R'
xmodmap -e 'add Control = Control_R'
Which you can put into your .bashrc file, or wherever commands are run on startup of your system.
There may also be a way to change the keyboard layout in a configuration program within CentOS. I'm not very familiar with it, but Caps Lock to Control is a pretty common request and you should be able to find it if you search for doing it in CentOS, Linux, or anything other than tmux.
Unfortunately, you cannot do it at the tmux layer. The tmux man page man tmux
has a section titled KEY BINDINGS which lists the special keys that can be
mapped within tmux. Caps lock is not one of them:
In addition, the following special key names are accepted: Up, Down, Left,
Right, BSpace, BTab, DC (Delete), End, Enter, Escape, F1 to F12, Home, IC
(Insert), NPage/PageDown/PgDn, PPage/PageUp/PgUp, Space, and Tab.
Fortunately, you should be able to do it easily at the CentOS layer.
There are a few ways of doing it, I prefer the following:
setxkbmap -layout us -option ctrl:nocaps
xmodmap -e 'clear Lock'
xmodmap -e 'keycode 0x7e = Control_R'
xmodmap -e 'add Control = Control_R'
Which you can put into your .bashrc file, or wherever commands are run on startup of your system.
There may also be a way to change the keyboard layout in a configuration program within CentOS. I'm not very familiar with it, but Caps Lock to Control is a pretty common request and you should be able to find it if you search for doing it in CentOS, Linux, or anything other than tmux.
edited Nov 9 '15 at 2:55
answered Nov 8 '15 at 16:40
Troy FletcherTroy Fletcher
263
263
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%2f231542%2fremapping-caps-lock-to-ctrl-key-in-tmux%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