TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Use caps lock as a language switch

33 pointsby marinintimover 8 years ago

21 comments

deathanatosover 8 years ago
Some OSes (I know at least Linux does) support what&#x27;s called &quot;two-shift caps lock&quot;: if you hit both shifts, together, you get caps-locks. If you hit only one (on either side), you get a normal shift key.<p>This frees up the CapsLock-the-key for whatever you want, <i>and</i> you get to keep CapsLock-the-function. (And, you don&#x27;t have to &quot;move&quot; it, such as in the &quot;Swap CapsLock and Control&quot; schemes: you get to have normal Control, CapsLock key for whatever you want, <i>and</i> the capslock functionality.)<p>I mapped my CapsLock key to &quot;Level3 shift&quot; at home, and mapped various interesting characters into the homerow, and space. I figured &quot;_&quot; is a word separator, and space bar is for separating words, so Level3+Space = &quot;_&quot;. Level3 + the home row is stuff like ()[]{}; things that are normally way out.<p>Not sure how good the layout is, since I&#x27;m still trying to get used to it, and old habits die <i>really</i> hard. I was heavily inspired by the Neo keyboard layout[1].<p>[1]: <a href="http:&#x2F;&#x2F;neo-layout.org&#x2F;index_en.html" rel="nofollow">http:&#x2F;&#x2F;neo-layout.org&#x2F;index_en.html</a>
评论 #12513581 未加载
MrRadarover 8 years ago
Am I the only one who actually uses caps-lock for its intended purpose on a regular basis? I use it pretty much any time I have to type more than two capital letters in a row, which is frequently when I&#x27;m programming.
评论 #12510776 未加载
评论 #12510800 未加载
评论 #12510824 未加载
评论 #12511166 未加载
评论 #12510801 未加载
评论 #12511079 未加载
评论 #12510763 未加载
评论 #12511060 未加载
评论 #12511188 未加载
DigitalJackover 8 years ago
On windows, I have capslock mapped thusly:<p>If pressed and released without another keypress in between, it sends ESC.<p>If pressed in combination with another key, it&#x27;s CTRL.<p>I haven&#x27;t found a way to do this dual mapping on OSX, so it&#x27;s just CTRL there. I use AutoHotKey for this on windows.
评论 #12511080 未加载
qwertyuiop924over 8 years ago
This is problematic for Emacs users: You can&#x27;t put Switch Lang there, you need Control there!<p>However, you could bind this to lcontrol, and get the capslock light to turn on when it goes.<p>Also, am I the only one who at some point rebound ralt to rshift? I&#x27;ve stopped doing it now. I don&#x27;t know what I was thinking.
评论 #12513184 未加载
tyleoover 8 years ago
I am a Vim user. Mapping Caps Lock to Esc has been pretty valuable and it only took me about a week to get used to the change.
评论 #12510768 未加载
评论 #12511281 未加载
hs86over 8 years ago
I mapped caps lock to ctrl on Windows and to command on MacOS. Using the system wide default shortcuts feels much easier this way, because caps lock is on the same middle row where my fingers usually rest.<p>I got this idea from the custom layout of the HHKB keyboard: <a href="https:&#x2F;&#x2F;elitekeyboards.com&#x2F;proddata&#x2F;doc&#x2F;hhkbp2_basic_layout1500.png" rel="nofollow">https:&#x2F;&#x2F;elitekeyboards.com&#x2F;proddata&#x2F;doc&#x2F;hhkbp2_basic_layout1...</a>
评论 #12510912 未加载
Kenjiover 8 years ago
Speaking of multilinguals - note that Swiss people actually <i>need</i> capslock to type things like &#x27;Ö&#x27; because if you press SHIFT + &#x27;ö&#x27; then you get &#x27;é&#x27; on a Swiss layout (well, I guess you could type &#x27;¨&#x27; first and then &#x27;O&#x27;, that also assembles to &#x27;Ö&#x27;). Gotta accomodate for both German and French. Just a bit of trivia you might not have known.
评论 #12511228 未加载
ucsover 8 years ago
I use Caps Lock as an extra general-purpose function key (F20), which I can then bind as I please depending on the application.<p>Mapping it as an extra modifier seems a tad unergonomic. Ideally, each modifier key should be located on either side of the keyboard, so that you can always engage it with the opposite hand. To that end, I also remap the Menu key on my MS Natural Keyboard[1] to act as a second Super modifier.<p>Furthermore, since I&#x27;m multilingual and need an AltGr modifier on both sides as well, I map the combo Ctrl+Super to act as AltGr. See my US+International XKB keymap[2] should you happen to want a similar setup on Linux.<p>[1] <a href="https:&#x2F;&#x2F;www.microsoft.com&#x2F;accessories&#x2F;en-us&#x2F;products&#x2F;keyboards&#x2F;natural-ergonomic-keyboard-4000&#x2F;b2m-00012" rel="nofollow">https:&#x2F;&#x2F;www.microsoft.com&#x2F;accessories&#x2F;en-us&#x2F;products&#x2F;keyboar...</a><p>[2] <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;ucs1&#x2F;fe673a3606442911dbd7d016a3726465" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;ucs1&#x2F;fe673a3606442911dbd7d016a372646...</a>
ramblenodeover 8 years ago
I love Caps Lock. It&#x27;s just a free key on the home row to reprogram to whatever you want. I change mine to ESC for easier Vim interaction.
heinrich5991over 8 years ago
The caps key is clearly destined for the compose key, quite useful if you sometimes need to type different languages. &quot;şçäë&quot;
pdkl95over 8 years ago
Caps_Lock should be mapped to Control_L so you can type it in the home row with less stress to the hand&#x2F;fingers. (no twisting)<p>Additionally, one of the better changes I made years ago was mapping redundant&#x2F;useless modifiers to the bucky bits[1] in my ~&#x2F;.Xmodmap.<p><pre><code> Phys Key | New Modifier Mapping ----------------------------------- CapsLock | Control Alt_L | Meta Alt_R | Alt (mod4) Win_L | Super (mod3) Win_R | Hyper (mod5) </code></pre> To my surprise, quite a few programs support the higher modifier bits.<p>[1] <a href="http:&#x2F;&#x2F;www.catb.org&#x2F;jargon&#x2F;html&#x2F;B&#x2F;bucky-bits.html" rel="nofollow">http:&#x2F;&#x2F;www.catb.org&#x2F;jargon&#x2F;html&#x2F;B&#x2F;bucky-bits.html</a>
评论 #12512158 未加载
dogma1138over 8 years ago
Under windows you don&#x27;t need to use 3d party apps.<p>Regedit HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\Your_Language_IME<p>Set the key modifier to 00 and set the virtual key to the key you want caps lock is 04 iirc. <a href="https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;windows&#x2F;desktop&#x2F;dd375731(v=vs.85).aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;windows&#x2F;desktop&#x2F;dd3...</a><p>I think there was also a way to hack it through HKEY_CURRENT_USER\Keyboard Layout\Toggle but I&#x27;m not sure if it&#x27;s used anymore.
neurocrocover 8 years ago
I actually think you can take it a step further. I have my caps lock mapped to esc on single press and as opt + control when held but I also use something I call sticky keys that allow me to keep my hands on the keyboard and on the home row at all times.<p>[Here it is and how I use it.](<a href="https:&#x2F;&#x2F;github.com&#x2F;nikitavoloboev&#x2F;dotfiles&#x2F;tree&#x2F;master&#x2F;karabiner" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nikitavoloboev&#x2F;dotfiles&#x2F;tree&#x2F;master&#x2F;karab...</a>)
hprotagonistover 8 years ago
CAPS_LOCK -&gt; L_CONTROL.<p>Long-time emacs use has permanently changed my left pinkie.
trevynover 8 years ago
I used caps lock as backspace for a long time, I quite enjoyed it.
sssilverover 8 years ago
As an &quot;academic&quot; touch typer, I use Caps Lock as intended (for typing more than 2 all-caps letters in a row), however since I need that much less frequently than Ctrl, I swap Ctrl and Caps Lock on every computer that I call home. As far as switching between 3 keyboard layouts (dvp, Armenian, Russian), I map that to Option+Command+Space, but now that I think about it there&#x27;s probably a better combination to be found.
grahamburgerover 8 years ago
I mapped caps lock to left click and then used eviacam to control the mouse pointer with my face. No more keyboard&lt;-&gt;mouse back and forth. Works great!
franciscopover 8 years ago
Well this is just magic. I had set it up to Ctrl+Space since I speak Spanish, English and learning Japanese. I am not fluent enough in Japanese yet, but it becomes a burden when trying to write a website in Spanish.<p>You can just do this instead in Ubuntu: Text Entry Settings =&gt; click on &quot;Switch to the next source using&quot; =&gt; Caps Lock
smilekzsover 8 years ago
I&#x27;ve been doing this for a while. I agree it&#x27;s the most natural map for a multi-lingual ({en-US, zh-CN, ja-JP} here).<p>AutoHotkey on Windows 10:<p><pre><code> CapsLock::#Space +CapsLock::+#Space</code></pre>
lowmagnetover 8 years ago
I hold caps lock for ctrl, and tap it for escape. Right then left shift is my caps lock, tap shift to unlock.
rhinoceraptorover 8 years ago
I don&#x27;t even have a caps lock key programmed on my ErgoDox keyboard.