![]() if the user's configuration doesn't explicitly start the redshift module, calling this will have no effectĮxtensions/redshift/a line 161.to automatically invert colors if the ambient light sensor reading drops belowĪ certain threshold ( hs.brightness.DDCauto() can optionally do exactly that) v - a boolean indicating whether to invert the colors (if true) or clear any previous requests (if false or nil).id - a string identifying the requester (usually the module name).Sets or clears a request for color inversion the ID string (usually the module name) provided to hs.redshift.requestInvert(), if another module requested color inversionĮxtensions/redshift/a line 144."redshift-night" if hs.redshift.start() was called with invertAtNight set to true,."user" for the user override (see hs.redshift.toggleInvert()).false if the colors are not currently inverted otherwise, a string indicating the reason, one of:.Hs.redshift.isInverted() -> string or falseĬhecks if the colors are currently inverted id - a string identifying the requester or the callback function itself, depending on how you called hs.redshift.invertSubscribe()Įxtensions/redshift/a line 128.Unsubscribes a previously subscribed color inversion change callback You can use this to dynamically adjust the UI colors in your modules or configuration, if appropriate.Įxtensions/redshift/a line 107.fn - a function that will be called whenever color inversion status changes it must accept a single parameter, a string or false as per the return value of hs.redshift.isInverted().id - (optional) a string identifying the requester (usually the module name) if omitted, fn itself will be the identifier this identifier must be passed to hs.redshift.invertUnsubscribe().Subscribes a callback to be notified when the color inversion status changes the default ramp has entries from 1000K to 10000K every 100KĮxtensions/redshift/a line 342.hs.inspect(hs.redshift.COLORRAMP) from the console will show you how the table is built.Functions - API calls offered directly by the extensionĪPI Documentation Variables COLORRAMP SignatureĪ table holding the gamma values for given color temperatures each key must be a color temperature number in K (useful values are between.It seems unlikely that hs.redshift will see significant future development. As of macOS 10.12.4, Apple provides "Night Shift", which implements a simple red-shift effect, as part of the OS.Hs.hotkey.bind(HYPER,'f1','Invert',hs.redshift.toggleInvert) ![]() ![]() allow manual control of inverted colors start redshift: 2800K + inverted from 21 to 7, very long transition duration (19->23 and 5->9) Usage: - make a windowfilterDisable for redshift: VLC, Photos and screensaver/login window will disable color adjustment and inversion Inverts and/or lowers the color temperature of the screen(s) on a schedule, for a more pleasant experience at night Hammerspoon docs: hs.redshift docs » hs.redshift
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |