TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hacking Your Keyboard

115 点作者 sorcercode超过 5 年前

20 条评论

davefp超过 5 年前
Good read!<p>If folks are interested in getting deeper into keyboard hacking I highly recommend looking into a board that supports [QMK](<a href="https:&#x2F;&#x2F;qmk.fm&#x2F;" rel="nofollow">https:&#x2F;&#x2F;qmk.fm&#x2F;</a>), which is a very hackable set firmware that works across a bunch of boards.
评论 #21891691 未加载
评论 #21891272 未加载
评论 #21892160 未加载
评论 #21894186 未加载
评论 #21897038 未加载
kortex超过 5 年前
Karabiner is great, but my daily driver is an Ergodox EZ, and it&#x27;s truly the best. I can edit nearly everything in the web configurator gui, but if I wanted to get crazy, the gui can export the QMK source code and I could compile myself.<p>The thing that my workflow really needs now is a way to organize&#x2F;focus specific windows (e.g. a particular IDE window or browser). like I want to be able to assign (on the fly) hotkeys like Alt-1 Alt-2 etc to specific windows.<p>This is Ubuntu 18 though if such a thing is easier on Mac I could make that my main dev environment (I&#x27;m thinking of switching soon anyways once I port my workflow)
评论 #21891639 未加载
评论 #21891684 未加载
评论 #21891602 未加载
rzwitserloot超过 5 年前
This article begins by explaining that karabiner (software for macs) lets you remap caps lock to escape.<p>Which is true.<p>But very misleading: That is a feature the OS itself supports, out of the box: System Preferences, Keyboard, Modifier Keys... – and voila, here you can pick &#x27;escape&#x27; in the dropdown next to &#x27;caps lock key&#x27;.<p>And speaking of that option, go do that right now. Even if you don&#x27;t have a touchbar :)
评论 #21891729 未加载
评论 #21892092 未加载
评论 #21891680 未加载
TeMPOraL超过 5 年前
Don&#x27;t know how it compares feature-wise to Karabiner&#x2F;Goku, but on Windows, you can use AutoHotkey[0] to do all kinds of global input remapping, macros, etc. Someone even wrote a clone of DWM (tiling window manager) in AutoHotkey![1].<p>Personally, I use it mostly to remap CTRL to Caps Lock, but once I wrote a global GUI popup for inserting reaction emojis into conversations on my work machine. AHK is really easy to work with.<p>--<p>[0] - <a href="https:&#x2F;&#x2F;www.autohotkey.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.autohotkey.com&#x2F;</a><p>[1] - <a href="https:&#x2F;&#x2F;github.com&#x2F;fuhsjr00&#x2F;bug.n" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fuhsjr00&#x2F;bug.n</a>
评论 #21891626 未加载
评论 #21891859 未加载
评论 #21891724 未加载
vinceguidry超过 5 年前
If you get deep enough into it, the path of least resistance slowly becomes using Emacs for everything. Macros at the keyboard level still have their uses, for all the things Emacs <i>can&#x27;t</i> do. As emacs becomes more popular, expect that list to get smaller.<p>Of course, if you&#x27;re not a coder, emacs will never replace your Excel &#x2F; Photoshop &#x2F; AutoCAD etc. custom macros.
评论 #21891564 未加载
评论 #21891365 未加载
platz超过 5 年前
This isn&#x27;t keyboard hacking so much as desktop environment hacking
cerberusss超过 5 年前
If you like Karabiner-Elements, please support the developer: <a href="https:&#x2F;&#x2F;pqrs.org&#x2F;osx&#x2F;karabiner&#x2F;pricing.html" rel="nofollow">https:&#x2F;&#x2F;pqrs.org&#x2F;osx&#x2F;karabiner&#x2F;pricing.html</a><p>Takayama Fumihiko has been keeping the kernel extension up to date for many, many years now. Apple is putting up road limits here and there, to provide security, and he jumps through all of their hoops.<p>Every year I upgrade to the latest version of macOS, Karabiner-Elements is ready for the new OS. And every time I donate.
mcswell超过 5 年前
IIUC, most people here are talking about hacking the keyboard itself. Another option is to hack the mapping of key presses to emitted codes, at the OS level. Windows allows you to do this using the SetWindowsHookEx() process. I set this up to do my mapping back in the days of Win3.1, and it&#x27;s worked more or less unchanged since then.<p>My mapping resembles the one described in the article, e.g. ^K --&gt; &lt;up arrow&gt;. (And ^U maps to a series of 8 up arrows, for faster movement.) But I have two states, one in which a ^K simply moves the cursor one line up, and one in which it selects while doing that (and the same for the other keys that do &lt;left&gt;, &lt;right&gt;, &lt;down&gt;, &lt;pgup&gt; etc.). I toggle between the two states using ^Q (and ^C, ^X and a few other keys go to the non-selecting state from the selecting state).<p>The last time I looked, other keyboard mapping techniques I&#x27;ve seen don&#x27;t have this 2-state possibility, or even in some cases to output a sequence of codes.<p>One advantage of doing the mapping this way is that it&#x27;s hardware-independent: I can use it not only on my home desktop, but also on laptops, my office computer, etc., anywhere I can run a tiny .exe + .dll.
knubie超过 5 年前
I use karabiner to map capslock to control when held down, and to escape when just pressed. It&#x27;s really handy for vim.
评论 #21891413 未加载
zeronone超过 5 年前
I usually buy laptops with Japanese keyboard, which gives you three extra keys and use Karabiner to repurpose them.
评论 #21896547 未加载
unnouinceput超过 5 年前
Or you know, buy a gaming keyboard that has a ton of extra macro keys and besides those, the dedicated software can do way more then just the article says. Personally I love my gaming Razor keyboard&#x2F;mouse, it allows me to do a lot more stuff then what&#x27;s in article about Karabiner.
评论 #21891645 未加载
评论 #21894531 未加载
评论 #21891585 未加载
geniium超过 5 年前
Personnaly I use Hammerspoon as my main desktop environment hacking and added a few shortcuts with Karabiner.<p>By using the two of them, you can use any keyboard (native macbook pro or external) and manipulate your windows, setup pomodoro timer or launch&#x2F;activate your favorite programs.<p>Feels great!
评论 #21897602 未加载
评论 #21891613 未加载
datashow超过 5 年前
May not be relevant to the article, but the 80% keyboard is what I want (I never use the numpad, but I use home&#x2F;end&#x2F;page up&#x2F;page down a lot), but I can&#x27;t find many choices on the market.
评论 #21891491 未加载
评论 #21891611 未加载
评论 #21894793 未加载
评论 #21894910 未加载
dubyajaysmith超过 5 年前
I&#x27;ve really enjoyed my Anne Pro 2. It has software for Linux so you get tons of customizations out of the box graphically.
评论 #21891504 未加载
评论 #21891751 未加载
m0skit0超过 5 年前
Vimium extension for browsers allows Vi-like movement and mouse-free navigation. Things you learn from sysadmins ;)
评论 #21894381 未加载
fnoof超过 5 年前
FYI, the basic features mentioned are available in plain macOS.<p>Remap caps lock to control in system preferences.<p>Then ctrl-p: up, ctrl-n: down, ctrl-b: left, ctrl-f: right<p>ctrl-d for forwards delete, also ctrl-a&#x2F;e for home&#x2F;end, ctrl-u&#x2F;k for delete line forwards&#x2F;backwards<p>Works in almost all text entry boxes with no config or other software.
评论 #21910738 未加载
godelski超过 5 年前
Vim users, why are you all remapping your escape key? &lt;C-[&gt; is already a map. I know it is two buttons, but they are with different hands and you don&#x27;t have to stretch or lift your palms to reach them.<p>Benefits over remapping: you can open a random vim terminal and it still works.
评论 #21897961 未加载
MiddleEndian超过 5 年前
I always remap Caps Lock to Compose (built in functionality in Linux, WinCompose for Windows).<p>But what I want more than anything is to be able to modify the laptop keyboard firmware on my Surface Book 2 so that FnLock can never be turned off. Does anyone have any tips for this?
benibela超过 5 年前
That is more a case of gui configuration<p>Here is a real keyboard hacker: <a href="https:&#x2F;&#x2F;spritesmods.com&#x2F;?art=rapidisnake" rel="nofollow">https:&#x2F;&#x2F;spritesmods.com&#x2F;?art=rapidisnake</a>
bbmario超过 5 年前
I wonder how much latency that adds up.
评论 #21897627 未加载