- Reorganize directory structure into core/, features/, and themes/ - Colocate application Nix logic, configs, scripts, and theme overrides - Implement 'Inversion of Control' for theming: apps now pull theme-specific layouts - Update flake.nix and shared library paths to match the new structure - Document the new Feature-Centric architecture in README.md
16 lines
490 B
Bash
Executable File
16 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Dismiss a mako notification on the basis of its summary. Used by the first-run notifications to dismiss them after clicking for action.
|
|
|
|
if (($# == 0)); then
|
|
echo "Usage: nomarchy-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
|