Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Post History

60%
+1 −0
Q&A Programmatically changing the keyboard illumination in small steps

Instead of trying to build my own touch bar, I'm now using Karabiner Elements to remap the existing keys on the touchbar to the desired behaviour. The following configuration will remap the screen...

posted 1y ago by samcarter‭

Answer
#1: Initial revision by user avatar samcarter‭ · 2023-02-02T17:08:36Z (about 1 year ago)
Instead of trying to build my own touch bar, I'm now using [Karabiner Elements](https://karabiner-elements.pqrs.org/) to remap the existing keys on the touchbar to the desired behaviour.

The following configuration will remap the screen brightness, keyboard illumination and volume keys to change their settings in small increments:

```
{
    "description": "Touchbar small increments",
    "manipulators": [
        {
            "from": {
                "apple_vendor_top_case_key_code": "brightness_down"
            },
            "to": [
                {
                    "key_code": "display_brightness_decrement",
                    "modifiers": [
                        "left_shift",
                        "left_option"
                    ]
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "apple_vendor_top_case_key_code": "brightness_up"
            },
            "to": [
                {
                    "key_code": "display_brightness_increment",
                    "modifiers": [
                        "left_shift",
                        "left_option"
                    ]
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "apple_vendor_top_case_key_code": "illumination_down"
            },
            "to": [
                {
                    "key_code": "illumination_decrement",
                    "modifiers": [
                        "left_shift",
                        "left_option"
                    ]
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "apple_vendor_top_case_key_code": "illumination_up"
            },
            "to": [
                {
                    "key_code": "illumination_increment",
                    "modifiers": [
                        "left_shift",
                        "left_option"
                    ]
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "consumer_key_code": "volume_decrement"
            },
            "to": [
                {
                    "key_code": "volume_decrement",
                    "modifiers": [
                        "left_shift",
                        "left_option"
                    ]
                }
            ],
            "type": "basic"
        },
        {
            "from": {
                "consumer_key_code": "volume_increment"
            },
            "to": [
                {
                    "key_code": "volume_increment",
                    "modifiers": [
                        "left_shift",
                        "left_option"
                    ]
                }
            ],
            "type": "basic"
        }
    ]
}
```