跳转到内容

leo bell

本页由 Cobra 命令树生成;命令、参数和输出保持 CLI 原文。

Play a system alert sound after a delay

Show a countdown in the terminal, then play a system alert sound and print a message. Set the duration as an argument or with -t/–time, for example 120m, 3h, 300s, or 2m30s. Words after the duration are joined into one message; you can also use -m/–message. Press Ctrl+C to cancel. macOS displays a notification banner and requires terminal-notifier (brew install terminal-notifier). Allow terminal-notifier notifications and select Banners in System Settings > Notifications. Linux requires canberra-gtk-play.

leo bell [DURATION] [MESSAGE...] [flags]
leo bell 2m 提醒我 123
leo bell 2m -m hello
leo bell -t 2m30s 提醒我 123
leo bell -t 3h
-h, --help help for bell
-m, --message string Message to display when the timer finishes (default "时间到了")
-t, --time string Delay before ringing, for example 120m, 3h, 300s, or 2m30s
-v, --version Print version
  • leo - Personal command-line tools