From 4dcf46c2ed0d1f1b6bd4c78d9ee0ea5fa21e16f7 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 6 Jul 2021 08:25:14 +0200 Subject: [PATCH] i3-companion: when no app, remove trailing ":" in workspace name --- bin/i3-companion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/i3-companion b/bin/i3-companion index 42098d1..a654915 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -104,7 +104,7 @@ def workspace_rename(i3, event): icons.add(icon) if any([i not in application_icons_alone for i in icons]): icons -= application_icons_alone - new_name = f"{workspace.num}:{'|'.join(icons)}" + new_name = f"{workspace.num}:{'|'.join(icons)}".rstrip(":") if workspace.name != new_name: logger.debug(f"rename workspace {workspace.num}") command = f'rename workspace "{workspace.name}" to "{new_name}"'