dashboard: send notif when pfp changed

This commit is contained in:
2 * r + 2 * t 2025-06-18 22:41:02 +10:00
parent e0972efdb4
commit a274a8548e
2 changed files with 6 additions and 3 deletions

View file

@ -111,6 +111,7 @@ Row {
onAccepted: {
Paths.copy(selectedFile, `${Paths.home}/.face`);
pfp.pathChanged();
Quickshell.execDetached(["notify-send", "-a", "caelestia-shell", "-u", "low", "Profile picture changed", `Profile picture changed to ${Paths.strip(selectedFile)}`]);
}
}
}

View file

@ -197,10 +197,12 @@ StyledRect {
return "download";
if (summary.includes("update"))
return "update";
if (summary.startsWith("file"))
return "folder_copy";
if (summary.startsWith("unable to"))
if (summary.includes("unable to"))
return "deployed_code_alert";
if (summary.includes("profile"))
return "person";
if (summary.includes("file"))
return "folder_copy";
if (root.modelData.urgency === NotificationUrgency.Critical)
return "release_alert";
return "chat";