Format hyprland-screenshot script

This commit is contained in:
ItsDrike 2024-12-24 14:32:18 +01:00
parent f871b7b427
commit db58721f45
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Inspired by grimblast (https://github.com/hyprwm/contrib/blob/main/grimblast/grimblast) # Inspired by grimblast (https://github.com/hyprwm/contrib/blob/main/grimblast/grimblast)
@ -9,7 +9,6 @@ die() {
ERR_CODE="${2:-1}" ERR_CODE="${2:-1}"
URGENCY="${3:-critical}" URGENCY="${3:-critical}"
>&2 echo "$MSG"
if [ "$NOTIFY" = "yes" ]; then if [ "$NOTIFY" = "yes" ]; then
notify-send -a screenshot -u "$URGENCY" "Error ($ERR_CODE)" "$MSG" notify-send -a screenshot -u "$URGENCY" "Error ($ERR_CODE)" "$MSG"
fi fi