Initial import: Lua config, trimmed omarchy scripts, theme system
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# archypr:summary=Send a desktop notification with Omarchy glyph and body spacing
|
||||
# archypr:args=<glyph> <headline> [description] [notify-send options]
|
||||
# archypr:examples=omarchy notification send "" "Reminder" "5 minutes are up" -u critical
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if (($# < 2)); then
|
||||
echo "Usage: archypr-notification-send <glyph> <headline> [description] [notify-send options]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
glyph=$1
|
||||
headline=$2
|
||||
description=${3:-}
|
||||
shift 2
|
||||
|
||||
if (($# > 0)) && [[ $1 != -* ]]; then
|
||||
shift
|
||||
else
|
||||
description=""
|
||||
fi
|
||||
|
||||
summary="$glyph $headline"
|
||||
|
||||
if [[ -n $description ]]; then
|
||||
description=$(sed 's/^/ /' <<<"$description")
|
||||
notify-send "$@" "$summary" "$description"
|
||||
else
|
||||
notify-send "$@" "$summary"
|
||||
fi
|
||||
Reference in New Issue
Block a user