fix: remove rewrite
This commit is contained in:
@ -9,7 +9,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "modules/hyprland/backend.hpp"
|
#include "modules/hyprland/backend.hpp"
|
||||||
#include "util/rewrite_string.hpp"
|
|
||||||
#include "util/sanitize_str.hpp"
|
#include "util/sanitize_str.hpp"
|
||||||
|
|
||||||
namespace waybar::modules::hyprland {
|
namespace waybar::modules::hyprland {
|
||||||
@ -53,17 +52,11 @@ auto WindowCount::update() -> void {
|
|||||||
setClass("fullscreen", workspace_.hasfullscreen);
|
setClass("fullscreen", workspace_.hasfullscreen);
|
||||||
|
|
||||||
if (workspace_.hasfullscreen && !formatFullscreen.empty()) {
|
if (workspace_.hasfullscreen && !formatFullscreen.empty()) {
|
||||||
label_.set_markup(waybar::util::rewriteString(
|
label_.set_markup(fmt::format(fmt::runtime(formatFullscreen), workspace_.windows));
|
||||||
fmt::format(fmt::runtime(formatFullscreen), workspace_.windows),
|
|
||||||
config_["rewrite"]));
|
|
||||||
} else if (!workspace_.hasfullscreen && !formatWindowed.empty()) {
|
} else if (!workspace_.hasfullscreen && !formatWindowed.empty()) {
|
||||||
label_.set_markup(waybar::util::rewriteString(
|
label_.set_markup(fmt::format(fmt::runtime(formatWindowed), workspace_.windows));
|
||||||
fmt::format(fmt::runtime(formatWindowed), workspace_.windows),
|
|
||||||
config_["rewrite"]));
|
|
||||||
} else if (!format.empty()) {
|
} else if (!format.empty()) {
|
||||||
label_.set_markup(waybar::util::rewriteString(
|
label_.set_markup(fmt::format(fmt::runtime(format), workspace_.windows));
|
||||||
fmt::format(fmt::runtime(format), workspace_.windows),
|
|
||||||
config_["rewrite"]));
|
|
||||||
} else {
|
} else {
|
||||||
label_.set_text(fmt::format("{}", workspace_.windows));
|
label_.set_text(fmt::format("{}", workspace_.windows));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user