add icon to notification in notify function

This commit is contained in:
2025-05-04 14:47:59 -07:00
parent a7df2c1bac
commit db0587c942

View File

@@ -31,7 +31,7 @@ func notify(body, title string) {
if title == "" { if title == "" {
title = scriptName title = scriptName
} }
cmd := exec.Command("notify-send", "-a", "Screenshot", title, body) cmd := exec.Command("notify-send", "-a", "Screenshot", "-i", "camera", title, body)
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
fmt.Fprintf(os.Stderr, "notify error: %v\n", err) fmt.Fprintf(os.Stderr, "notify error: %v\n", err)
} }