f1227d4986b523327661d4c2347932c40bfe86a4
- Author
- Pavle Portic <git@theedgeofrage.com>
- Committer
- Pavle Portic <git@theedgeofrage.com>
- Date
Message
Handle empty workspaces properly in i3-autoname
Diff
1diff --git a/dot_config/i3/i3-autoname-workspaces.py b/dot_config/i3/i3-autoname-workspaces.py
2index ce3de58e49cea81e8ebc076082b455773c7e3630..4f29c1de07310295aad481aac78fefb4cd187653 100644
3--- a/dot_config/i3/i3-autoname-workspaces.py
4+++ b/dot_config/i3/i3-autoname-workspaces.py
5@@ -135,7 +135,10 @@ def construct_workspace_name(parts) -> str:
6 if parts['icons']:
7 new_name += ' ' + parts['icons']
8
9- return new_name + ' '
10+ if len(new_name) > 1:
11+ new_name += ' '
12+
13+ return new_name
14
15
16 # Returns an array of the values for the given property from xprop. This