Use default theme font instead

This commit is contained in:
Augusto Gunsch 2022-01-24 12:02:55 -03:00
parent 4fbc8a85df
commit 14a91eb44e
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ It is possible to customize the widget by providing a table with all or some of
| Name | Default | Description | | 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 | | `path_to_icons` | `/usr/share/icons/Arc/actions/symbolic/` | Alternative path for the icons |
| `timeout`| `10` | Refresh cooldown | | `timeout`| `10` | Refresh cooldown |
| `space` | `3` | Space between icon and track title | | `space` | `3` | Space between icon and track title |

View File

@ -10,13 +10,14 @@ local awful = require("awful")
local wibox = require("wibox") local wibox = require("wibox")
local watch = require("awful.widget.watch") local watch = require("awful.widget.watch")
local spawn = require("awful.spawn") local spawn = require("awful.spawn")
local beautiful = require('beautiful')
local cmus_widget = {} local cmus_widget = {}
local function worker(user_args) local function worker(user_args)
local args = user_args or {} 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 path_to_icons = args.path_to_icons or "/usr/share/icons/Arc/actions/symbolic/"
local timeout = args.timeout or 10 local timeout = args.timeout or 10