Skip to content

Commit ff1c5a0

Browse files
committed
feat(extras): add Dunst theme
1 parent c547361 commit ff1c5a0

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

lua/astrotheme/extras/dunst.lua

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
local util = require "astrotheme.extras"
2+
3+
local M = {}
4+
5+
--- @param colors AstroThemePalette
6+
function M.generate(colors)
7+
return util.template(
8+
[[
9+
# ${_style_name} colors for dunst
10+
# For more configuration options see https://github.com/dunst-project/dunst/blob/master/dunstrc
11+
12+
[urgency_low]
13+
background = "${ui.inactive_base}"
14+
foreground = "${syntax.text}"
15+
frame_color = "${ui.border}"
16+
17+
[urgency_normal]
18+
background = "${ui.base}"
19+
foreground = "${syntax.text}"
20+
frame_color = "${ui.border}"
21+
22+
[urgency_critical]
23+
background = "${ui.highlight}"
24+
foreground = "${syntax.red}"
25+
frame_color = "${syntax.red}"
26+
]],
27+
colors
28+
)
29+
end
30+
31+
return M

lua/astrotheme/extras/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ M.extras = {
1414
wezterm = { ext = "toml", url = "https://wezfurlong.org/wezterm/config/files.html", label = "WezTerm" },
1515
alacritty = { ext = "toml", url = "https://github.com/alacritty/alacritty", label = "Alacritty" },
1616
delta = { ext = "gitconfig", url = "https://github.com/dandavison/delta", label = "Delta" },
17+
dunst = { ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst" },
1718
}
1819

1920
function M.setup()

0 commit comments

Comments
 (0)