ソースを参照

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 7 年 前
コミット
1eeeb7eccd
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3
    3
      src/include-bash/_pretty_notify.sh

+ 3
- 3
src/include-bash/_pretty_notify.sh ファイルの表示

@@ -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
 }