mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
i3-companion: when no app, remove trailing ":" in workspace name
This commit is contained in:
parent
ed9b7c622e
commit
4dcf46c2ed
1 changed files with 1 additions and 1 deletions
|
@ -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}"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue