Files
hammerspoon/System_Tweaks.lua
T
2026-05-14 18:59:23 -04:00

16 lines
592 B
Lua

-- 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()