screenshot notify style
This commit is contained in:
parent
ec98e1b6b5
commit
20055deed0
@ -22,6 +22,13 @@ _notify() {
|
|||||||
"${1}"
|
"${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_notify_low() {
|
||||||
|
notify-send --urgency low \
|
||||||
|
--expire-time "${NOTIFY_TIME_MS}" \
|
||||||
|
"${NOTIFY_LABEL}" \
|
||||||
|
"${1}"
|
||||||
|
}
|
||||||
|
|
||||||
_notify_error() {
|
_notify_error() {
|
||||||
notify-send --urgency critical \
|
notify-send --urgency critical \
|
||||||
--expire-time "${NOTIFY_TIME_ERROR_MS}" \
|
--expire-time "${NOTIFY_TIME_ERROR_MS}" \
|
||||||
@ -76,7 +83,7 @@ _process_screenshot() {
|
|||||||
|
|
||||||
if ! ${capture_func} | ${output_func} "${output_arg}"; then
|
if ! ${capture_func} | ${output_func} "${output_arg}"; then
|
||||||
if (( ${pipestatus[1]} == "${CODE_CANCELED}" )); 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
|
return 0
|
||||||
fi
|
fi
|
||||||
_notify_error "${error_msg}"
|
_notify_error "${error_msg}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user