theme: don't hardcode Terminus outside theme.lua

This commit is contained in:
Vincent Bernat 2020-04-11 08:02:30 +02:00
parent 714303e14c
commit 355f983fdb
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ local function client_info(c)
beautiful.fg_widget_value, tostring(c[inf[i]])) beautiful.fg_widget_value, tostring(c[inf[i]]))
end end
naughty.notify{ text = string.format('<span font="Terminus ' .. 8 * theme.scale .. '">%s</span>', v:sub(1,#v-1)), naughty.notify{ text = string.format('<span font="' .. theme.font .. '">%s</span>', v:sub(1,#v-1)),
timeout = 0, margin = 10, screen = c.screen } timeout = 0, margin = 10, screen = c.screen }
end end

View file

@ -62,7 +62,7 @@ local cal = (
calendar = naughty.notify( calendar = naughty.notify(
{ {
text = string.format('<span font="%s">%s</span>', text = string.format('<span font="%s">%s</span>',
"Terminus " .. 8 * theme.scale, theme.font,
cal:gsub(" +\n","\n")), cal:gsub(" +\n","\n")),
timeout = 0, hover_timeout = 0.5, timeout = 0, hover_timeout = 0.5,
width = 160 * theme.scale, width = 160 * theme.scale,