Handle empty workspaces properly in i3-autoname

This commit is contained in:
Pavle Portic 2023-10-17 20:41:20 +02:00
parent 8bfba9f71b
commit f1227d4986
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
1 changed files with 4 additions and 1 deletions

View File

@ -135,7 +135,10 @@ def construct_workspace_name(parts) -> str:
if parts['icons']:
new_name += ' ' + parts['icons']
return new_name + ' '
if len(new_name) > 1:
new_name += ' '
return new_name
# Returns an array of the values for the given property from xprop. This