Comments (10)
@tiagocardosoweb have a look at #67.
If you're using Alfred, you can use Karabiner Elements Profile Switcher.
from karabiner-elements.
It's nice to have workarounds but I believe it would add a lot of value to Karabiner Elements to integrate this issue in a standalone way. Not everybody uses Alfred or is keen on setting up some crazy .plist
agent config.
To give a rationale for that feature, here is a rather generic use-case:
- User has a laptop and an external keyboard. The keyboard is used at work, the buillt-in keyboard is used at home.
- On all his keyboards, user wants to use a feature that only Karabiner-Elements provides (say: Caps Lock as "escape" when short-pressed, and as Control when long-pressed - this one will probably get popular with the new Touchbar MBPs).
- On his external keyboard only, user needs the option and command keys to be swapped.
This use-case is not currently covered by Karabiner Elements.
Enabling/disabling keyboards per-profile seems like an elegant and intuitive way to solve the problem of assigning different shortcuts to different keyboards.
Related issues: #31 #138 #162 #303 #488
Workarounds: #67
from karabiner-elements.
I think it's no longer needed to use any workarounds, with the latest version of Karabiner Elements (I have 0.90.86) you can switch profiles using tray icon actions:
Yay! πΎ β¨
from karabiner-elements.
Profile switching does not work in v0.90.86. I mean when different profile is selected, it is not activated. I have to restart (quit and start over again) Karabiner Elements in order to activate the profile. I use external keyboard with different profile, and it is very inconvenient to restart KE every time I switch the profile. My karabiner.json
from karabiner-elements.
I have opened new issue #634
from karabiner-elements.
Hi @awinecki , i know there is a tray icon and i can switch profiles using mouse.
But i still want a way that can change my profile via keyboard. Do you have any idea?
Thanks in advance.
from karabiner-elements.
I have got a nice workaround i think:
(Assume i have two profile: Debug & Default )
Write a script (eg. named Debug-profile.sh):
gsed -i '/"name": "Debug"/!b;n;c"selected": true,' ~/.config/karabiner/karabiner.json; gsed -i '/"name": "Default"/!b;n;c"selected": false,' ~/.config/karabiner/karabiner.json
and a script (eg. named Default-profile.sh):
gsed -i '/"name": "Debug"/!b;n;c"selected": false,' ~/.config/karabiner/karabiner.json; gsed -i '/"name": "Default"/!b;n;c"selected": true,' ~/.config/karabiner/karabiner.json
(if you are using linux, just use sed, if your are using mac, just install gsed(gnu-sed) via brew install gsed
and if you want switch to one profile ,just run the debug-profile.sh or default-profile.sh, you can surely add them in your .bashrc and make alias.
from karabiner-elements.
@zjunothing if you're an Alfred app user, you can try using my workflow: https://github.com/awinecki/karabiner-elements-profile-switcher. I haven't updated since it's possible via tray menu, but it seems to still work βΒ just tried it :). Other than that, I think your workaround with gsed
looks perfect, with some nice aliases that could be handy.
from karabiner-elements.
@awinecki don't you find manual switch-over awkward? i made some enhancement to original KBE to support per-device key mapping, please try this fork: https://github.com/starsy/Karabiner-Elements, usable built package can be found in the "release" section.
@sitaktif believe this can solve your problem in a simpler way.
from karabiner-elements.
This looks amazing, @starsy. Thanks for doing this, I will definitely try it out. Would love to see this merged into primary KBE repo.
from karabiner-elements.
Related Issues (20)
- "Controller is ignored temporarily until {"apple_vendor_keyboard_key_code":"language"} is pressed again" HOT 2
- Event not being fired for `open_bracket`
- I want to press alt + mouse1 for karabiner/yabai combo. HOT 1
- karabiner virtual hid device is not working and karabiner is effectively doing nothing. Mac os sonoma HOT 1
- Enabling "Modify events" on internal keyboard causes Karabiner to eat all events sent.
- Complex modifications not working with rules array
- Double tap pointing_button1 to pointing_button2 didn't work
- How to automatically configure ANSI wireless keyboard and ISO laptop keyboard
- Gamepad button1 and button2 not work as mouse
- Feature Request: Copying Profile/Switching Country Code According to Connected Device
- Map a modifier to a combination of modifiers
- Modifier keys not working with visionOS virtual desktop
- Whether I click button1 or button2, it will jump back to the initial position of the cursor
- Compatibility with Corsair K65 Plus Wireless
- Quickly switching between two profiles
- Karabiner Function keys mapping does work - [Sonoma - Karabiner 14.13.0]
- Complex modification not working on Sonoma HOT 2
- Logi MX Anywhere 3S buttons not being recognized
- Can't modify "consumer_key_code" using Complex modification.
- build failed for macos sonoma 14.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karabiner-elements.