[GH-ISSUE #118] Support for custom key shortcuts #87

Closed
opened 2026-05-05 05:00:26 -06:00 by gitea-mirror · 20 comments
Owner

Originally created by @Anywhere-Music-Player on GitHub (Aug 28, 2019).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/118

Originally assigned to: @waydabber on GitHub.

I have a macmini and a simple keyboard. How to control brightness via keys?
Just want to assign custom Key's for some action. For example, F1-F2 for brightness.

Perhaps, basically something like:

Screen Shot

edit: in my app it was dumb simple)
https://github.com/KAMIKAZEUA/NativeDisplayBrightness

Screen Shot 1
Originally created by @Anywhere-Music-Player on GitHub (Aug 28, 2019). Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/118 Originally assigned to: @waydabber on GitHub. I have a macmini and a simple keyboard. How to control brightness via keys? Just want to assign custom Key's for some action. For example, F1-F2 for brightness. Perhaps, basically something like: <img width="265" alt="Screen Shot" src="https://user-images.githubusercontent.com/3391456/63844123-487aed00-c990-11e9-9807-b52d42414c5a.png"> edit: in my app it was dumb simple) https://github.com/KAMIKAZEUA/NativeDisplayBrightness <img width="307" alt="Screen Shot 1" src="https://user-images.githubusercontent.com/3391456/63844627-3188ca80-c991-11e9-8bf8-764956764e3b.png">
gitea-mirror 2026-05-05 05:00:26 -06:00
Author
Owner

@JoniVR commented on GitHub (Aug 28, 2019):

Always welcome to make a PR if you want to! :)

<!-- gh-comment-id:525673066 --> @JoniVR commented on GitHub (Aug 28, 2019): Always welcome to make a PR if you want to! :)
Author
Owner

@Anywhere-Music-Player commented on GitHub (Aug 28, 2019):

I don't know swift at all and I don't like it :), but honestly, the main problem - I don’t have time to support my program or any other. Just found this app and it's looks almost perfect, except keys and also smooth brightness change :) like just by +-1%

<!-- gh-comment-id:525674478 --> @Anywhere-Music-Player commented on GitHub (Aug 28, 2019): I don't know swift at all and I don't like it :), but honestly, the main problem - I don’t have time to support my program or any other. Just found this app and it's looks almost perfect, except keys and also smooth brightness change :) like just by +-1%
Author
Owner

@JoniVR commented on GitHub (Aug 28, 2019):

Smooth brightness/volume should work like it does natively on a mac using shift + alt modifiers :)

<!-- gh-comment-id:525675527 --> @JoniVR commented on GitHub (Aug 28, 2019): Smooth brightness/volume should work like it does natively on a mac using <kbd>shift</kbd> + <kbd>alt</kbd> modifiers :)
Author
Owner

@Anywhere-Music-Player commented on GitHub (Aug 28, 2019):

Okay, I see. But just for constant and precise control I've set smooth option enabled by default. Never used Apple keyboard's..

<!-- gh-comment-id:525676677 --> @Anywhere-Music-Player commented on GitHub (Aug 28, 2019): Okay, I see. But just for constant and precise control I've set smooth option enabled by default. Never used Apple keyboard's..
Author
Owner

@Anywhere-Music-Player commented on GitHub (Nov 29, 2019):

@JoniVR Any news :) ?

<!-- gh-comment-id:559822844 --> @Anywhere-Music-Player commented on GitHub (Nov 29, 2019): @JoniVR Any news :) ?
Author
Owner

@Bogey commented on GitHub (Jan 15, 2020):

I can tell that KAMIKAZEUA's NativeDisplayBrightness works on my rig.
Though I have to disable Display Keyboard shortcuts in System Preferences and set them in NativeDisplayBrightness.

Setting brightness with MonitorControl only works with the slider.
With the keys I can only control the sound, though I would like to remap these keys because the keys overtake the default MacOS sound output. My speakers are connected to the computer and not the monitor. The monitor has headphones that I use at night.

Perhaps the keys are working, but my keyboard cannot pass them on ... if MonitorControl is listening for F14/F15 -- because I don't have those keys.

Keyboard I'm using is Logitech K780 and monitor is LG 25UM58-G

<!-- gh-comment-id:574615176 --> @Bogey commented on GitHub (Jan 15, 2020): I can tell that KAMIKAZEUA's NativeDisplayBrightness works on my rig. Though I have to disable Display Keyboard shortcuts in System Preferences and set them in NativeDisplayBrightness. Setting brightness with MonitorControl _only_ works with the slider. With the keys I can only control the sound, though I would like to remap these keys because the keys overtake the default MacOS sound output. My speakers are connected to the computer and not the monitor. The monitor has headphones that I use at night. Perhaps the keys are working, but my keyboard cannot pass them on ... if MonitorControl is listening for F14/F15 -- because I don't have those keys. Keyboard I'm using is Logitech K780 and monitor is LG 25UM58-G
Author
Owner

@Bogey commented on GitHub (Jan 16, 2020):

This is the one I'm currently using:
https://github.com/fnesveda/ExternalDisplayBrightness

<!-- gh-comment-id:575340145 --> @Bogey commented on GitHub (Jan 16, 2020): This is the one I'm currently using: https://github.com/fnesveda/ExternalDisplayBrightness
Author
Owner

@JoniVR commented on GitHub (Jan 22, 2020):

Just an fyi, I am working on this but it requires quite a big rewrite and I don't have that much free time right now.. so it might take me some time.

<!-- gh-comment-id:577431586 --> @JoniVR commented on GitHub (Jan 22, 2020): Just an fyi, I am working on this but it requires quite a big rewrite and I don't have that much free time right now.. so it might take me some time.
Author
Owner

@Anywhere-Music-Player commented on GitHub (Apr 4, 2020):

@JoniVR Hey, is this implemented?

<!-- gh-comment-id:609008092 --> @Anywhere-Music-Player commented on GitHub (Apr 4, 2020): @JoniVR Hey, is this implemented?
Author
Owner

@JoniVR commented on GitHub (Apr 4, 2020):

Not yet, I decided that I would be too many changes at once, I do plan on implementing it in the future though. Sorry if you were waiting for it.

<!-- gh-comment-id:609024826 --> @JoniVR commented on GitHub (Apr 4, 2020): Not yet, I decided that I would be too many changes at once, I do plan on implementing it in the future though. Sorry if you were waiting for it.
Author
Owner

@CharlesCCC commented on GitHub (Jul 18, 2020):

Looking forward to this feature, because I noticed I can only adjust brightness with the Apple Magic Keyboard, non other keyboard(PC keyboard) can be used to adjust the brightness. which is the only thing that I miss about this App, everything else was perfect. (it all worked quite well with my LG 34 UltraWide along with two 4k AOC monitors). Love it, thank you for the great work.

<!-- gh-comment-id:660411955 --> @CharlesCCC commented on GitHub (Jul 18, 2020): Looking forward to this feature, because I noticed I can only adjust brightness with the Apple Magic Keyboard, non other keyboard(PC keyboard) can be used to adjust the brightness. which is the only thing that I miss about this App, everything else was perfect. (it all worked quite well with my LG 34 UltraWide along with two 4k AOC monitors). Love it, thank you for the great work.
Author
Owner

@sovon commented on GitHub (Aug 2, 2020):

Hi, I'm a long time user of this utility. My 3rd wired Apple Magic Keyboard died and I have bought this Logi K380 keyboard recently.

If I map F6 and F7 from System Preferences>Keyboards>Shortcuts>Display I can control the brightness of my laptop's built in display(with Fn+F6) but it doesn't affect the external monitor. I could easily use Logitech Options but I don't want to use a separate tool just for this one single feature.

Can you please add a feature so that MonitorControl listens to the Fn+KEY commands or maybe add a custom key binding feature, whichever is simpler?

Screenshot 2020-08-02 at 8 29 36 PM Screenshot 2020-08-02 at 8 23 53 PM
<!-- gh-comment-id:667685325 --> @sovon commented on GitHub (Aug 2, 2020): Hi, I'm a long time user of this utility. My 3rd wired Apple Magic Keyboard died and I have bought this **Logi K380** keyboard recently. If I map **F6** and **F7** from System Preferences>Keyboards>Shortcuts>Display I can control the brightness of my laptop's built in display(with Fn+F6) but it doesn't affect the external monitor. I could easily use Logitech Options but I don't want to use a separate tool just for this one single feature. Can you please add a feature so that MonitorControl listens to the **Fn+KEY** commands or maybe add a custom key binding feature, whichever is simpler? <img width="669" alt="Screenshot 2020-08-02 at 8 29 36 PM" src="https://user-images.githubusercontent.com/18725800/89125890-2de5b800-d4ff-11ea-98c4-598c665b7cff.png"> <img width="1036" alt="Screenshot 2020-08-02 at 8 23 53 PM" src="https://user-images.githubusercontent.com/18725800/89125743-3b4e7280-d4fe-11ea-8a5d-447c5575157a.png">
Author
Owner

@CharlesCCC commented on GitHub (Aug 11, 2020):

Note: Today I just noticed my keyboard (microsoft sculpt ergonomic keyboard) works perfect for the default brightness control;
the ScrLk is F14, Pause is F15, which corresponding to brightness change for Mac. (It works perfect in my MBP and my Hackintosh) and it works regardless if the keyboard is in the Function model or not.

