diff --git a/src/cli.rs b/src/cli.rs index d324475..1f848b9 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -41,6 +41,11 @@ pub enum Commands { Status, /// Install udev rules for rootless operation InstallRules, + /// Touchpad management + Touchpad { + #[command(subcommand)] + command: TouchpadCommands, + }, /// Inhibit system sleep/suspend Inhibit { /// The command to run while inhibiting (optional) @@ -131,3 +136,11 @@ pub enum BatteryCommands { /// Show current battery status Status, } + +#[derive(Subcommand, Debug)] +pub enum TouchpadCommands { + /// Enable the touchpad + Enable, + /// Disable the touchpad + Disable, +} diff --git a/src/main.rs b/src/main.rs index b1e9c85..29a775b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,6 +28,7 @@ fn main() { Commands::Cooling { command } => commands::cooling::execute(command), Commands::Status => commands::status::execute(), Commands::InstallRules => commands::install_rules::execute(), + Commands::Touchpad { command } => commands::touchpad::execute(command), Commands::Inhibit { command, why,