Most of what you are asking for can be done natively in Powershell and probably pythonperl and maybe even bash if you are feeling adventurous , and certainly if you dip in to . NETC #, but and I know nothing about LUA or Hammerspoon I suspect it might be a step further into coding than using LUA and it will carry it ' s own difficulties . For example checking for wifi SSID and enabling FW if it ' s not your home network $ HomeNetwork MyHomeWifi IF $ netsh wlan show interfaces SelectString ' sSSID ' ne $ HomeNetwork SetNetFirewallProfile Profile Domain , Public , Private Enabled $ True Thanks to rpowershell for some of the above . The problem you have is how do you schedule that . I can ' t think of any native mechanism and a quick google hasn ' t helped that will execute a scriptprocess on connection to a wireless network , so you ' d have to fall back on a regular schedule to run the above on a 1 minute schedule , or you would need a do . while loop to run this in the background constantly . And that is just this one task . Other taks that will have similar limitations . Each can be navigated but in all probability you ' d have to devise a different solution to each specific requirement , some you will be able to trigger neatly on an event , others will need some hackery to get it to operate , others still will need some third party element to get it to function as you need . Whilst I suspect that these challenges exist in hammerspoon too it ' s been this barrier to entry that ' s kept me from trying to setup some of these automations that you are aiming to get to . I ' d be interested to hear how you get on with this though .