

Use `rightClick` over `` for the delay, which gives which is faster than hs.eventtap.keyStroke If any of you use Hammerspoon, here is the script: - Simluate keypress with low-level eventap event It’s brittle (e.g., if the menu list gets updated), but better than nothing. Once a frame is selected, I hit, which simulates the key presses needed to open the menu and select Copy Link. I might try it out one of these days.I got so tired of going through this operation that I decided to write a keybind macro. You lose the ability to enter Line Feed (Return) with CTRL+J which I do use from time to time, but it sounds intriguing. Yewenjie’s comment mentions keyd which apparently does have that feature! ] While I waited for this one to be delivered (was a crowdfunding campaign) I used that to simulate some of its features and surprised myself when I found out that I stopped using the dedicated cursor keys even if all my keyboards had them. Some of that can be done with xinput on Linux, but as far as I know the different-key-when-held functionality is not available there. Programmable keyboards offer so many improvements, it’s incredible. On a different programmable keyboard, with a more traditional staggered layout (the ErgoDox has a columnar layout where where keys are aligned horizontally) I used that same function but on Caps-Lock, left of A: press it combined with another key, it is CTRL press it alone, it is ESC. There's no going back )Ĭonceptually it also scratches me the wrong way that left index gets to hit 4,5 and 6 while right index only gets to hit 7. I don't care if the travel is shorter for the left hand: I actually learned touch-typing from a secretary and she taught me to type the '6' with the right hand. I cannot type on a split keyboard that has the '6' on the left part. There are physical layouts that I do appreciate but zero switch that I like (I tried everything, from Model M s to ALPS to every Cherry color under the sun) besides Topre.

Sadly the whole custom keyboard community is basically 99.9% cherry switches, 0.1% other switches and 0% Topre so no luck for me there.
Hammerspoon press key mod#
Some modded their HHKB Pro 2 with a programmable controller but I'm not sure the mod is compatible with an HHKB Pro JP. I'm using a HHKB Pro JP since forever: Topre is my "end game" switch. > Please consider buying a programmable keyboard instead of X11 hacks, i say this as someone who put up with the problems for a decade. I don't really understand how you can get weird thumb positions on an ergodox though. > No more weird thumb positions, or elongated pinkies.

No pinky and both hands are used (instead of doing left hand for ctrl and left hand for x). I'm using "key at the left of my tiny space bar +. Then I have one for you: you can use something else than ctrl to do ctrl-x in Emacs, using ctl-x-map. I did that years ago and since then I'm a happy camper. I spend countless hours on my keyboard setup and, to me, it's perfect. I configured things I use in Emacs all the time, like ivy / avy, to never require the pinkies (I removed the keys supposed to be pressed by pinkies from the list of available candidates). I do other cute things: OP mentioned using Emacs a lot. Anything I need to do that is related to the WM gets done using a dedicated modifier. I'm sure it can be even better: say by doing it at the keyboard controller level, bypassing the OS entirely but what I have works well enough for me.Īnother trick: a modifier dedicated only to my window manager.
Hammerspoon press key code#
This is sweet because as actual arrows key code are sent, this works in every single program as if the arrow keys were actually pressed. The modifier is always under my left thumb (I'm using a japanese keyboard, so the space bar is very narrow and I'm using the key at the left of the spacebar as the modifier for ijkl (and for other shortcuts). It's not unlike gamers using wasd or esdf: ijkl mimics the arrows keys cluster. I'm for example using "modifier + ijkl" to send actual arrow key codes so I don't need to move to the arrows key cluster. I'm using a very custom keyboard configuration and I'm doing all my config using Linux's xkb (X Keyboard Extension).
