News for hackers. Stuff that matters.
Re:In Praise of AutoHotKey by slightwinder on Wednesday May 13, 2020 @04:30AM (#23164797)
> And I actually use caps lock as a "fn" key for hjkl/arrows. Who needs caps lock, really?

Caps Lock is quite useful, because it's the perfect location for remapping the Ctrl- and ESC-Keys. Which is no surprise, as they originally where located there.

Under linux there is a nice tool for overloading keys, so they behave one way when pressed short, and another way when holded longer. With programmable keyboards you even have it OS-independant.

Re:In Praise of AutoHotKey by manishjhawar on Wednesday May 13, 2020 @05:11AM (#23164995)
> Under linux there is a nice tool for overloading keys...

Name please (TIA)

Re:In Praise of AutoHotKey by slightwinder on Wednesday May 13, 2020 @05:34AM (#23165117)
Oh, right. I knew I forgot something.

I use https://github.com/alols/xcape for some while now. It's old, reliable and straight forward, just does it's job. Only downside is that it seems to be limted to X11. Not sure how well it will play with wayland.

There are now also some alternative tools, with more ability, which allow overloading just on the side. I have them on my list for a while now, but not done much yet with them.

- https://github.com/david-janssen/kmonad

- https://github.com/mooz/xkeysnail

- https://github.com/snyball/Hawck

Oh, and for rermapping capslock there are also options with X11. I use

   setxkbmap -option ctrl:nocaps
to map ctrl to capslock, then overload it with

    xcape -e "Control_L=Escape;"
to add ESC ontop.
Re:In Praise of AutoHotKey by valerij on Wednesday May 13, 2020 @07:10AM (#23165672)
oh yeah. i remapped it to f15 and use it all the time now