diff --git a/private_dot_local/bin/executable_screenshot.sh b/private_dot_local/bin/executable_screenshot.sh index 34b4624..56fb96e 100644 --- a/private_dot_local/bin/executable_screenshot.sh +++ b/private_dot_local/bin/executable_screenshot.sh @@ -9,9 +9,6 @@ target_path="$HOME/Obrazy/zrzuty/$fname" error_wrong_type="The first argument needs to be \"fullscreen\", \"window\" or \"region\". Exiting..." notification_succes="$target_path saved and copied" -notification() { - notify-send -i "$target_path" -u low -a "Screenshot" "Screenshot saved" "$notification_succes" -} # validate input case "$1" in @@ -24,6 +21,10 @@ case "$1" in ;; esac +notification() { + notify-send -i "$target_path" -u low -a "Screenshot" "Screenshot $type" "$notification_succes" +} + case $type in "fullscreen") grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') "$target_path"