-
-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remap Slack Command Enter #137
Comments
You can't do app specific mappings yet. |
You can do this with Hammerspoon. An example: https://github.com/STRML/init/blob/master/hammerspoon/init.lua#L196 |
How do I sent the RETURN / ENTER key using hs.eventtap... How do I change left-cmd + enter to enter? |
I tried using Hammerspoon, but it's fairly painful. I guess I can wait a bit. Is app specific mappings reasonably high up on the development priority list? |
Any improvement? When this feature will be back? |
Apologies for the bump, but is there any sort of ETA on this particular feature? |
I ended up building this myself tonight — it's a separate daemon, with right now no documentation, but if you're sufficiently technical, here you go: https://github.com/nriley/Karabiner-Elements-App-Profiles If a profile is named after an app's bundle identifier, it'll automatically switch to the profile when you bring that app to the front (and the first/default profile otherwise). Obviously this would be better built into Karabiner-Elements! |
Yes, please build something like this into Karabiner-Elements! |
There are instructions in the README; if you have questions either post here or let me know. I just did a quick binary release so you don't need Xcode. |
@nriley Excellent solution. Been waiting for a simple way to switch my ctrl/cmd key when in the remote desktop beta client and Parallels ever since upgrading to Sierra. Your solution works perfectly. |
@nriley Thanks for the Binary release, will try it out, @planetscripton can you share your config please |
@nriley this sounds great. Thanks for writing it up! Is there any chance we could get an example config file so that I know how to get this going? |
Here is what I did to get it working (as far as I can recall) Copy the binary file "Karabiner-Elements-App-Profiles" to /usr/local/bin, you may need to create this folder (it seems like installing Wireshark creates this folder and installs wireshark binary links) or authenticate to copy into it. Install the included launchd plist in ~/Library/LaunchAgents and load it Rename one or more Karabiner Elements profiles with apps' bundle identifiers And for example in Karabiner-Elements, under the com.microsoft.rdc.osx.beta profile I have keycaps to make: Hope that helps |
@mike-savory this works great! Thanks a lot for the explanation! This was especially helpful - launchctl bootstrap gui/501 ~/Library/LaunchAgents/net.sabi.Karabiner-Elements-App-Profiles.plist |
@mike-savory thanks for helping out! I use my
If you have Spotlight enabled you can also use
|
@nriley launch works well. Thanks, and thanks for writing this up to allow per app settings! |
I threw together a quick homebrew formula to simplify installing. Just install the karabiner-elements cask, then the tool that @nriley shared and add it to start up: brew cask install karabiner-elements
brew install https://raw.githubusercontent.com/toonetown/homebrew-extras/master/Formula/karabiner-elements-app-profiles.rb
brew services start karabiner-elements-app-profiles |
This works perfectly, thank you very much for putting the work to do this. I love open source community. |
Working perfectly, thank you! |
Anything new on this? |
Now it is a default feature |
In 0.91.13? How can I use it? |
I am also curious as to how to use this feature on Karibiner elements. I'm not able to find it as a default feature. Could you please explain @LucaMarconato? |
Look at this link: #808 |
Awesome. Thanks so much. I have it up and running. Now I just need to figure out how to tweak it so that it only runs when I'm typing from Teamviewer :) I'm a novice coder so I'm happy to have gotten as far as I have. |
@LucaMarconato: Any changes I make to the script result in it not showing up in the Complex Modifications window in Karibiner Elements. Could you please tell me how I would tweak it so that the switch between keys only gets activated when Teamviewer is the front-most window? |
@garbage914, you can find my configuration here. Try replacing my bundle identifier with the one of TeamViewer. If it is switching the keys described in the file then you can try to put your keys and it should work. |
@LucaMarconato Thank you so much for sending that. When I replace TeamViewer for Terminal, I get a "parse" error saying there's an unexpected '"' (unexpected quotation mark) and it doesn't make the changes in Terminal. If I run it without replacing teamviewer, your script runs perfectly and all works in Terminal. |
@garbage914 I have found the documentation around configuration of complex modifications kind of lacking...but have somewhat been able to piece together a bunch of thoughts (and an example configuration that I use) here. Maybe it will help a bit? |
I am new to the party. @LucaMarconato Why do you prepend a caret ('^') to the bundle_identifiers in your configuration? |
Does anyone know if there is a |
@nawkwan try with |
@toonetown Thank you so much for that. I actually got it working just before you sent that with this: https://forum.keyboardmaestro.com/t/switching-command-and-control-keys/7721/27?u=cinematree Thank you to all who helped. |
Hi guys, is there a way to work around with alfred? I have set to use hjkl in kindle with the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
old thread here, but i use this script i wrote to swap profiles based on the current foreground app. Hope this helps someone |
Sorry you had to spend the time writing that instead of using pretty much the same thing I wrote, which you can see linked above (#137 (comment)), just using Swift rather than PyObjC. These days I don't use it as I make individual modifications conditional with frontmost_application_if (example). |
Should use the such as the Remote Desktop swap keys, can import the Complexity modification : https://ke-complex-modifications.pqrs.org/?q=remote%20desktop It is based on the https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/conditions/frontmost-application/ |
Hi,
I'd like to remap Command+Enter when using Slack.
Can this be done with Karabiner-Elements?
Here is a config from the old Karabiner...
The text was updated successfully, but these errors were encountered: