dashboard: send notif when pfp changed
This commit is contained in:
parent
e0972efdb4
commit
a274a8548e
2 changed files with 6 additions and 3 deletions
|
|
@ -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)}`]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue