From 20055deed0894207f2727cf6a644636912e7fedc Mon Sep 17 00:00:00 2001 From: thek4n Date: Tue, 20 May 2025 12:37:23 +0300 Subject: [PATCH] screenshot notify style --- home/user/.local/bin/screenshot | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home/user/.local/bin/screenshot b/home/user/.local/bin/screenshot index f70418f..0075ba3 100755 --- a/home/user/.local/bin/screenshot +++ b/home/user/.local/bin/screenshot @@ -22,6 +22,13 @@ _notify() { "${1}" } +_notify_low() { + notify-send --urgency low \ + --expire-time "${NOTIFY_TIME_MS}" \ + "${NOTIFY_LABEL}" \ + "${1}" +} + _notify_error() { notify-send --urgency critical \ --expire-time "${NOTIFY_TIME_ERROR_MS}" \ @@ -76,7 +83,7 @@ _process_screenshot() { if ! ${capture_func} | ${output_func} "${output_arg}"; then if (( ${pipestatus[1]} == "${CODE_CANCELED}" )); then - _notify "Selection was cancelled by keystroke or right-click." + _notify_low "Selection was cancelled by keystroke or right-click." return 0 fi _notify_error "${error_msg}"