I actually specifically use this tool because I have been unable to do this through Hammerspoon without resorting to AppleScript GUI scripting of the preferences pane. This is much more elegant, though I would definitely love it if this functionality were manageable through Lua scripts.
How, in this specific example?
I've been looking at hammerspoon recently and would also love to know how!