add colors for dunst (#393)

Added TokyoNight colorscheme for [dunst](https://dunst-project.org/) notification daemon.
This commit is contained in:
Kristofers Solo
2023-06-17 09:25:01 +03:00
committed by GitHub
parent 1cef0bc16c
commit 690573c53c
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
local util = require("tokyonight.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
local dunst = util.template(
[[
# TokyoNight colors for dunst
# For more configuraion options see https://github.com/dunst-project/dunst/blob/master/dunstrc
[urgency_low]
background = "${bg_dark}"
foreground = "${fg}"
frame_color = "${fg}"
[urgency_normal]
background = "${bg}"
foreground = "${fg}"
frame_color = "${fg}"
[urgency_critical]
background = "${bg_highlight}"
foreground = "${error}"
frame_color = "${error}"
]],
colors
)
return dunst
end
return M

View File

@@ -22,6 +22,7 @@ M.extras = {
prism = {ext = "js", url = "https://prismjs.com", label = "Prism"}, prism = {ext = "js", url = "https://prismjs.com", label = "Prism"},
windows_terminal = {ext = "json", url = "https://aka.ms/terminal-documentation", label = "Windows Terminal"}, windows_terminal = {ext = "json", url = "https://aka.ms/terminal-documentation", label = "Windows Terminal"},
zathura = {ext = "zathurarc", url = "https://pwmt.org/projects/zathura/", label = "Zathura"}, zathura = {ext = "zathurarc", url = "https://pwmt.org/projects/zathura/", label = "Zathura"},
dunst = {ext = "dunstrc", url = "https://dunst-project.org/", label = "Dunst"},
} }
local function write(str, fileName) local function write(str, fileName)