From 6a4e8d419647df957617b51d062f1c26fd3746ae Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 24 May 2016 08:38:03 +0200 Subject: [PATCH] fix(core): Replace space with dash in lemonbar args --- src/bar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bar.cpp b/src/bar.cpp index 2e90b7dd..09355a7c 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -87,7 +87,7 @@ Bar::Bar() this->opts->wm_name = "lemonbuddy-"+ this->config_path.substr(4); if (!this->opts->monitor->name.empty()) this->opts->wm_name += "_"+ this->opts->monitor->name; - this->opts->wm_name = config::get(this->config_path, "wm_name", this->opts->wm_name); + this->opts->wm_name = string::replace(config::get(this->config_path, "wm_name", this->opts->wm_name), " ", "-"); this->opts->offset_x = config::get(this->config_path, "offset_x", defaults.offset_x); this->opts->offset_y = config::get(this->config_path, "offset_y", defaults.offset_y); @@ -264,7 +264,7 @@ std::string Bar::get_exec_line() buffer << " -d "; for (auto &&font : this->opts->fonts) { - buffer << " -f " << font->id; + buffer << " -f " << string::replace(font->id, " ", "-"); buffer << " -o " << font->offset; }