Merge pull request #374 from 0x501D/fix_luacheck_warnings
Fix luacheck warnings
This commit is contained in:
commit
8c2e57347e
|
@ -57,10 +57,10 @@ local function worker(user_args)
|
|||
inc_brightness_cmd = 'xbacklight -inc ' .. step
|
||||
dec_brightness_cmd = 'xbacklight -dec ' .. step
|
||||
elseif program == 'brightnessctl' then
|
||||
get_brightness_cmd = "brightnessctl get"
|
||||
set_brightness_cmd = "brightnessctl set %d%%" -- <level>
|
||||
inc_brightness_cmd = "brightnessctl set +" .. step .. "%"
|
||||
dec_brightness_cmd = "brightnessctl set " .. step .. "-%"
|
||||
get_brightness_cmd = "brightnessctl get"
|
||||
set_brightness_cmd = "brightnessctl set %d%%" -- <level>
|
||||
inc_brightness_cmd = "brightnessctl set +" .. step .. "%"
|
||||
dec_brightness_cmd = "brightnessctl set " .. step .. "-%"
|
||||
else
|
||||
show_warning(program .. " command is not supported by the widget")
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue