Implement Set-MonitorBrightness #22
Labels
enhancement
New feature or request
linux
Issues affecting the Linux operating system
macos
Issues affecting the MacOS operating system
windows
Issues affecting the Windows operating system
TODO
About
MacOS
There are third-party libraries that can do this, such as
brightness
but I am trying to avoid pulling in dependencies as much as possible.Running Apple Script works, but it will require access to accessibility features in the settings menu of the terminal application on the first run.
Interestingly enough, there are two set of key codes for sending key strokes to adjust brightness [1], i.e.
Preferably, I would also need a way to get the current brightness value. In theory I could reset the brightness to 0% and then work my way up to the requested values, by mapping all integers from
[0,100]
to[0,16]
, but that's far from ideal.References
The text was updated successfully, but these errors were encountered: