瀏覽代碼

Pass delay from nn() to bb()

Alois Mahdal 2 年之前
父節點
當前提交
e6894b6421
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      dotfiles/bash/main.bashrc

+ 3
- 2
dotfiles/bash/main.bashrc 查看文件

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