<!-- gh-comment-id:672373846 --> @CharlesCCC commented on GitHub (Aug 11, 2020): Note: Today I just noticed my keyboard (microsoft sculpt ergonomic keyboard) works perfect for the default brightness control; the **ScrLk** is F14, **Pause** is F15, which corresponding to brightness change for Mac. (It works perfect in my MBP and my Hackintosh) and it works regardless if the keyboard is in the Function model or not.
Author
Owner

@ryangrahamnc commented on GitHub (Aug 22, 2020):

I was able to get this working by installing Karabiner-Elements.
brew cask install karabiner-elements
Its default settings set f1/f2 for brightness and f10/f11/f12 for volume, which you can alter in the "function keys" tab.
(It sets up a new keyboard device, so you might need to update its keyboard to use the right meta keys in system prefs->keyboard->modifier keys)

<!-- gh-comment-id:678657561 --> @ryangrahamnc commented on GitHub (Aug 22, 2020): I was able to get this working by installing Karabiner-Elements. `brew cask install karabiner-elements` Its default settings set f1/f2 for brightness and f10/f11/f12 for volume, which you can alter in the "function keys" tab. (It sets up a new keyboard device, so you might need to update its keyboard to use the right meta keys in `system prefs->keyboard->modifier keys`)
Author
Owner

@adrien3d commented on GitHub (Sep 17, 2020):

@JoniVR any updates on this feature ? Thank you very much for your work so far ;)

<!-- gh-comment-id:694250414 --> @adrien3d commented on GitHub (Sep 17, 2020): @JoniVR any updates on this feature ? Thank you very much for your work so far ;)
Author
Owner

@JoniVR commented on GitHub (Sep 19, 2020):

I unfortunately don't have a lot of time lately, I'm trying to push through as many stability improvements as I can when I get the time but unfortunately the way MonitorControl is currently written, supporting custom shortcuts isn't really that easy to implement, it's a big feature that needs proper time and care. If anyone else feels up for the task I'd be more than happy to accept PRs for it though.

<!-- gh-comment-id:695204379 --> @JoniVR commented on GitHub (Sep 19, 2020): I unfortunately don't have a lot of time lately, I'm trying to push through as many stability improvements as I can when I get the time but unfortunately the way MonitorControl is currently written, supporting custom shortcuts isn't really that easy to implement, it's a big feature that needs proper time and care. If anyone else feels up for the task I'd be more than happy to accept PRs for it though.
Author
Owner

@waydabber commented on GitHub (Aug 20, 2021):

There are some custom shortcut requests and these are legit I think, MC should be adding this as an option. As I checked out MediaTapKeys' code it could be added easily. Also there are other solutions as well out there which could be integrated if needed.

<!-- gh-comment-id:902845830 --> @waydabber commented on GitHub (Aug 20, 2021): There are some custom shortcut requests and these are legit I think, MC should be adding this as an option. As I checked out MediaTapKeys' code it could be added easily. Also there are other solutions as well out there which could be integrated if needed.
Author
Owner

@waydabber commented on GitHub (Sep 28, 2021):

Something like this will suffice I hope:

Screen Shot 2021-09-28 at 20 52 36

Thing is getting a bit more complicated than I thought as I'll have to simulate keyboard repeat which is not happening with shortcuts.

<!-- gh-comment-id:929519893 --> @waydabber commented on GitHub (Sep 28, 2021): Something like this will suffice I hope: <img width="803" alt="Screen Shot 2021-09-28 at 20 52 36" src="https://user-images.githubusercontent.com/37590873/135148223-c5ed944a-25ff-46fb-ade7-31ade57c02c9.png"> Thing is getting a bit more complicated than I thought as I'll have to simulate keyboard repeat which is not happening with shortcuts.
Author
Owner

@aik099 commented on GitHub (Sep 28, 2021):

Something like this will suffice I hope:

Screen Shot 2021-09-28 at 20 52 36

Thing is getting a bit more complicated than I thought as I'll have to simulate keyboard repeat which is not happening with shortcuts.

Sure, @waydabber .

<!-- gh-comment-id:929556569 --> @aik099 commented on GitHub (Sep 28, 2021): > Something like this will suffice I hope: > > <img alt="Screen Shot 2021-09-28 at 20 52 36" width="803" src="https://user-images.githubusercontent.com/37590873/135148223-c5ed944a-25ff-46fb-ade7-31ade57c02c9.png"> > > Thing is getting a bit more complicated than I thought as I'll have to simulate keyboard repeat which is not happening with shortcuts. Sure, @waydabber .
Author
Owner

@waydabber commented on GitHub (Sep 28, 2021):

This is now working nicely as far as I was able to test. Also added keyboard repeat support.

<!-- gh-comment-id:929630209 --> @waydabber commented on GitHub (Sep 28, 2021): This is now working nicely as far as I was able to test. Also added keyboard repeat support.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/MonitorControl#87
No description provided.