소스 검색

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
 }