
▲ 11 r/hyprland
Simple but cool gamma Increment function
local current_amount = 100
local function gamma(delta)
current_amount = current_amount + delta
current_amount = math.max(0, math.min(100, current_amount))
hl.dispatch(hl.dsp.exec_cmd("hyprctl hyprsunset gamma " .. current_amount))
hl.notification.create({
text = "Gamma: " .. current_amount .. "%",
duration = 2000,})
end
hl.bind("SUPER + equal", function() gamma(5) end)
hl.bind("SUPER + minus", function() gamma(-5) end)
u/FabulousCoconut4097 — 1 day ago