From 14a91eb44e8f93a01d8e70b48b56463956967ea9 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Mon, 24 Jan 2022 12:02:55 -0300 Subject: Use default theme font instead --- cmus-widget/README.md | 2 +- cmus-widget/cmus.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cmus-widget') diff --git a/cmus-widget/README.md b/cmus-widget/README.md index c24d975..b1fecb9 100644 --- a/cmus-widget/README.md +++ b/cmus-widget/README.md @@ -42,7 +42,7 @@ It is possible to customize the widget by providing a table with all or some of | Name | Default | Description | |---|---|---| -| `font` | `Play 9` | Font used for the track title | +| `font` | `beautiful.font` | Font name and size, like `Play 12` | | `path_to_icons` | `/usr/share/icons/Arc/actions/symbolic/` | Alternative path for the icons | | `timeout`| `10` | Refresh cooldown | | `space` | `3` | Space between icon and track title | diff --git a/cmus-widget/cmus.lua b/cmus-widget/cmus.lua index 102655b..2ffa872 100644 --- a/cmus-widget/cmus.lua +++ b/cmus-widget/cmus.lua @@ -10,13 +10,14 @@ local awful = require("awful") local wibox = require("wibox") local watch = require("awful.widget.watch") local spawn = require("awful.spawn") +local beautiful = require('beautiful') local cmus_widget = {} local function worker(user_args) local args = user_args or {} - local font = args.font or "Play 9" + local font = args.font or beautiful.font local path_to_icons = args.path_to_icons or "/usr/share/icons/Arc/actions/symbolic/" local timeout = args.timeout or 10 -- cgit v1.2.3