added gpu/sys/bt

This commit is contained in:
2026-03-13 16:23:23 +01:00
parent 8a3d9610fb
commit 65b67e89fd
9 changed files with 389 additions and 3 deletions

View File

@@ -53,6 +53,16 @@ enum Commands {
#[arg(short, long)]
cycle: bool,
},
/// GPU usage, VRAM, and temp module
Gpu,
/// System load average and uptime
Sys,
/// Bluetooth audio device status
#[command(alias = "bluetooth")]
Bt {
#[arg(default_value = "show")]
action: String,
},
}
fn main() {
@@ -95,6 +105,15 @@ fn main() {
let action = if *cycle { "cycle" } else { "show" };
handle_ipc_response(ipc::request_data("mic", &[action.to_string()]));
}
Commands::Gpu => {
handle_ipc_response(ipc::request_data("gpu", &[]));
}
Commands::Sys => {
handle_ipc_response(ipc::request_data("sys", &[]));
}
Commands::Bt { action } => {
handle_ipc_response(ipc::request_data("bt", &[action.clone()]));
}
}
}