add wayland display refresh‑rate control and Run subcommand tolaunch applications on discrete GPU #1

Merged
S4NKALP merged 11 commits from dev into main 2026-03-20 02:54:02 +00:00
2 changed files with 17 additions and 0 deletions
Showing only changes of commit bb4e9248fd - Show all commits

No files matched your search

+16
View File
@@ -37,6 +37,11 @@ pub enum Commands {
#[command(subcommand)]
command: CoolingCommands,
},
/// Display management commands
Display {
#[command(subcommand)]
command: DisplayCommands,
},
/// Hardware status
Status,
/// Install udev rules for rootless operation
@@ -144,3 +149,14 @@ pub enum TouchpadCommands {
/// Disable the touchpad
Disable,
}
#[derive(Subcommand, Debug)]
pub enum DisplayCommands {
/// Show available and active refresh rates
Rates,
/// Set the display refresh rate
SetRate {
/// Target refresh rate in Hz
rate: f32,
},
}
+1
View File
@@ -26,6 +26,7 @@ fn main() {
Commands::Battery { command } => commands::battery::execute(command),
Commands::Power { command } => commands::power::execute(command),
Commands::Cooling { command } => commands::cooling::execute(command),
Commands::Display { command } => commands::display::execute(command),
Commands::Status => commands::status::execute(),
Commands::InstallRules => commands::install_rules::execute(),
Commands::Touchpad { command } => commands::touchpad::execute(command),