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

power_profiles_daemon => power-profiles-daemon
pull/2971/head
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): Compact display (default config):
``` ```
"power_profiles_daemon": { "power-profiles-daemon": {
"format": "{icon}", "format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}", "tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true, "tooltip": true,
@ -58,7 +58,7 @@ Compact display (default config):
Display the full profile name: Display the full profile name:
``` ```
"power_profiles_daemon": { "power-profiles-daemon": {
"format": "{icon} {profile}", "format": "{icon} {profile}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}", "tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true, "tooltip": true,

View File

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

View File

@ -283,7 +283,7 @@ waybar::AModule* waybar::Factory::makeModule(const std::string& name,
if (ref == "bluetooth") { if (ref == "bluetooth") {
return new waybar::modules::Bluetooth(id, config_[name]); 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]); return new waybar::modules::PowerProfilesDaemon(id, config_[name]);
} }
#endif #endif