Skip to content

Commit 5234358

Browse files
committed
feat(brightness-widget): add size and arc_thickness options
1 parent 60fb36e commit 5234358

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

brightness-widget/brightness.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ local function worker(user_args)
3939
local path_to_icon = args.path_to_icon or ICON_DIR .. 'brightness.svg'
4040
local font = args.font or beautiful.font
4141
local timeout = args.timeout or 100
42+
local size = args.size or 18
43+
local arc_thickness = args.arc_thickness or 2
4244

4345
local program = args.program or 'light'
4446
local step = args.step or 5
@@ -105,10 +107,10 @@ local function worker(user_args)
105107
layout = wibox.container.place
106108
},
107109
max_value = 100,
108-
thickness = 2,
110+
thickness = arc_thickness,
109111
start_angle = 4.71238898, -- 2pi*3/4
110-
forced_height = 18,
111-
forced_width = 18,
112+
forced_height = size,
113+
forced_width = size,
112114
paddings = 2,
113115
widget = wibox.container.arcchart,
114116
set_value = function(self, level)

0 commit comments

Comments
 (0)