hardcoded length limit for bspwm_taskbar

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2020-12-03 11:50:11 +03:00
parent ac5ea1ad6d
commit 4203d6269a

View File

@ -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