No dashes is format arg name

pull/2294/head
MisterPine 2023-07-08 23:11:11 +02:00
parent 1887512ba1
commit 9ee883ee1b
No known key found for this signature in database
GPG Key ID: 5481659D1D983422
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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();