diff options
-rw-r--r-- | cmus-widget/README.md | 2 | ||||
-rw-r--r-- | cmus-widget/cmus.lua | 3 |
2 files changed, 3 insertions, 2 deletions
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 |