浏览代码

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 年前
父节点
当前提交
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
 }