From 9ee883ee1b61aeb978bedff31451501286127e70 Mon Sep 17 00:00:00 2001 From: MisterPine Date: Sat, 8 Jul 2023 23:11:11 +0200 Subject: [PATCH] No dashes is format arg name --- man/waybar-hyprland-window.5.scd | 4 ++-- src/modules/hyprland/window.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/waybar-hyprland-window.5.scd b/man/waybar-hyprland-window.5.scd index 53ee22a..2a3f62f 100644 --- a/man/waybar-hyprland-window.5.scd +++ b/man/waybar-hyprland-window.5.scd @@ -30,11 +30,11 @@ See the output of "hyprctl clients" for examples *{title}*: The current title of the focused window. -*{initial-title}*: The initial title of the focused window. +*{initialTitle}*: The initial title of the focused window. *{class}*: The current class of the focused window. -*{initial-class}*: The initial class of the focused window. +*{initialClass}*: The initial class of the focused window. # REWRITE RULES diff --git a/src/modules/hyprland/window.cpp b/src/modules/hyprland/window.cpp index fea0d31..01f672a 100644 --- a/src/modules/hyprland/window.cpp +++ b/src/modules/hyprland/window.cpp @@ -59,9 +59,9 @@ auto Window::update() -> void { label_.show(); label_.set_markup(waybar::util::rewriteString( fmt::format(fmt::runtime(format_), fmt::arg("title", window_name), - fmt::arg("initial-title", window_data_.initial_title), + fmt::arg("initialTitle", window_data_.initial_title), fmt::arg("class", window_data_.class_name), - fmt::arg("initial-class", window_data_.initial_class_name)), + fmt::arg("initialClass", window_data_.initial_class_name)), config_["rewrite"])); } else { label_.hide();