feat: screenshots answer with a thumbnail notification

All four Print binds go through hypr/scripts/shot.sh. Every capture
lands on the clipboard and posts a notification showing the picture,
with Open, Save (for clipboard captures, which wait in the runtime dir)
and Edit when satty is installed. Cancelling the region picker does
nothing.

Notification cards now load images passed as a path hint: Quickshell
routes those through the icon provider, which returned a placeholder.
This commit is contained in:
nvrl committed 2026-10-04 23:36:56 +02:00
1 parent 373584f34e
commit 31b57f4f8c
3 files changed
+88 -5

No files matched your search

+8 -1
View File
@@ -185,7 +185,14 @@ Item {
id: inline
x: 1
y: 1
source: root.notif?.image || ""
// A path given as an image hint (notify-send -h image-path:…)
// comes back routed through the icon provider, which treats
// it as an icon name and returns a placeholder. Load the file.
source: {
const img = root.notif?.image || "";
if (img.startsWith("image://icon//")) return "file://" + img.slice("image://icon/".length);
return img.startsWith("/") ? "file://" + img : img;
}
sourceSize.height: 90
fillMode: Image.PreserveAspectFit
asynchronous: true