-- System_Tweaks.lua -- Disable Time Machine throttling silently local function disableTMThrottling() -- Use hs.execute to run the command directly via sudo -- Since we added the NOPASSWD rule, this will be silent and instant local output, status, type, rc = hs.execute("sudo /usr/sbin/sysctl debug.lowpri_throttle_enabled=0", true) if status then hs.notify.new({title="Hammerspoon", informativeText="Time Machine unthrottled (Silent)."}):send() else print("Sudo Error: " .. output) end end -- Run on Hammerspoon load/reload disableTMThrottling()