summaryrefslogtreecommitdiff
path: root/brightness-widget/brightness.lua
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2022-04-15 17:16:10 -0400
committerGitHub <noreply@github.com>2022-04-15 17:16:10 -0400
commit2043d21cb5af7070b505364b799ffbf85a9e594a (patch)
treebaf7e3e41460ed8e659a2007796a1dfb2fd168ad /brightness-widget/brightness.lua
parentc238098a0d65bb6fe35daddfda8d3281ea039735 (diff)
parent779485872c9f683de9abb42f9b32b0acf9d1483b (diff)
Merge pull request #334 from augustogunsch/brightness_font
Brightness widget - Use by default theme font
Diffstat (limited to 'brightness-widget/brightness.lua')
-rw-r--r--brightness-widget/brightness.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua
index b0d98cf..3a77a44 100644
--- a/brightness-widget/brightness.lua
+++ b/brightness-widget/brightness.lua
@@ -13,6 +13,7 @@ local wibox = require("wibox")
local watch = require("awful.widget.watch")
local spawn = require("awful.spawn")
local naughty = require("naughty")
+local beautiful = require("beautiful")
local ICON_DIR = os.getenv("HOME") .. '/.config/awesome/awesome-wm-widgets/brightness-widget/'
local get_brightness_cmd
@@ -35,7 +36,7 @@ local function worker(user_args)
local type = args.type or 'arc' -- arc or icon_and_text
local path_to_icon = args.path_to_icon or ICON_DIR .. 'brightness.svg'
- local font = args.font or 'Play 9'
+ local font = args.font or beautiful.font
local timeout = args.timeout or 100
local program = args.program or 'light'