feat(root): add wayland display refresh‑rate control and update dependencies Add support for querying and setting display refresh rates and extend the command‑line interface for refresh‑rate management.
- **New Features** - Introduce `lapctl display rates` to list available refresh rates. - Add `lapctl display set-rate <HZ>` to change the active display’s refresh rate. - Support runtime detection on Hyprland, Sway, KDE Plasma, GNOME, and X11 back‑ends. - **Enhancements** - Include `wayland-client` and `wayland-protocols-wlr` crates with the `client` feature. - Update `Cargo.toml` to declare the new Wayland-related dependencies. - Expand README with usage examples for refresh‑rate management. - **Bug Fixes** - No bug fixes introduced in this change.
This commit is contained in:
3 files changed
+169
No files matched your search
@@ -24,6 +24,7 @@ Built with performance and simplicity in mind, it talks directly to your system'
|
||||
- **Battery Health**: Modern batteries hate being at 100% all the time. Set custom charge limits (like 80%) to significantly extend your battery's lifespan.
|
||||
- **Power Tuning**: Switch through performance profiles or set hard CPU power (TDP) limits in Watts to keep things cool or let them loose.
|
||||
- **Intelligent Cooling**: Force your fans into Performance, Balanced, or Quiet modes (supporting ASUS and Lenovo laptops).
|
||||
- **Display Refresh Rate**: Easily query available refresh rates and change your active display's Hz on-the-fly (Multi-backend natively supports **Hyprland, Sway, KDE Plasma, GNOME, and X11**).
|
||||
- **Touchpad Toggle**: Quickly enable or disable your touchpad from the terminal when using an external mouse.
|
||||
- **Sleep Inhibitor**: Running a long compile or a critical download? Use the inhibitor to stop your laptop from falling asleep mid task.
|
||||
- **Instant Status**: Get a bird's eye view of your hardware state, battery health, and current limits with one simple command.
|
||||
@@ -76,6 +77,10 @@ lapctl cooling performance
|
||||
lapctl touchpad disable
|
||||
lapctl touchpad enable
|
||||
|
||||
# Manage your display refresh rate
|
||||
lapctl display rates
|
||||
lapctl display set-rate 144
|
||||
|
||||
# Keep it awake
|
||||
lapctl inhibit --daemon # Run in background
|
||||
lapctl inhibit -- why "Critical update" ./long-task.sh
|
||||
|
||||
Reference in new issue
Block a user