mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
PhysicalDisplay: rename module to Monitor
This commit is contained in:
+15
-15
@@ -200,6 +200,18 @@ static inline void printCommandHelp(const char* command)
|
||||
"Screen name"
|
||||
);
|
||||
}
|
||||
else if(ffStrEqualsIgnCase(command, "monitor-format"))
|
||||
{
|
||||
constructAndPrintCommandHelpFormat("monitor", "{}", 6,
|
||||
"Display name",
|
||||
"Display native resolution width in pixels",
|
||||
"Display native resolution height in pixels",
|
||||
"Display physical width in millimeters",
|
||||
"Display physical height in millimeters",
|
||||
"Display physical diagonal length in inches",
|
||||
"Display physical pixels per inch (PPI)"
|
||||
);
|
||||
}
|
||||
else if(ffStrEqualsIgnCase(command, "de-format"))
|
||||
{
|
||||
constructAndPrintCommandHelpFormat("de", "{2} {3}", 3,
|
||||
@@ -400,18 +412,6 @@ static inline void printCommandHelp(const char* command)
|
||||
"Connection Security algorithm"
|
||||
);
|
||||
}
|
||||
else if(ffStrEqualsIgnCase(command, "physicaldisplay-format"))
|
||||
{
|
||||
constructAndPrintCommandHelpFormat("physicaldisplay", "{}", 6,
|
||||
"Display name",
|
||||
"Display native resolution width in pixels",
|
||||
"Display native resolution height in pixels",
|
||||
"Display physical width in millimeters",
|
||||
"Display physical height in millimeters",
|
||||
"Display physical diagonal length in inches",
|
||||
"Display physical pixels per inch (PPI)"
|
||||
);
|
||||
}
|
||||
else if(ffStrEqualsIgnCase(command, "player-format"))
|
||||
{
|
||||
constructAndPrintCommandHelpFormat("player", "{}", 4,
|
||||
@@ -1010,6 +1010,7 @@ static void parseOption(FFdata* data, const char* key, const char* value)
|
||||
else if(ffParseShellCommandOptions(&instance.config.shell, key, value)) {}
|
||||
else if(ffParseDisplayCommandOptions(&instance.config.display, key, value)) {}
|
||||
else if(ffParseBrightnessCommandOptions(&instance.config.brightness, key, value)) {}
|
||||
else if(ffParseMonitorCommandOptions(&instance.config.nativeResolution, key, value)) {}
|
||||
else if(ffParseDECommandOptions(&instance.config.de, key, value)) {}
|
||||
else if(ffParseWifiCommandOptions(&instance.config.wifi, key, value)) {}
|
||||
else if(ffParseWMCommandOptions(&instance.config.wm, key, value)) {}
|
||||
@@ -1037,7 +1038,6 @@ static void parseOption(FFdata* data, const char* key, const char* value)
|
||||
else if(ffParseWeatherCommandOptions(&instance.config.weather, key, value)) {}
|
||||
else if(ffParsePlayerCommandOptions(&instance.config.player, key, value)) {}
|
||||
else if(ffParseMediaCommandOptions(&instance.config.media, key, value)) {}
|
||||
else if(ffParsePhysicalDisplayCommandOptions(&instance.config.nativeResolution, key, value)) {}
|
||||
else if(ffParseDateTimeCommandOptions(&instance.config.dateTime, key, value)) {}
|
||||
else if(ffParseVulkanCommandOptions(&instance.config.vulkan, key, value)) {}
|
||||
else if(ffParseOpenGLCommandOptions(&instance.config.openGL, key, value)) {}
|
||||
@@ -1271,8 +1271,8 @@ static void parseStructureCommand(const char* line, FFlist* customValues)
|
||||
ffPrintPlayer(&instance.config.player);
|
||||
else if(ffStrEqualsIgnCase(line, FF_MEDIA_MODULE_NAME))
|
||||
ffPrintMedia(&instance.config.media);
|
||||
else if(ffStrEqualsIgnCase(line, FF_PHYSICALDISPLAY_MODULE_NAME))
|
||||
ffPrintPhysicalDisplay(&instance.config.nativeResolution);
|
||||
else if(ffStrEqualsIgnCase(line, FF_MONITOR_MODULE_NAME))
|
||||
ffPrintMonitor(&instance.config.nativeResolution);
|
||||
else if(ffStrEqualsIgnCase(line, FF_DATETIME_MODULE_NAME))
|
||||
ffPrintDateTime(&instance.config.dateTime);
|
||||
else if(ffStrEqualsIgnCase(line, FF_COLORS_MODULE_NAME))
|
||||
|
||||
Reference in New Issue
Block a user