From 994b710a8dfed3c8d01a55946bb499eee6a0a1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lelzin=20=CE=BB?= Date: Tue, 24 Sep 2024 19:56:04 -0300 Subject: [PATCH] feat: add text min-width and left alignment --- internal/dbus.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/dbus.go b/internal/dbus.go index 996805b..903740c 100644 --- a/internal/dbus.go +++ b/internal/dbus.go @@ -98,6 +98,9 @@ func (n DBusNotify) Notify( } current_id++ + // Setting min-width, left alignment + summary = fmt.Sprintf("%-100s", summary) + "\u205F" + // Send Notification nf := NewNotification() if body != "" { @@ -111,7 +114,7 @@ func (n DBusNotify) Notify( MustCompile("^\\s*|(\n)\\s*(.)"). ReplaceAllString( strings.TrimLeft(nf.message, "\n"), - "$1\u205F\u205F$2", + "$1\u205F $2", ) parse_hints(&nf, hints)