shuntagami / dotfiles

MacOS / Ubuntu dotfiles
MIT License
1 stars 0 forks source link

Toggling Night Shift from script #41

Open shuntagami opened 11 months ago

shuntagami commented 11 months ago
default ``` ❯ sudo defaults read com.apple.CoreBrightness.plist Password: { "CBUser-0" = { CBBlueReductionStatus = { AutoBlueReductionEnabled = 1; BlueLightReductionSchedule = { DayStartHour = 7; DayStartMinute = 0; NightStartHour = 22; NightStartMinute = 0; }; BlueReductionAvailable = 1; BlueReductionEnabled = 0; BlueReductionMode = 0; BlueReductionSunScheduleAllowed = 1; Version = 1; }; }; "CBUser-CE084EC9-5CA4-4F79-8108-6B4FE9DD4736" = { CBBlueReductionStatus = { AutoBlueReductionEnabled = 1; BlueLightReductionSchedule = { DayStartHour = 7; DayStartMinute = 0; NightStartHour = 22; NightStartMinute = 0; }; BlueReductionAvailable = 1; BlueReductionEnabled = 0; BlueReductionMode = 0; BlueReductionSunScheduleAllowed = 1; Version = 1; }; }; CoreAnalyticsTimestamps = { "com.apple.corebrightness.harmony.state" = "2023-09-29 15:06:10 +0000"; }; DisplayPreferences = { "37D8832A-2D66-02CA-B9F7-8F30A301B230" = { AutoBrightnessCurve = { Backlight1 = "0.1075048"; Backlight2 = "0.28"; Lux1 = 0; Lux2 = "160.6167"; LuxThreshold = "78.5"; Version = 2; }; BrightnessLevelNits = "133.4942"; }; }; "Keyboard Dim Time" = 0; KeyboardBacklight = { 95158272 = { KeyboardBacklightAdjustedBrightnessCurve = { KeyboardCurveX1 = 0; KeyboardCurveX2 = 70; KeyboardCurveX3 = 160; KeyboardCurveX4 = 300; KeyboardCurveY1 = "3.665"; KeyboardCurveY2 = "10.17037"; KeyboardCurveY3 = "10.17037"; KeyboardCurveY4 = "0.1466"; }; KeyboardBacklightMaxUser = "14.66"; }; KeyboardBacklightABEnabled = 1; KeyboardBacklightIdleDimTime = 0; KeyboardBacklightManualBrightness = 1; KeyboardBacklightMuted = 0; KeyboardBacklightPrefVersion = 1; KeyboardBacklightUserOffset = 0; }; } ```
shuntagami commented 11 months ago
custom ``` ❯ sudo defaults read com.apple.CoreBrightness.plist Password: { "CBUser-0" = { CBBlueReductionStatus = { AutoBlueReductionEnabled = 1; BlueLightReductionSchedule = { DayStartHour = 7; DayStartMinute = 0; NightStartHour = 22; NightStartMinute = 0; }; BlueReductionAvailable = 1; BlueReductionEnabled = 0; BlueReductionMode = 0; BlueReductionSunScheduleAllowed = 1; Version = 1; }; }; "CBUser-CE084EC9-5CA4-4F79-8108-6B4FE9DD4736" = { CBBlueLightReductionCCTTargetRaw = 2700; CBBlueReductionStatus = { AutoBlueReductionEnabled = 1; BlueLightReductionDisableScheduleAlertCounter = 3; BlueLightReductionSchedule = { DayStartHour = 4; DayStartMinute = 0; NightStartHour = 4; NightStartMinute = 1; }; BlueReductionAvailable = 1; BlueReductionEnabled = 1; BlueReductionMode = 2; BlueReductionSunScheduleAllowed = 1; Version = 1; }; }; CoreAnalyticsTimestamps = { "com.apple.corebrightness.harmony.state" = "2023-09-29 15:06:10 +0000"; }; DisplayPreferences = { "37D8832A-2D66-02CA-B9F7-8F30A301B230" = { AutoBrightnessCurve = { Backlight1 = "0.1075048"; Backlight2 = "0.28"; Lux1 = 0; Lux2 = "160.6167"; LuxThreshold = "78.5"; Version = 2; }; BrightnessLevelNits = "133.4942"; }; }; "Keyboard Dim Time" = 0; KeyboardBacklight = { 95158272 = { KeyboardBacklightAdjustedBrightnessCurve = { KeyboardCurveX1 = 0; KeyboardCurveX2 = 70; KeyboardCurveX3 = 160; KeyboardCurveX4 = 300; KeyboardCurveY1 = "3.665"; KeyboardCurveY2 = "10.17037"; KeyboardCurveY3 = "10.17037"; KeyboardCurveY4 = "0.1466"; }; KeyboardBacklightMaxUser = "14.66"; }; KeyboardBacklightABEnabled = 1; KeyboardBacklightIdleDimTime = 0; KeyboardBacklightManualBrightness = 1; KeyboardBacklightMuted = 0; KeyboardBacklightPrefVersion = 1; KeyboardBacklightUserOffset = 0; }; } ```