added power, pixelbuds and gamemode support

This commit is contained in:
2026-03-13 16:53:31 +01:00
parent 65b67e89fd
commit e19fb69c72
6 changed files with 292 additions and 0 deletions
+18
View File
@@ -63,6 +63,15 @@ enum Commands {
#[arg(default_value = "show")]
action: String,
},
/// Pixel Buds Pro ANC and Battery
Buds {
#[arg(default_value = "show")]
action: String,
},
/// System power and battery status
Power,
/// Hyprland gamemode status
Game,
}
fn main() {
@@ -114,6 +123,15 @@ fn main() {
Commands::Bt { action } => {
handle_ipc_response(ipc::request_data("bt", &[action.clone()]));
}
Commands::Buds { action } => {
handle_ipc_response(ipc::request_data("buds", &[action.clone()]));
}
Commands::Power => {
handle_ipc_response(ipc::request_data("power", &[]));
}
Commands::Game => {
handle_ipc_response(ipc::request_data("game", &[]));
}
}
}