summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-28 21:49:58 -0600
committerzachir <zachir@librem.one>2023-02-28 21:49:58 -0600
commitde62d9b99980c864ff7d32c6e62cfa29cea67fea (patch)
tree7ce855b9914bfe2da26ac121241b2df1f92bff47
parent9a987adf05ae0d241d22fbb0ee142fbefa76a138 (diff)
add setting to use font2 or smaller font
-rw-r--r--mpdarc-widget/mpdarc.lua2
-rw-r--r--net-speed-widget/net-speed.lua2
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