No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
nnra6864 9628a65664 feat: Dunst's frame width and corner radius can be set
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 03:54:28 +01:00
.gitignore chore: Ignore build output 2026-11-11 00:22:33 +01:00
App.zig feat: Dunst's frame width and corner radius can be set 2026-11-17 03:54:28 +01:00
build.zig feat: Dunst's font and notification colors, in a drop-in after dunstrc 2026-11-11 00:22:33 +01:00
build.zig.zon feat: Accent, link and state colors follow the theme's roles 2026-11-12 12:48:22 +01:00
README.md feat: Dunst's frame width and corner radius can be set 2026-11-17 03:54:28 +01:00
root.zig feat: Dunst's font and notification colors, in a drop-in after dunstrc 2026-11-11 00:22:33 +01:00

kosm_dunst

Dunst for kosm: the dunst adapter (an INI dialect: key = "value", #rrggbbaa colors) and the dunst app, covering dunst's font and the colors of each urgency.

The app writes only the options that are set to the drop-in ~/.config/dunst/dunstrc.d/50-kosm.conf. Dunst reads drop-ins after dunstrc with no setup; delete the colors and font dunstrc sets itself so there is one place for them. After every apply the app runs dunstctl reload; with no dunst running, kosm warns and carries on.

from(theme) sets every urgency's colors: the background from the theme's background role with the theme's background_alpha, the text from the foreground (muted for low urgency), the frame the accent (the error role when critical) and the progress bar a strong foreground. The separator takes the frame's color. The font is left alone.

Fields

Field Default
file ~/.config/dunst/dunstrc.d/50-kosm.conf
format the adapter's: #rrggbbaa, true/false
global.font null; .{ .families = &.{ "Iosevka", "Noto Color Emoji" }, .size = 13 }
global.separator_color null; .auto, .foreground, .frame or .{ .color = ... }
global.frame_width null (dunst's 3); the frame around each notification, in pixels
global.corner_radius null (dunst's 0); each notification's corner radius, in pixels
urgency_low, urgency_normal, urgency_critical background, foreground, frame_color, highlight; null leaves each to dunst
extra none; other options by section.option: .{ .path = "global.gap_size", .value = .{ .integer = 4 } }