Files
dotfiles/dot_config/waybar/waybar.wiki/Module:-PowerProfilesDaemon.md
s0wlz (Matthias Puchstein) 8018b53353 feat: finalize migration to chezmoi and modernize configuration logic
- Modularize Hyprland config into hyprland.d/
- Implement infinitely scalable monitor/workspace logic using templates and loop-based data structures
- Consolidate host-specific configs (hyprlock, hyprpaper, waybar) into single templates
- Resolve waybar symlink conflict and fix template execution errors
- Integrate chezmoi data variables for scale, resolution, and peripherals
2025-12-27 22:52:43 +01:00

61 lines
2.1 KiB
Markdown

The `power-profiles-daemon` module displays the active [power-profiles-daemon](https://gitlab.freedesktop.org/upower/power-profiles-daemon) profile and cycles through the available profiles on click.
# Configuration
| option | typeof | default | description |
| ------ | ------ | ------- | ----------- |
| format | string | {icon} | Message displayed on the bar. `{icon}` and `{profile}` are respectively substituted with the icon representing the active profile and its full name. |
| tooltip-format | string | Power profile: {profile}\\nDriver: {driver} | Messaged displayed in the module tooltip. `{icon}` and `{profile}` are respectively substituted with the icon representing the active profile and its full name. |
| tooltip | bool | true | Display the tooltip. |
| format-icons | object | See default value in the example below. | Icons used to represent the various power-profile. **Note**: the default configuration uses the font-awesome icons. You may want to override it if you don't have this font installed on your system. |
## Format Replacements
The following format replacements can be used to customize the message displayed on the bar and in the tooltip.
| string | replacement |
| ------ | ----------- |
| profile | Active profile full name |
| icon | Fontawesome icon representing the active profile |
# Configuration Examples
Compact display (default config):
```
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
}
```
Display the full profile name:
```
"power-profiles-daemon": {
"format": "{icon} {profile}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
}
```
### Style
- `#power-profiles-daemon`
- `#power-profiles-daemon.performance`
- `#power-profiles-daemon.balanced`
- `#power-profiles-daemon.power-saver`