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:
parent
d081e70d78
commit
2fe5f11b14
4 changed files with 4 additions and 16 deletions
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue