Skip to content

Commit

Permalink
Use default theme font instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Augusto Gunsch committed Jan 24, 2022
1 parent 4fbc8a8 commit 14a91eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmus-widget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
3 changes: 2 additions & 1 deletion cmus-widget/cmus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14a91eb

Please sign in to comment.