From 355f983fdb7c7aee1b755c2b6e03a7713419f280 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 11 Apr 2020 08:02:30 +0200 Subject: [PATCH] theme: don't hardcode Terminus outside theme.lua --- rc/debug.lua | 2 +- rc/widgets.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/debug.lua b/rc/debug.lua index 23cef2b..2dd128a 100644 --- a/rc/debug.lua +++ b/rc/debug.lua @@ -33,7 +33,7 @@ local function client_info(c) beautiful.fg_widget_value, tostring(c[inf[i]])) end - naughty.notify{ text = string.format('%s', v:sub(1,#v-1)), + naughty.notify{ text = string.format('%s', v:sub(1,#v-1)), timeout = 0, margin = 10, screen = c.screen } end diff --git a/rc/widgets.lua b/rc/widgets.lua index 8599014..d067e07 100644 --- a/rc/widgets.lua +++ b/rc/widgets.lua @@ -62,7 +62,7 @@ local cal = ( calendar = naughty.notify( { text = string.format('%s', - "Terminus " .. 8 * theme.scale, + theme.font, cal:gsub(" +\n","\n")), timeout = 0, hover_timeout = 0.5, width = 160 * theme.scale,