From a1cd133f38ab5f6b3c80e4e74a0a45e1c6326b11 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 5 Nov 2023 17:16:23 -0600 Subject: Use beautiful.font or args.font for widgets --- mpdarc-widget/mpdarc.lua | 2 +- net-speed-widget/net-speed.lua | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mpdarc-widget/mpdarc.lua b/mpdarc-widget/mpdarc.lua index 609efbf..d5e6ae9 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 = beautiful.font2 or beautiful.font + font = beautiful.font or 'Play 9' } local update_graphic = function(widget, stdout, _, _, _) diff --git a/net-speed-widget/net-speed.lua b/net-speed-widget/net-speed.lua index 86b8d33..31c701f 100644 --- a/net-speed-widget/net-speed.lua +++ b/net-speed-widget/net-speed.lua @@ -55,11 +55,10 @@ local function worker(user_args) local args = user_args or {} - local font = args.font or beautiful.font2 or 'mononoki Nerd Font Mono 12' - + local font = args.font or beautiful.font local interface = args.interface or '*' local timeout = args.timeout or 1 - local width = args.width or 40 + local width = args.width or 100 net_speed_widget = wibox.widget { { -- cgit v1.2.3