fix my waybar number patch :>
This commit is contained in:
parent
6ba11eb46f
commit
d4feeea1fb
2 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@
|
|||
programs.waybar = {
|
||||
enable = true;
|
||||
package = pkgs.waybar.overrideAttrs (final: prev: {
|
||||
# patches = [./waybar-workspace.patch];
|
||||
patches = [./waybar-workspace.patch];
|
||||
});
|
||||
settings = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
diff --git a/src/modules/sway/workspaces.cpp b/src/modules/sway/workspaces.cpp
|
||||
index 8f273300..faed503c 100644
|
||||
index e0255893..13db7f3a 100644
|
||||
--- a/src/modules/sway/workspaces.cpp
|
||||
+++ b/src/modules/sway/workspaces.cpp
|
||||
@@ -343,9 +343,9 @@ auto Workspaces::update() -> void {
|
||||
@@ -344,9 +344,9 @@ auto Workspaces::update() -> void {
|
||||
fmt::arg("output", (*it)["output"].asString()));
|
||||
}
|
||||
if (!config_["disable-markup"].asBool()) {
|
||||
- static_cast<Gtk::Label *>(button.get_children()[0])->set_markup(output);
|
||||
+ static_cast<Gtk::Label *>(button.get_children()[0])->set_markup(trimWorkspaceName(output));
|
||||
- static_cast<Gtk::Label*>(button.get_children()[0])->set_markup(output);
|
||||
+ static_cast<Gtk::Label*>(button.get_children()[0])->set_markup(trimWorkspaceName(output));
|
||||
} else {
|
||||
- button.set_label(output);
|
||||
+ button.set_label(trimWorkspaceName(output));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue