mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
17 lines
530 B
Bash
Executable File
17 lines
530 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Dismiss a mako notification on the basis of its summary. Used by the first-run notifications to dismiss them after clicking for action.
|
|
# omarchy:args=<summary>
|
|
|
|
if (($# == 0)); then
|
|
echo "Usage: omarchy-notification-dismiss <summary>"
|
|
exit 1
|
|
fi
|
|
|
|
# Find the first notification whose 'summary' matches the regex in $1
|
|
notification_id=$(makoctl list | grep -F "$1" | head -n1 | sed -E 's/^Notification ([0-9]+):.*/\1/')
|
|
|
|
if [[ -n $notification_id ]]; then
|
|
makoctl dismiss -n $notification_id
|
|
fi
|