Commit Graph
10 Commits
Author SHA1 Message Date
sankalp d0b43db8ed feat(src/utils): add system utilities module
Create utilities for root checking, file creation with permissions, display manager detection, and initramfs rebuild.

- New Features
  - Introduce `system` module with `assert_root`, `create_file`, `get_display_manager`, and `rebuild_initramfs` functions.
- Enhancements
  - Add comprehensive logging (info, debug, warn, error) and debug output.
  - Implement directory creation and executable permission handling.
  - Wrap initramfs rebuild commands with `systemd-inhibit` when available.
- Bug Fixes
  - None
2026-03-11 23:32:03 +05:45
sankalp ea36902e72 feat(commands): add battery, gpu, power, and status command implementations
Added full command implementations for battery limit/status, GPU management (cache operations, mode switching, NVIDIA handling), and a status reporter that prints GPU mode and battery details. Introduced module registration and placeholder power command.

New Features
- Battery command support (`limit`, `status`)
- GPU command suite (`cache-delete`, `cache-query`, `reset`, `reset-sddm`, `integrated`, `hybrid`, `nvidia`)
- Status command output showing GPU mode and battery information
- Power command placeholder scaffold

Enhancements
- Unified command registration via `mod.rs`
- Added root checks and file utilities for cache and config operations
- Integrated logging infrastructure

Bug Fixes: none
2026-03-11 23:31:53 +05:45
sankalp 36d0807983 feat(root): add hybrid Optimus mode caching and command extensions
- New Features
  - Introduced cached configuration for hybrid Optimus systems
  - Added command‑line options for switching, resetting, and cache management
- Enhancements
  - Integrated clap‑derived CLI parsing
  - Updated project dependencies via Cargo.lock
  - Improved error handling and logging
2026-03-11 23:31:43 +05:45
sankalp d7e698d29d feat(src/utils): add system module placeholder
Add empty system.rs file in src/utils as a placeholder for future system utilities.

- New Features
  - Add system module skeleton
- Enhancements
- Bug Fixes
2026-03-11 22:18:17 +05:45
sankalp a9c6f4e561 feat(src/commands): add new command modules for battery, gpu, power, and status
- New Features
  - battery.rs: new command to display battery charge and health
  - gpu.rs: new command to query GPU utilization and temperature
  - power.rs: new command to show power consumption and mode
  - status.rs: new command to provide overall system status overview
2026-03-11 22:18:08 +05:45
sankalp af8d74bd05 feat(src): add initial CLI implementation
Add main entry point and scaffold CLI module to start building the tool.

- New Features:
  - Added `src/main.rs` with a hello‑world entry point.
  - Added `src/cli.rs` as placeholder for future CLI command definitions.
- Enhancements:
  - None
- Bug Fixes:
  - None
2026-03-11 22:18:00 +05:45
sankalp c150d422cd chore(root): add Cargo.toml and update .gitignore
Why: initialize Rust project and configure ignore patterns

New Features
- Initialize new Rust package `lapctl`.

Enhancements
- Add .gitignore entries for IDE metadata and build output.

Bug Fixes
- (none)
2026-03-11 22:17:55 +05:45
sankalp 69d6fd510c feat(src/hardware): add battery, gpu and mod files
- New Features
  - Added Battery implementation
  - Added GPU implementation
  - Added hardware module entry point
- Enhancements
  -
- Bug Fixes
  -
2026-03-11 22:17:49 +05:45
sankalp 30823fcc19 docs(root): Add initial README for lapctl
This adds the project's README documenting its purpose, planned features, and roadmap to orient contributors and users.

- New Features
  - Introduce overview of lapctl, including hybrid GPU control, battery limit management, and status commands
- Enhancements
  - Provide structured sections for project status, goals, example CLI, and roadmap
- Bug Fixes
  - None
2026-03-11 22:09:47 +05:45
sankalp 2365a0e445 Initial commit 2026-03-11 21:53:48 +05:45