Ver código fonte

Re-tune notification urgencies

think() is for messages in verbose modes, if app wants to be verbose it
should not look like the messages don't matter.

warn() is for warnings: either you should totally know about them or
they should not be warnings.

Same holds for mkusage() which basically means the app died because it
could not understand what you wanted it to do.
Alois Mahdal 6 anos atrás
pai
commit
1eeeb7eccd
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      src/include-bash/_pretty_notify.sh

+ 3
- 3
src/include-bash/_pretty_notify.sh Ver arquivo

@@ -18,13 +18,13 @@ _pretty__mkhelp() {
18 18
 }
19 19
 
20 20
 _pretty__mkusage() {
21
-    notify-send -a "${0##*/}" usage "$(cat)"
21
+    notify-send -u critical -a "${0##*/}" usage "$(cat)"
22 22
 }
23 23
 
24 24
 _pretty__think() {
25
-    notify-send -u low -a "${0##*/}" info "$(cat)"
25
+    notify-send -a "${0##*/}" info "$(cat)"
26 26
 }
27 27
 
28 28
 _pretty__warn() {
29
-    notify-send -a "${0##*/}" warning "$(cat)"
29
+    notify-send -u critical -a "${0##*/}" warning "$(cat)"
30 30
 }