summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-11-05 17:16:23 -0600
committerzachir <zachir@librem.one>2023-11-05 17:16:23 -0600
commita1cd133f38ab5f6b3c80e4e74a0a45e1c6326b11 (patch)
tree87aa9e750e9b5778d34e45be0fe51803938dad40
parent6ca46530b2c59d21ec83cb86a2dfc07f1e00f073 (diff)
Use beautiful.font or args.font for widgets
-rw-r--r--mpdarc-widget/mpdarc.lua2
-rw-r--r--net-speed-widget/net-speed.lua5
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 {
{