From f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 Mon Sep 17 00:00:00 2001 From: delta Date: Fri, 12 May 2023 16:18:24 +0200 Subject: restructure services, add get_essid to quarrel.native and other wip work --- .config/awesome/quarrel/math.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config/awesome/quarrel/math.lua') diff --git a/.config/awesome/quarrel/math.lua b/.config/awesome/quarrel/math.lua index bc1f53b..886ce13 100644 --- a/.config/awesome/quarrel/math.lua +++ b/.config/awesome/quarrel/math.lua @@ -1,6 +1,9 @@ local qmath = {} function qmath.step_value(value, steps) + if value > steps[#steps - 1][1] then + return steps[#steps - 1][2] + end for i, step in ipairs(steps) do if step[1] <= value and value <= steps[i + 1][1] then return step[2] -- cgit v1.2.3