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

feat: add volume keyboard shortcuts with notification

This commit is contained in:
oddlama 2023-10-16 16:12:47 +02:00
parent 2fe5f11b14
commit 4d42043895
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
13 changed files with 525 additions and 11 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.png} \
--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.png} \
--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.png} \
--hint="string:image-path:"${./assets}/qr-scan.png \
--hint="string:wired-tag:screenshot-$date" \
|| true
;;