chore: enforce config placement

This commit is contained in:
2025-11-08 22:46:42 +01:00
parent b3716b7de0
commit c0465c7f26
3 changed files with 15 additions and 9 deletions

View File

@@ -14,11 +14,6 @@
Edit the `config` table below to tune timeouts, restore behavior, minimum brightness, LED device detection, and the `brightnessctl` binary path.
]]
local mp = require("mp")
local msg = require("mp.msg")
local utils = require("mp.utils")
local jit = rawget(_G, "jit")
local config = {
timeout_ms = 3000,
restore_on_pause = true,
@@ -28,6 +23,13 @@ local config = {
brightnessctl_path = "brightnessctl",
}
-- No edits are required below unless you want to change script behavior.
local mp = require("mp")
local msg = require("mp.msg")
local utils = require("mp.utils")
local jit = rawget(_G, "jit")
local function coerce_boolean(value, default)
if type(value) == "boolean" then
return value