diff options
| author | Vasiliy Horbachenko <shadowprince47@gmail.com> | 2014-05-19 19:31:10 +0300 |
|---|---|---|
| committer | Vasiliy Horbachenko <shadowprince47@gmail.com> | 2014-05-19 19:31:10 +0300 |
| commit | 3c4b686cabc4c48325b09f158b65f5adf61bb3a6 (patch) | |
| tree | 1d3e6072e2af1f8758e62e7980e1ab6825f109a7 /modules | |
| parent | a6cd4b91c51e4f9dfb7f09b49a0634f27c2dede8 (diff) | |
module for displaying current window\'s title
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/current-title.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/current-title.py b/modules/current-title.py index c9cdde9..f995752 100644 --- a/modules/current-title.py +++ b/modules/current-title.py @@ -42,6 +42,6 @@ class Py3status: window = find_focused(i3.get_tree()) if window and "name" in window: - response["full_text"] = len(window["name"]) > MAX_WIDTH and "..." + window["name"][-MAX_WIDTH:] or window["name"] + response["full_text"] = len(window["name"]) > MAX_WIDTH and "..." + window["name"][-(MAX_WIDTH-3):] or window["name"] return (0, response) |
