Browse Source

Pass delay from nn() to bb()

Alois Mahdal 2 years ago
parent
commit
e6894b6421
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      dotfiles/bash/main.bashrc

+ 3
- 2
dotfiles/bash/main.bashrc View File

@@ -51,10 +51,11 @@ bb() {
51 51
 
52 52
 nn() {
53 53
     #
54
-    # Ring the bell and send notification $1
54
+    # Ring the bell and send notification $1 after $2 time
55 55
     #
56 56
     local msg=${1:-this is done}
57
-    bb
57
+    local stime=$2
58
+    bb "$stime"
58 59
     echo -e "hey, \033[1;31m$msg\033[1;0m!"
59 60
     notify-send -a 'nn()' "hey, $msg"
60 61
 }