mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Initialize brightness on wayland too
This commit is contained in:
@@ -66,6 +66,7 @@ static void waylandOutputModeListener(void* data, struct wl_output* output, uint
|
||||
result->width = (uint32_t) width;
|
||||
result->height = (uint32_t) height;
|
||||
result->refreshRate = ffdsParseRefreshRate(refreshRate / 1000);
|
||||
result->brightness = -1;
|
||||
}
|
||||
|
||||
static void waylandGlobalAddListener(void* data, struct wl_registry* registry, uint32_t name, const char* interface, uint32_t version)
|
||||
|
||||
+3
-2
@@ -176,10 +176,11 @@ static inline void printCommandHelp(const char* command)
|
||||
}
|
||||
else if(strcasecmp(command, "resolution-format") == 0)
|
||||
{
|
||||
constructAndPrintCommandHelpFormat("resolution", "{}x{} @ {}Hz", 3,
|
||||
constructAndPrintCommandHelpFormat("resolution", "{}x{} @ {}Hz", 4,
|
||||
"Screen width",
|
||||
"Screen height",
|
||||
"Screen refresh rate"
|
||||
"Screen refresh rate",
|
||||
"Screen brightness"
|
||||
);
|
||||
}
|
||||
else if(strcasecmp(command, "de-format") == 0)
|
||||
|
||||
Reference in New Issue
Block a user