From de62d9b99980c864ff7d32c6e62cfa29cea67fea Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 28 Feb 2023 21:49:58 -0600 Subject: add setting to use font2 or smaller font --- mpdarc-widget/mpdarc.lua | 2 +- net-speed-widget/net-speed.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mpdarc-widget/mpdarc.lua b/mpdarc-widget/mpdarc.lua index c6a6f16..a6a8e75 100644 --- a/mpdarc-widget/mpdarc.lua +++ b/mpdarc-widget/mpdarc.lua @@ -50,7 +50,7 @@ local mpdarc_icon_widget = wibox.container.mirror(mpdarc, { horizontal = true }) local mpdarc_current_song_widget = wibox.widget { id = 'current_song', widget = wibox.widget.textbox, - font = 'mononoki Nerd Font Mono 12' + font = beautiful.font2 or beautiful.font } local update_graphic = function(widget, stdout, _, _, _) diff --git a/net-speed-widget/net-speed.lua b/net-speed-widget/net-speed.lua index 248e913..daa218a 100644 --- a/net-speed-widget/net-speed.lua +++ b/net-speed-widget/net-speed.lua @@ -55,7 +55,7 @@ local function worker(user_args) local args = user_args or {} - local font = args.font or 'mononoki Nerd Font Mono 1' + local font = args.font or beautiful.font2 or 'mononoki Nerd Font Mono 12' local interface = args.interface or '*' local timeout = args.timeout or 1 -- cgit v1.2.3