added gpu/sys/bt
This commit is contained in:
19
src/main.rs
19
src/main.rs
@@ -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()]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user