123456789101112131415161718192021222324252627282930 |
- #!/bin/bash
-
-
- _pretty__debug() {
- local decor="()"
- local caller_is_main=${caller_is_main:-false}
- local caller=${caller:-UNKNOWN}
- $caller_is_main && decor=
- notify-send -u low -a "${0##*/}" debug "debug:$caller$decor: $(cat)"
- }
-
- _pretty__die() {
- notify-send -u critical -a "${0##*/}" fatal "$(cat)"
- }
-
- _pretty__mkhelp() {
- notify-send -a "${0##*/}" help "$(cat)"
- }
-
- _pretty__mkusage() {
- notify-send -u critical -a "${0##*/}" usage "$(cat)"
- }
-
- _pretty__think() {
- notify-send -a "${0##*/}" info "$(cat)"
- }
-
- _pretty__warn() {
- notify-send -u critical -a "${0##*/}" warning "$(cat)"
- }
|