From b9ac3cb2213f2d04c4fe6182271fc5b295b2f284 Mon Sep 17 00:00:00 2001 From: Szymon P Date: Thu, 25 Sep 2025 13:25:37 +0200 Subject: [PATCH] Update .local/bin/screenshot.sh --- private_dot_local/bin/executable_screenshot.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"