Attention Required: notification rules with effects for Omarchy
Rules watch every notification for words and apps and answer with an effect: nudge, flash, banner, airplane, confetti, blink, sound, focus, or a command. Silenced notifications that match a rule are let through. Settings popup behind a bar bell, rules kept in one JSON file.
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Runs a shell command of yours, with the notification in the environment
|
||||
# (AR_APP, AR_SUMMARY, AR_BODY, AR_RULE, ...; see bin/ar-effect).
|
||||
#
|
||||
# {"type": "command", "run": "notify-send \"$AR_RULE\" \"$AR_SUMMARY\""}
|
||||
set -uo pipefail
|
||||
[[ -n ${AR_OPT_RUN:-} ]] || { echo "command: the effect needs a \"run\" option" >&2; exit 2; }
|
||||
exec bash -c "$AR_OPT_RUN"
|
||||
Reference in New Issue
Block a user