mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +00:00
14 lines
350 B
Bash
Executable File
14 lines
350 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|