Initial commit of Hammerspoon config

This commit is contained in:
Franco Pellicciotti
2026-05-14 18:59:23 -04:00
commit 8a9f5c37ff
683 changed files with 180195 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
-- 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()