From aaa820c32ba7fb00d17955577006839882a7d1cd Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Fri, 3 Jan 2025 01:21:15 -0800 Subject: [PATCH] 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. --- .config/dunst/dunstrc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index c42eb1a..c594625 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -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"