chore: add other display types

This commit is contained in:
Ilya Zlobintsev
2026-06-04 12:57:06 +03:00
parent 021b290511
commit 99d4ddb784
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ fn get_display_entry(path: &Path) -> anyhow::Result<(String, DisplayInfo)> {
{
"DP" | "eDP" => DisplayConnector::DisplayPort { lanes: 0, rate: 0 },
"HDMI" => DisplayConnector::Hdmi,
"DVI" => DisplayConnector::Dvi,
"VGA" => DisplayConnector::Vga,
_ => DisplayConnector::Other,
};
+2
View File
@@ -885,5 +885,7 @@ pub struct DisplayInfo {
pub enum DisplayConnector {
DisplayPort { lanes: u16, rate: u32 },
Hdmi,
Dvi,
Vga,
Other,
}