dotfiles/.config/dunst/dunstrc
Trysdyn Black aaa820c32b 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.
2025-01-03 01:21:15 -08:00

106 lines
2.3 KiB
Text

[global]
font = "Sans 12"
origin = top-left
width = 600
height = (0, 128)
offset = (0, 0)
padding = 1
horizontal_padding = 1
notification_limit = 20
shrink = no
follow = mouse
indicate_hidden = yes
transparency = 0
frame_width = 2
sort = no
idle_threshold = 15m
markup = full
alignment = left
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
show_age_threshold = 60
word_wrap = true
ellipsize = end
ignore_newline = yes
stack_duplicates = false
hide_duplicate_count = false
show_indicators = yes
icon_position = left
min_icon_size = 0
max_icon_size = 32
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
sticky_history = yes
history_length = 100
dmenu = /usr/bin/rofi -dmenu -p dunst
mouse_left_click = close_current
mouse_right_click = do_action, close_current
mouse_middle_click = close_all
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
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"
foreground = "#a0a0a0"
timeout = 5s
[base16_normal]
msg_urgency = normal
background = "#311647"
foreground = "#f0f0f0"
timeout = 5m
[base16_critical]
msg_urgency = critical
background = "#ed008c"
foreground = "#c0c0c0"
timeout = 0
# %%base16_template_end%%
[RSS]
# Squash RSS dir notifications because I only see them when *reading* aerc
appname = "aerc"
summary = "New mail in RSS from*"
format = ""
[Doorbell]
appname = "doorbell"
max_icon_size = 128