Giter VIP home page Giter VIP logo

Comments (3)

damieng avatar damieng commented on June 2, 2024

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.

superkeyor avatar superkeyor commented on June 2, 2024

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.

judge2005 avatar judge2005 commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.