Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have swapped Caps Lock and Escape on my Linux personal laptop and I have grown used to it. So when I dual booted Windows on my machine, I used Powertoys[1] to achieve the same.

At work, I have no option to install Powertoys or Uncap[2] for that matter. AutoHotKey is the only way, but I'm unable to get it to work. I used this StackOverflow[3] answer, but with this, both Caps Lock and Escape send both of the keys. So I'm stuck occasionally messing up my Teams messages :)

[1]: https://github.com/microsoft/PowerToys [2]: https://github.com/susam/uncap [3]: https://stackoverflow.com/questions/38558376/how-to-map-caps...



Kanata[0] is amazing. It support both Linux and Windows. But I'm yet to try it on windows because my majority work is on linux.

[0] https://github.com/jtroo/kanata


> I have swapped Caps Lock and Escape on my Linux personal laptop and I have grown used to it.

I'd also suggest "home row modifier keys" (or "home row mods").

The idea is to have the key behave the same when tapped, but differently if held. (e.g. https://github.com/evilC/TapHoldManager implements this for AHK)

With home row modifiers, Shift/Ctrl/Win/Alt are put underneath fdsa (and jkl;). -- This reduces the need to use pinky fingers for these keys, & the fingers get to remain on home row more.


I've been using AHK to swap these keys for years, this script works (it's different than your linked StackOverflow answers):

    CapsLock::Esc
    Esc::CapsLock
I wrote about a number of other AHK quick wins, such as launching programs with global hotkeys here: https://nickjanetakis.com/blog/remap-and-set-global-hotkeys-...


Did you try scancode map registry[1]? I use it to swap Ctrl/CapsLock and it works well even with RDP softwares and run-as-admin apps which PowerToys couldn't handle.

[1] https://superuser.com/questions/550679/where-can-i-find-wind...


I was stuck on the same struggles, but eventually managed to bodge something together:

https://github.com/hwalinga/dotfiles/blob/master/CapsLockCtr...

It also implements the double feature functionality of CapsLock that now functions as Ctrl when pressed with another key, and just Esc when tapped.


Can’t give an AHK answer but what about Sharpkeys?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: