add app icon

This commit is contained in:
2025-05-04 15:32:44 -07:00
parent 8f3b4f14d8
commit 56d6ecf759

View File

@@ -189,7 +189,7 @@ func changeWallpaper(wallpaperPath, topic string) {
}
func notify(message, urgency string) {
cmd := exec.Command("notify-send", "-i", "hyprpaper", "-u", urgency, "change-wallpaper.go", message)
cmd := exec.Command("notify-send", "-a", "change-wallpaper", "-i", "hyprpaper", "-u", urgency, "change-wallpaper.go", message)
if err := cmd.Run(); err != nil {
fmt.Fprintf(os.Stderr, "Error sending notification: %v\n", err)
}
@@ -197,7 +197,7 @@ func notify(message, urgency string) {
// notifyWithIcon sends a notification with a custom icon (wallpaper image)
func notifyWithIcon(message, urgency, iconPath string) {
cmd := exec.Command("notify-send", "-i", iconPath, "-u", urgency, "change-wallpaper.go", message)
cmd := exec.Command("notify-send", "-a", "change-wallpaper", "-i", iconPath, "-u", urgency, "change-wallpaper.go", message)
if err := cmd.Run(); err != nil {
fmt.Fprintf(os.Stderr, "Error sending notification: %v\n", err)
}