Contribute
Register

Shortcut without using the key "CMD" / "CTRL" / "ALT"

Status
Not open for further replies.
Joined
Feb 2, 2018
Messages
78
Motherboard
Gigabyte Z370 AORUS Gaming 7
CPU
i7-8700K
Graphics
RX 580
Mac
  1. Mac Pro
Hi,
Does anyone know how to create a new shortcut, without using the key "CMD" or "CTRL" or "ALT" for a specific App.
Shortcuts created in "system preferences/keyboard/shortcut" need inevitably one of those keys.
Is there a solution (Terminal/software...) ?
It's for using protools' shortcuts in Ableton live. Examples :
R : Zoom out
T : Zoom in
3 : Record
etc...
Thank's
 
Hi!
How are these functions called in Ableton live? Are they menu items or do you have to press buttons?
Karabiner Elements CAN execute your commands if they are accessible by whatever key sequences. As far as I can see, it cannot (yet) simulate mouse clicks at exact window/mouse coordinates.

UPDATE:
I googled Ableton's shortcuts and found (PC & Mac):
Zoom out => "-" // Zoom in => "+" // Record => "F9"

The easiest solution would be if you gave Ableton-Live's "bundle identifier" (found with EventViewer) to me.
But you are lucky: I installed a trial version … and found: "Bundle Identifier: com.ableton.live"

So: I append a json file's contents. In order to use it you must:
– (Google and) Install "Karabiner Elements" (free).
– Copy/paste the below code into an editor (TextEdit will do) and save as "AnyNameYouWant.json".
– In finder click menu "Go to" and (at bottom) "Go to folder…"; Insert "~/.config.karabiner/assets/complex_modifications"
– Copy your "AnyNameYouWant.json" there
– Open Karabiner Elements, tab "Complex Modifications"
– Press: [+ Add rule], next press [+ Enable] at the adequate position with "Ableton_Zoom_In-Out_Record"
– You can close Karabiner Elements and your new shortcuts work immediately.

CHANCES ARE: these "key words" are NOT (all) recognised correctly at first try!
IF this so happens – don't worry, but
:
– Open EventViewer, open Ableton-Live, press the "original" shortcuts "-", "+" and "F9" and note down their names listed here.
– Open Karabiner Elements, tab "complex Mod.", press [– Remove] at your old "Ableton_Zoom_In-Out_Record".
– Open your original "AnyNameYouWant.json" and put the down-noted names, where necessary, in place of "keypad_hyphen","keypad_plus" and/or "F9".
– Save the file and replace your old version in ~/.config.karabiner/assets/complex_modifications.
– In Karabiner Elements ("Compl. Mod.") press [+ Add rule] once more and [+ Enable] "Ableton_Zoom_In-Out_Record" again.

If there exist other adequate shortcuts (maybe WITH modifier keys) Karabiner can easily remap them to non-modifier keys, even single ones.

Here's the json code:
Code:
{ "title": "Ableton_Zoom_In-Out_Record",
  "rules": [
        {"description": "Assigns Zoom-Out-In & Record to ''R'', ''T'' & ''3''",
         "manipulators": [
                           {  "conditions": [
                                  {"bundle_identifiers": ["^com.ableton.live"],
                                   "type": "frontmost_application_if" }
                                                 ],
                              "from": { "key_code": "keypad_hyphen" },
                              "to": [ { "key_code": "r", "repeat": false }   ],
                              "type": "basic"
                           },
                           {  "conditions": [
                                  {"bundle_identifiers": ["^com.ableton.live"],
                                   "type": "frontmost_application_if" }
                                                 ],
                              "from": { "key_code": "keypad_plus" },
                              "to": [ { "key_code": "t", "repeat": false }   ],
                              "type": "basic"
                           },
                           {  "conditions": [
                                  {"bundle_identifiers": ["^com.ableton.live"],
                                   "type": "frontmost_application_if" }
                                              ],
                              "from": { "key_code": "F9" },
                              "to": [ { "key_code": "3", "repeat": false }   ],
                              "type": "basic"
                           }                        
    ]    }    ]    }
 
Last edited:
Hi MAClement,

Sorry for being late (I've just moved in a new appartement, no internet).
Thanks for the answer, and solution ! :thumbup:
Using already karabiner (windows keyboard).
I'm stuck with :
next press [+ Enable] at the adequate position with "Ableton_Zoom_In-Out_Record"
the .json is not showing in the folder Complex Modifications (I did put .json in the folder "~/.config.karabiner/assets/complex_modifications").
After "Add rules"
the only thing I can do is :
"Import more rules from the internet (open a web browser)"
witch brings me to the page
https://pqrs.org/osx/karabiner/complex_modifications/

What should I do ?

Thank's again, much appreciated :headbang:
 
Just to exclude the improbable: you did not really call your file ".json", did you?
Of course it must have a real name like "Ableton.json".
– otherwise you created an invisible file.

Supposing you did NOT call it ".json", some other source for failure might be a "wrong" unicode encoding (right: utf-8) or line breaks. You could try saving it with different breaks, unix / mac / pc.
 
:mrgreen: Right I could have...but no, I did not !!! :lol:
Ok, so gonna try some different code (line breaks...???)
Weird, a .json should be seen anyway, no (maybe not working because of the code inside, but be seen anyway...) ?
Gonna see with the .json from the example (file in the folder "karabiner", above) and "copy" it
Thank's again !
 
Well, jsons seem to be very "delicate". If there is one little comma too much/little, Karabiner will ignore it completely.
Pasting the 3 { "conditions": …} parts into an existing other json is a good idea!
(In case you have NO success, post the whole json here to look at!)

One more idea: open EventViewer, type your three keys and watch its names for Ableton. There may be problems, if they are other than "keypad_hyphen", "keypad_plus" and "F9". If so: exchange them!
 
Last edited:
Status
Not open for further replies.
Back
Top