1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: switch to static png for qr notification

This commit is contained in:
oddlama 2023-10-16 02:35:43 +02:00
parent d081e70d78
commit 2fe5f11b14
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 4 additions and 16 deletions

View file

@ -36,7 +36,7 @@ writeShellApplication {
${xclip}/bin/xclip -selection clipboard <<< "$DATA"
${libnotify}/bin/notify-send \
"🔍 QR Code scan" " $N codes detected\n📋 copied ''${#DATA} bytes" \
--hint="string:image-path:"${./assets/qr-scan.svg} \
--hint="string:image-path:"${./assets/qr-scan.png} \
--hint="string:wired-tag:screenshot-$date" \
|| true
else
@ -44,14 +44,14 @@ writeShellApplication {
"4")
${libnotify}/bin/notify-send \
"🔍 QR Code scan" " 0 codes detected" \
--hint="string:image-path:"${./assets/qr-scan.svg} \
--hint="string:image-path:"${./assets/qr-scan.png} \
--hint="string:wired-tag:screenshot-$date" \
|| true
;;
*)
${libnotify}/bin/notify-send \
"🔍 QR Code scan" " Error while processing image: zbarimg exited with code $?" \
--hint="string:image-path:"${./assets/qr-scan.svg} \
--hint="string:image-path:"${./assets/qr-scan.png} \
--hint="string:wired-tag:screenshot-$date" \
|| true
;;