mxstbr / karabiner

My Karabiner Elements configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Interaction with Rectangle

kaspersoerensen opened this issue · comments

First off - man this is nice! Saves me a lot of time and makes the config much simpler!

I only have one problem that I can't seem to figure out: How to interact with Rectangle. I can see that you have implemented this already, but I cannot get it to work. Rectangle is installed and I can just the regular shortcuts to manipulate the windows. But I cannot get it to work using your script. The Logs in Rectangle and Karabiner-Elements do not give me any good clues about what is going on.

Any good advise about where to go from here?

/Kasper

I recently (5 days ago) changed how Karabiner interacts with Rectangle in ca458bb. Before, it would rely on Rectangle's keyboard shortcuts being present. After, it uses Rectangle's open URL commands to trigger the window movement even if no keyboard shortcuts are set/they are different from the defaults.

Can you check:

  1. Which version of this repository are you on? Is it before or after this commit?
  2. Which version of Rectangle are you on? I'm on v0.76.

Hi Max, thank you very much for the reply.

I am on the latest commit of your script and version v0.76 (82) of Rectangle.

I just tried to insert the line "shell_command": "open -g 'rectangle://execute-action?name=left-half'" directly into the karabiner.json - that does work, so I am now pretty sure it has something to do with the Mac I was testing on before (Running MacOS 13), that is not functioning correctly, and not your code.

Got it. Thanks for debugging. I'll close this issue for now; let me know if it does turn out to be an issue with the code here and we'll keep debugging.