Skip to content

Commit

Permalink
feat: add text min-width and left alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
d3cryptofc committed Sep 24, 2024
1 parent 685a463 commit 994b710
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/dbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand All @@ -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)
Expand Down

0 comments on commit 994b710

Please sign in to comment.