Files
dotfiles/.config/hypr/scripts/dunst-nc.sh
T
Zacharias-Brohn 567faff34e test
2026-01-19 18:40:28 +01:00

13 lines
400 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# show-notifications.sh: display Dunst history in Rofi
# Fetch all notifications as JSON
history=$(dunstctl history)
# Parse and format: use jq to extract summary and body (as an example)
items=$(echo "$history" \
| jq -r '.data[][] | "\(.summary.data) \(.body.data)"')
# Show with Rofi (fallback: you could use dmenu similarly)
echo "$items" | rofi -dmenu -i -p "Notifications"