@@ -82,6 +82,8 @@ void ffPrintBrightness(FFBrightnessOptions* options)
8282 ffPercentAppendNum (& str , percent , options -> percent , str .length > 0 , & options -> moduleArgs );
8383 }
8484
85+ ffStrbufAppendS (& str , item -> builtin ? " [Built-in]" : " [External]" );
86+
8587 ffStrbufPutTo (& str , stdout );
8688 }
8789 else
@@ -100,6 +102,7 @@ void ffPrintBrightness(FFBrightnessOptions* options)
100102 FF_FORMAT_ARG (item -> min , "min" ),
101103 FF_FORMAT_ARG (item -> current , "current" ),
102104 FF_FORMAT_ARG (valueBar , "percentage-bar" ),
105+ FF_FORMAT_ARG (item -> builtin , "is-builtin" ),
103106 }));
104107 }
105108
@@ -204,6 +207,7 @@ void ffGenerateBrightnessJsonResult(FF_MAYBE_UNUSED FFBrightnessOptions* options
204207 yyjson_mut_obj_add_real (doc , obj , "max" , item -> max );
205208 yyjson_mut_obj_add_real (doc , obj , "min" , item -> min );
206209 yyjson_mut_obj_add_real (doc , obj , "current" , item -> current );
210+ yyjson_mut_obj_add_bool (doc , obj , "builtin" , item -> builtin );
207211 }
208212
209213 FF_LIST_FOR_EACH (FFBrightnessResult , item , result )
@@ -227,6 +231,7 @@ static FFModuleBaseInfo ffModuleInfo = {
227231 {"Minimum brightness value" , "min" },
228232 {"Current brightness value" , "current" },
229233 {"Screen brightness (percentage bar)" , "percentage-bar" },
234+ {"Is built-in screen" , "is-builtin" },
230235 }))
231236};
232237
0 commit comments