modules/power-profiles-daemon: kebab case name in config

power_profiles_daemon => power-profiles-daemon
This commit is contained in:
Félix Baylac Jacqué 2024-03-02 18:37:32 +01:00
parent 5ba7c9eb60
commit 5578c122ab
3 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ $XDG_CONFIG_HOME/waybar/config
Compact display (default config):
```
"power_profiles_daemon": {
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
@ -58,7 +58,7 @@ Compact display (default config):
Display the full profile name:
```
"power_profiles_daemon": {
"power-profiles-daemon": {
"format": "{icon} {profile}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,

View File

@ -20,7 +20,7 @@
"idle_inhibitor",
"pulseaudio",
"network",
"power_profiles_daemon",
"power-profiles-daemon",
"cpu",
"memory",
"temperature",
@ -148,7 +148,7 @@
"battery#bat2": {
"bat": "BAT2"
},
"power_profiles_daemon": {
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,

View File

@ -283,7 +283,7 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name,
if (ref == "bluetooth") {
return new waybar::modules::Bluetooth(id, config_[name]);
}
if (ref == "power_profiles_daemon") {
if (ref == "power-profiles-daemon") {
return new waybar::modules::PowerProfilesDaemon(id, config_[name]);
}
#endif