News for hackers. Stuff that matters.
Re:Kinto: Mac-style shortcut keys for Linux and Windows by Cyph0n on Thursday March 11, 2021 @11:40PM (#26432278)
On a slightly related note: does anyone else map caps lock to control (and vice-versa)?

I’ve never really understood why caps lock gets a huge key in the middle of the keyboard, while control gets a regular-sized key at the bottom. Generally speaking, caps lock is used much less than control.

Re:Kinto: Mac-style shortcut keys for Linux and Windows by dghf on Friday March 12, 2021 @04:25AM (#26433755)
At home (Linux with a PC keyboard), I just map capslock to control, and don't map anything to capslock: I have to type in all caps so little that it doesn't justify a key of its own, and holding down the shift key for several characters once in a while isn't much hardship.

At work (MacBook Pro), things get a little hinkier:

- I map capslock to command

- in iTerm2 only, I swap command and control.

This means I can use the honking big key to the left for my cutting/pasting/window-switching needs when not in the terminal, and still use my muscle memory for Vim and the command line when I am in the terminal.

The (not insignificant) downside is having to remember to use the physical control key (rather than capslock or physical command) for copying/pasting/window-switching when in the terminal: but I can live with that.

I also had to disable iTerm2's default command-W shortcut for closing tabs, as I kept hitting it by accident when trying to ^W on the command-line.

Separate but still (just) related point: I've had to train myself to use ^[ for Escape in the terminal (especially in Vim), as the escape key on the MacBook Pro's touchbar is next to useless. I guess could have just mapped capslock to Escape, but having that big fat control/command key is just too useful.

Re:Kinto: Mac-style shortcut keys for Linux and Windows by maddyboo on Thursday March 11, 2021 @11:50PM (#26432324)
I map it to escape. I find using the caps lock key as a modifier to be too awkward, I prefer the position of the control key for that. Escape being all the way up at the top left is much more of an inconvenience. I don’t remap the original escape key to caps lock, though, I have xkb set to trigger caps lock by pressing both shift keys.
Re:Kinto: Mac-style shortcut keys for Linux and Windows by Cyph0n on Friday March 12, 2021 @09:52AM (#26436385)
As a Vim user, Esc is quite common, but I still end up straining my hand more when reaching for control. Remapping control has helped me a lot with that.

If strain wasn’t an issue, Esc would be my next choice.

Re:Kinto: Mac-style shortcut keys for Linux and Windows by desmap on Friday March 12, 2021 @09:03AM (#26435904)
or just put both esc and ctrl to caps lock, which got common in the kb community for a few years
Re:Kinto: Mac-style shortcut keys for Linux and Windows by georgn on Friday March 12, 2021 @07:57PM (#26442875)
Yes. As a long time Emacs user I do that routinely on _every_ machine I use.

For those that don't know, there are a handful of control key sequences that perform basic cursor movements that are the same in Emacs, bash, zsh, and every text pane in Mac apps. Using caps lock as a control key makes this very pleasant.

I am unlikely to give up this habit since I despise moving my hands from the home row to use arrow keys -- for me, this is the main pain point when switching between Windows and Mac several times per day.

Re:Kinto: Mac-style shortcut keys for Linux and Windows by mokanfar on Friday March 12, 2021 @02:06AM (#26432953)
Capslock is dual-role for me, tap for Enter, hold for acting like a custom modifier. Shift is tap for escape, hold for normal shift, tilde is backspace, my pinky gets busy. The best Ctrl replacement is spacebar, the only windows program that does it flawlessy is touchcursor
Re:Kinto: Mac-style shortcut keys for Linux and Windows by desmap on Friday March 12, 2021 @09:06AM (#26435935)
i had space when pressed remapped with ahk but couldn't get it to work reliably typing above 80wpm, how is it with touch cursor?
Re:Kinto: Mac-style shortcut keys for Linux and Windows by mokanfar on Friday March 12, 2021 @09:46PM (#26443441)
I can type 100+ wpm reliably with touch cursor. AHK is not recommended for space bar dual role functionality for the reasons you mentioned.
Re:Kinto: Mac-style shortcut keys for Linux and Windows by desmap on Saturday March 13, 2021 @05:26AM (#26445571)
Ok good to know, I just installed it together with AHK and somehow they must interfere which each other even if I suspended or paused AHK's script.

TouchCursor sometimes is deactive and then after a few seconds again it works again...

Re:Kinto: Mac-style shortcut keys for Linux and Windows by rbreaves on Friday March 12, 2021 @12:22AM (#26432449)
Kinto supports remapping Capslock to Ctrl or Esc, it is in the Tweaks menu, at least on Linux. I have not implemented the Tweaks menu for Windows just yet, besides that the 2 versions are pretty much at parity with each other.
Re:Kinto: Mac-style shortcut keys for Linux and Windows by raindropm on Friday March 12, 2021 @12:51AM (#26432560)
I map it to alt+tab. One press and it call most recent window, another press and it switch back.

I mean, you can press alt+tab quickly. But I like the simplicity of one button.

Re:Kinto: Mac-style shortcut keys for Linux and Windows by mcpherrinm on Thursday March 11, 2021 @11:42PM (#26432287)
It's sufficiently common that one of my keyboards has a built-in DIP switch to enable that