Skip to content
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

OSX System Keys #122

Closed
jeffsmohan opened this issue Jan 31, 2016 · 13 comments
Closed

OSX System Keys #122

jeffsmohan opened this issue Jan 31, 2016 · 13 comments

Comments

@jeffsmohan
Copy link

Is it possible to emulate the system keys you find on Apple keyboards for things like screen brightness up/down? I haven't been able to find any info on how to emulate those special keys. Thanks!

@jackhumbert
Copy link
Member

Some are supported!

KC_SLCK - Brightness up
KC_PAUS - Brightness down

@wez
Copy link
Contributor

wez commented Feb 1, 2016

Any idea if F14/F15 (also mentioned in that thread) will control the screen brightness in Windows 10, or what the keycodes to do that on Windows 10 might be?

@jackhumbert
Copy link
Member

I'm not familiar with Windows machines, but something like that may be possible with Autohotkey!

@wez
Copy link
Contributor

wez commented Feb 1, 2016

Was hoping for something native, but glad you pointed me to Autohotkey, thanks!

@jeffsmohan
Copy link
Author

Thanks so much for the help! Unfortunately, I've tried using those keycodes and they don't seem to be working for me. Have others had success with KC_SLCK and KC_PAUS? (I'm on OSX 10.11.2.) Or is it something off with my code? (I have no experience with C... https://github.com/jeffschenck/qmk_firmware/blob/61a3ac0/keyboard/ergodox_ez/keymaps/jeffschenck/keymap.c#L185)

Any additional direction would be much appreciated! Otherwise, I can go back to mapping those keys to KC_F13 and KC_F14, then using BetterTouchTool to map those to brightness adjustments. It'd be great to have it cleanly contained in the keyboard, though. :)

@wez
Copy link
Contributor

wez commented Feb 2, 2016

F14/F15 worked to control the brightness both on my macbook and on my apple display when connected

@jeffsmohan
Copy link
Author

@wez I definitely see those shortcuts set by default in System Preferences > Keyboard > Shortcuts > Display. However, they don't seem to work as advertised for me. Even when I set them to easier-to-press shortcuts (like Cmd+5) and hit the shortcut directly on my laptop's built-in keyboard, it doesn't trigger screen brightness. Perhaps it's just something off about my system...

@romanzolotarev
Copy link
Contributor

At first KC_PAUS and KC_SLCK didn't work for me neither, but after un-pluging and pluging the USB cable it started working.

I have tried this with ErgoDox EZ on OS X 10.11.3 (15D21).

@ezuk
Copy link
Contributor

ezuk commented Mar 20, 2016

Thank you for following up here, @romanzolotarev! Too few people take the time to note when stuff works - super helpful. :)

@romanzolotarev
Copy link
Contributor

@ezuk Here is my layout #205 :)
Note: I'm using KC_F14 and KC_F15 to control display brightness on OS X, because F14/F15 is concise, but KC_PAUS and KC_SLCK also work.

@ezuk
Copy link
Contributor

ezuk commented Mar 21, 2016

Awesome! Saw the Readme, too :)

@romanzolotarev
Copy link
Contributor

Folks, here is a possible solution #207. Could you please check?

@moubry
Copy link

moubry commented Oct 21, 2018

@jackhumbert’s solution worked for me, however it’s backwards (at least for me on Mojave) — KC_SLCK is bright down and KC_PAUS is brightness up.

Jpe230 pushed a commit to Jpe230/qmk_firmware that referenced this issue Dec 15, 2021
* Move keychron c1 to c1/rgb

* Updated to the new path and board name
matthewdias pushed a commit to matthewdias/qmk_firmware that referenced this issue Feb 24, 2022
YSYanivSharon pushed a commit to YSYanivSharon/qmk_firmware that referenced this issue May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants