Add processing script to dunst notifications

This script just writes a timestamped log file to a tmpfs for perusing
out of band, since Dunst's "Timestamps" are something like "Microseconds
since launch" and not at all useful.

We also add some comments and update some directives to newer formats.
This commit is contained in:
Trysdyn Black 2025-01-03 01:21:15 -08:00
parent 5d24c1234f
commit aaa820c32b

View file

@ -3,7 +3,7 @@
origin = top-left
width = 600
height = (0, 128)
offset = 0x0
offset = (0, 0)
padding = 1
horizontal_padding = 1
notification_limit = 20
@ -43,7 +43,7 @@
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
sticky_history = yes
history_length = 500
history_length = 100
dmenu = /usr/bin/rofi -dmenu -p dunst
@ -59,12 +59,22 @@
corner_radius = 0
# Attempt to ignore instructions to close a notification from a calling app
# This is for things like apps forcing their own close timeout, or closing
# notifs for deleted messges
ignore_dbusclose = true
# If we blat a notification, I don't want my script parsing it either
always_run_script = false
# %%base16_template: dunst##default %%
frame_color = "#f0f0f0"
separator_color = "#f0f0f0"
[global]
# Script to log a notification to a tmpfs file for other app uses
script = "/home/trysdyn/bin/notifylog"
[base16_low]
msg_urgency = low
background = "#202020"