diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-18 22:41:02 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-18 22:41:02 +1000 |
| commit | a274a8548ee6e5cff1bc9574116d593b19a5c262 (patch) | |
| tree | a6527ac7bbdd1456609a08b7e681b8fc29dbfc07 /modules | |
| parent | feat: dashboard pfp picker (diff) | |
| download | caelestia-shell-a274a8548ee6e5cff1bc9574116d593b19a5c262.tar.gz caelestia-shell-a274a8548ee6e5cff1bc9574116d593b19a5c262.tar.bz2 caelestia-shell-a274a8548ee6e5cff1bc9574116d593b19a5c262.zip | |
dashboard: send notif when pfp changed
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/dashboard/dash/User.qml | 1 | ||||
| -rw-r--r-- | modules/notifications/Notification.qml | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/modules/dashboard/dash/User.qml b/modules/dashboard/dash/User.qml index ead6fcd..32e983d 100644 --- a/modules/dashboard/dash/User.qml +++ b/modules/dashboard/dash/User.qml @@ -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)}`]); } } } diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index a57c8d2..8a0e367 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -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"; |