add icon to notification in notify function
This commit is contained in:
@@ -31,7 +31,7 @@ func notify(body, title string) {
|
||||
if title == "" {
|
||||
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 {
|
||||
fmt.Fprintf(os.Stderr, "notify error: %v\n", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user