From 4203d6269a910452edbfa090561ca4d05e1320f2 Mon Sep 17 00:00:00 2001 From: fbt Date: Thu, 3 Dec 2020 11:50:11 +0300 Subject: [PATCH] hardcoded length limit for bspwm_taskbar Signed-off-by: fbt --- mod/bspwm_taskbar | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/bspwm_taskbar b/mod/bspwm_taskbar index b009fcf..4c065a3 100644 --- a/mod/bspwm_taskbar +++ b/mod/bspwm_taskbar @@ -10,7 +10,11 @@ class BspwmTaskbar < Worker line = "desktop" end - self.write line + if line.length >= 43 + self.write "#{line[0...43]}..." + else + self.write line + end end end end