diff --git a/include/bar.hpp b/include/bar.hpp index 5c6b675..eb0d420 100644 --- a/include/bar.hpp +++ b/include/bar.hpp @@ -44,6 +44,8 @@ class Bar { "Requested width: {} exceeds the minimum width: {} required by the modules"; static inline const std::string BAR_SIZE_MSG = "Bar configured (width: {}, height: {}) for output: {}"; + static inline const std::string SIZE_DEFINED = + "{} size is defined in the config file so it will stay like that"; static void layerSurfaceHandleConfigure(void *, struct zwlr_layer_surface_v1 *, uint32_t, uint32_t, uint32_t); static void layerSurfaceHandleClosed(void *, struct zwlr_layer_surface_v1 *); diff --git a/src/bar.cpp b/src/bar.cpp index effcc84..33b0043 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -51,8 +51,7 @@ waybar::Bar::Bar(struct waybar_output* w_output) std::cout << fmt::format(MIN_HEIGHT_MSG, height_, ev->height) << std::endl; } if (output->config["height"].isUInt()) { - std::cout << "Height size is defined in the config file so it will stay like that" - << std::endl; + std::cout << fmt::format(SIZE_DEFINED, "Height") << std::endl; } else { tmp_height = ev->height; } @@ -63,8 +62,7 @@ waybar::Bar::Bar(struct waybar_output* w_output) std::cout << fmt::format(MIN_WIDTH_MSG, width_, ev->width) << std::endl; } if (output->config["width"].isUInt()) { - std::cout << "Height size is defined in the config file so it will stay like that" - << std::endl; + std::cout << fmt::format(SIZE_DEFINED, "Width") << std::endl; } else { tmp_width = ev->width; }