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

As an aside, I switched Caps Lock to ESC a few years ago and after the 6 weeks(?) or however long it took to fully adjust, it's fantastic. I wish I could bring Caps Lock -> ESC joy to everyone.


The only issue with that for me is that Caps Lock as Control is also a useful mapping.


On my Mac I use Karabiner to map Caps + [key] to Ctrl, and a lone press to Esc. It's amazing.


I've done the same but Caps + key to Hyper (cmd+ctrl+option+shift), just to pair with custom shortcuts.

But I really love using it for escape. I'm on a 2014 model but not going to the corner for escape is great. Plus I'm about to get one of these new ones, and I feel prepared since I have zero usage of the top row (other than the special functions).


Wow, that's a great idea. I didn't realize it had support for that.


Yep. Every single thread about TouchBar complaints has this or a very similar comment and people. Spread the knowledge!


That sounds like a perfect setup! Mind sharing the modification rule?


I map it to Hyper, but you can tweak this to just be control:

    {
        "description": "Change caps_lock to hyper/escape.",
        "from": {
            "key_code": "caps_lock",
            "modifiers": {
                "optional": [
                    "any"
                ]
            }
        },
        "to": [
            {
                "key_code": "left_shift",
                "modifiers": [
                    "left_command",
                    "left_control",
                    "left_option"
                ]
            }
        ],
        "to_if_alone": [
            {
                "key_code": "escape"
            }
        ],
        "type": "basic"
    }


Oh that's neat, thanks for the tip.


I do caps lock to control, and control to escape. I also set right_shift when pressed alone and not a modifier to forward_delete.


Complex key behaviors can be defined with Karabiner-Elements.[1]

There are tons of settings posted on Github, and I just modified someone else's to get:

    {"description":"Change right_shift alone to delete_forward",
    "manipulators":[{
    "from":{"key_code":"right_shift","modifiers":{"optional":["any"]}},
    "to":[{"key_code":"right_shift"}],
    "to_if_alone":[{"key_code":"delete_forward"}],
    "type":"basic"}]}
[1] https://github.com/tekezo/Karabiner-Elements


I feel like I'm the only one who actually uses caps lock for its intended purpose, and often...


Are you writing a lot of FORTRAN 77 or something?


as a french, on linux (and mac too), caps lock is the correct way to get accentued capitals.




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

Search: