feat(src/commands): add get_active_display_info and status display output
Add function to retrieve and display active monitor information, and expose it via status command. New Features: - Implement get_active_display_info returning formatted display strings. - Extend status command to list active displays using the new function. Enhancements: - Improve console output for display information. - Update dependency usage for cleaner code. Bug Fixes: - None
This commit is contained in:
2 files changed
+35
No files matched your search
@@ -1,3 +1,4 @@
|
||||
use crate::commands::display;
|
||||
use crate::hardware::gpu;
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
@@ -179,4 +180,14 @@ pub fn execute() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Display Status
|
||||
let displays = display::get_active_display_info();
|
||||
if displays.is_empty() {
|
||||
println!("Display: Unknown / Firmware managed");
|
||||
} else {
|
||||
for d in displays {
|
||||
println!("Display: {}", d);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user