I want a script to run when I press a keyboard shortcut, but only if I’m using a specific keyboard layout (I have 4 installed).
I figured the easiest way to do this was with the keyboard layout environment variable (provided there is one), but I couldn’t find anything of the sort.
Any help is welcome. I’m open to other ideas, I just thought this would be easiest.