Karabiner Elements run a script Formally VK_Open_URL

185 views
Skip to first unread message

mattm...@googlemail.com

unread,
Aug 2, 2017, 10:29:35 AM8/2/17
to Karabiner
Hi with Karabiner Elements is it currently possible to run a script from a keyboard short cut.

Also has it been possible to recognise double press modifier to then run a Vk, along with hold and single press?

Loved the way it used to work. I heard it was due to the drivers being rewritten for MacOS, can the old keyboard driver be reinstalled just a thought.

Many Thanks Takayama Fumihiko for all your work that has been achieved!

Matt

Mike Petonic

unread,
Aug 5, 2017, 10:31:52 AM8/5/17
to Karabiner, mattm...@googlemail.com
Yes, there is a way to run a script with K-E.  Look on the Complex_Modifications section of preferences.  Then look at the "Add Rule" button on the bottom. Press that and then select "Import More Rules from the Internet" at the top of that screen.  That will launch a web page in your browser that points to customizations.

Scroll down to "OS Functionality" and Import "Launch Apps".  Once that's done, look in ~/.config/karabiner/karabiner.json.  The rule will be there and you can see how the programs are launched.

Takayama has been on a roll and after refactoring Karabiner into Karabiner-Elements, he's seems to have cracked the code to allow mapping multiple keys to one key in the last several months.  That was the critical bit of functionality that was missing from Karabiner-legacy.  Of course, there's a lot of legacy functionality that is still to be added but a lot of it is there now.

I was able to remove my somewhat flakey Hammerspoon implementation and go back to Karabiner.

Right now, I'm using my TAB key as a super-Hyper key to launch or focus applications.  Unfortunately, pressing CMD-TAB is sometimes flakey.  I'm trying to debug that.

Also, the .json format is not the easiest to work in even if you have a nice powerful JSON editor such as Atom.  I'm sort off thinking about writing a YAML processor that will make it easier to assemble working key configurations from bits and bobs of JSON files.  I don't have time for that now, but I'd really appreciate such a utility.

Welcome back!
Reply all
Reply to author
Forward
0 new messages