1

The Situation:

I am working on an Mac Book Pro from my company and connecting to a virtual desktop via VMware Horizon Client. I am using the beautiful Neo2 keyboard layout (https://www.neo-layout.org/) which uses karabiner elements (https://karabiner-elements.pqrs.org/) to enable the higher layers for ()-:, 456, ℕℝ∂, etc... It doesn't really come that unexpected that the VM doesn't really like this :)

My Workaround:

I was able to fix all the issues in the VM by creating a second karabiner profile that remaps things the way the VM wants it.

My Issue:

I will be switching a lot between the VM and my host system, so manually switching between the profiles would be quite tedious. My idea would be to use karabiner CLI to change the profile whenever I switch to&from the VMware Horizon window (https://karabiner-elements.pqrs.org/docs/manual/misc/command-line-interface/).

Question: What would be the best solution for running a CLI command every time a window gets changed? On windows I would use python and ctypes to do some winapi stuff...

Xlaech
  • 456
  • 3
  • 19

0 Answers0