From 2d03067f0ea23683f11acf6efa98f8720d5784d9 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 11 Mar 2026 23:37:03 +0545 Subject: [PATCH] feat(src/commands): add power profile status output The `status` command now displays the current power profile by reading `/sys/firmware/acpi/platform_profile`, giving users insight into power usage. New Features - Output power profile status to the console. Enhancements - Enriches status command with additional hardware information. --- src/commands/status.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/commands/status.rs b/src/commands/status.rs index d04bbb6..3014111 100644 --- a/src/commands/status.rs +++ b/src/commands/status.rs @@ -33,4 +33,11 @@ pub fn execute() { } } } + + // Power Profile Status + if let Ok(profile) = fs::read_to_string("/sys/firmware/acpi/platform_profile") { + println!("Power Profile: {}", profile.trim()); + } else { + println!("Power Profile: Unknown"); + } }