summaryrefslogtreecommitdiff
path: root/cmus-widget
diff options
context:
space:
mode:
authorAugusto Gunsch <augustogunsch@tutanota.com>2022-01-24 12:02:55 -0300
committerAugusto Gunsch <augustogunsch@tutanota.com>2022-01-24 12:02:55 -0300
commit14a91eb44e8f93a01d8e70b48b56463956967ea9 (patch)
tree91874a2a8342508ffbbbadaa5866704e83a9b854 /cmus-widget
parent4fbc8a85dfbdc23ffab92698eee2c2dca80423d3 (diff)
Use default theme font instead
Diffstat (limited to 'cmus-widget')
-rw-r--r--cmus-widget/README.md2
-rw-r--r--cmus-widget/cmus.lua3
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