Comments (3)
I'd be open to a pull request but given I haven't even powered on a Mac in months it's definitely not something I would tackle myself these days.
from setledsmac.
I read the issue #7, and found a workaround to that.
There were an answer suggesting to kill Karabiner then restart it (#7 (comment)) . I found that you can disable a device in Karabiner without killing it, under Devices tab. After that you can simply use setledsmac, then you can turn tis settings back immediately.
Also found that, this is easily scriptable, because you can change this setting in ~/.config/karabiner/karabiner.json . You can iterate /profiles/devices and check ./identifiers/product_id/vendor_id to find the device settings. If you found that, you can set ./ignore to true, use setleds, then set back to false. The file is processed by Karabiner automatically, no need to run any command.
I think this could be part of setledsmac, because Karabiner is essential to make numlock function works on external keyboars.
I found that Karabiner allows to switch profile from command line. So you can create a new profile without selecting your keywoard and use '/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli' --select-profile 'Default Profile' to switch back and forth.
from setledsmac.
I knew I'd seen this suggestion somewhere. I have packed all this up in to a zip and included instructions how to use here. It is a fork of this repo, so happy to make a pull request, but there are a lot of additional instructions for getting Karabiner to use the shell script - i.e. the readme now focusses solely on that.
from setledsmac.
Related Issues (15)
- scroll led doesn't work HOT 2
- `setledsmac` fails with code `kIOReturnExclusiveAccess` HOT 1
- IOHIDDeviceSetValue returns kIOReturnNotOpen HOT 2
- scroll led can't be set HOT 2
- Segmentation fault: 11 when setting or reading leds HOT 2
- Can't use with karabiner-Element 11.4.0 HOT 4
- How do I run this program? HOT 1
- Add blinking support HOT 1
- setleds -v results in: Some state could not be determined. Please try running as root/sudo. HOT 1
- Version 0.2 showing non-existent led (scroll lock) HOT 1
- Add quiet mode HOT 3
- Option to set state for same key sequentially HOT 2
- Not working on catalina HOT 2
- Does this work on Mac OS 13? HOT 1
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 setledsmac.