mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:14:37 +02:00
Brightness (Linux): show meaningfull name on asahi
This commit is contained in:
@@ -58,9 +58,9 @@ static const char* detectWithBacklight(FFlist* result)
|
||||
{
|
||||
ffStrbufSubstrBeforeLastC(&brightness->name, '/'); // remove "/edid"
|
||||
ffStrbufSubstrAfterLastC(&brightness->name, '/'); // try getting DRM connector name
|
||||
if(ffStrbufStartsWithS(&brightness->name, "0000:"))
|
||||
if(isdigit(brightness->name.chars[0]))
|
||||
{
|
||||
// PCI address, give up
|
||||
// PCI address or some unknown path, give up
|
||||
ffStrbufSetS(&brightness->name, entry->d_name);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user