From 3c4b686cabc4c48325b09f158b65f5adf61bb3a6 Mon Sep 17 00:00:00 2001 From: Vasiliy Horbachenko Date: Mon, 19 May 2014 19:31:10 +0300 Subject: module for displaying current window\'s title --- modules/current-title.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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) -- cgit v1.3