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: {
|
onAccepted: {
|
||||||
Paths.copy(selectedFile, `${Paths.home}/.face`);
|
Paths.copy(selectedFile, `${Paths.home}/.face`);
|
||||||
pfp.pathChanged();
|
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";
|
return "download";
|
||||||
if (summary.includes("update"))
|
if (summary.includes("update"))
|
||||||
return "update";
|
return "update";
|
||||||
if (summary.startsWith("file"))
|
if (summary.includes("unable to"))
|
||||||
return "folder_copy";
|
|
||||||
if (summary.startsWith("unable to"))
|
|
||||||
return "deployed_code_alert";
|
return "deployed_code_alert";
|
||||||
|
if (summary.includes("profile"))
|
||||||
|
return "person";
|
||||||
|
if (summary.includes("file"))
|
||||||
|
return "folder_copy";
|
||||||
if (root.modelData.urgency === NotificationUrgency.Critical)
|
if (root.modelData.urgency === NotificationUrgency.Critical)
|
||||||
return "release_alert";
|
return "release_alert";
|
||||||
return "chat";
|
return "chat";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue