truncate icons

This commit is contained in:
Daylin Morgan 2025-01-14 16:19:38 -06:00
parent 888c8e4c93
commit 509aec191a
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -102,6 +102,10 @@ proc writeEwwClasses*() =
for id in openWorkspaces(monitors): for id in openWorkspaces(monitors):
workspaces[id - 1].class.add " ws-button-open" workspaces[id - 1].class.add " ws-button-open"
for ws in workspaces.mitems:
if ws.icon.len > 10:
ws.icon = ws.icon[0..7] & "..."
var ewwClasses = var ewwClasses =
collect: collect:
for m in monitors: for m in monitors: