u/FabulousCoconut4097

Simple but cool gamma Increment function

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

Playing like this was such a treat!

Thanks you everyone who worked on 2ship2harkian

And MM Reloaded! I was great playing this again after almost 20 years!

u/FabulousCoconut4097 — 3 days ago