prism-power
A graphical interface for managing the system's power profiles. It allows users to switch between different performance modes (Performance, Balanced, Power Saver) via a 08 Rofi menu. This is particularly useful for laptop users looking to extend battery life or maximize hardware performance on the fly.
How it works
- Daemon Check: The script verifies that
powerprofilesctlis available. If thepower-profiles-daemonservice is not active or installed, it sends a critical notification and exits. - State Detection: It queries the current active power profile to highlight it within the selection menu.
- Selection Menu: It presents three stylized options in Rofi:
- Performance (): Maximizes CPU frequency and hardware responsiveness.
- Balanced (): The default middle-ground for standard usage.
- Power Saver (): Throttles performance to reduce energy consumption and heat.
- Application: Once a profile is selected, the script uses
powerprofilesctl setto apply the change and sends a confirmation notification with a matching icon.
Dependencies
power-profiles-daemon: The underlying system service (providespowerprofilesctl).rofi: The menu interface.libnotify: Sends the confirmation notifications.
Usage
Run the script via a keyboard shortcut or the application launcher:
prism-power
Comparison of Power Modes
| Mode | Use Case | Typical Behavior |
|---|---|---|
| Performance | Gaming, Compiling, Video Editing | High clock speeds, more fan noise. |
| Balanced | Web browsing, Office work | Dynamic scaling based on load. |
| Power Saver | Low battery, quiet environments | Low clock speeds, minimal fan usage. |