local workWifi = 'company-wifi' local outputDeviceName = 'Built-in Output' hs.wifi.watcher.new(function() local currentWifi = hs.wifi.currentNetwork() local currentOutput = hs.audiodevice.current(false) ifnot currentWifi thenreturnend if (currentWifi == workWifi and currentOutput.name == outputDeviceName) then hs.audiodevice.findDeviceByName(outputDeviceName):setOutputMuted(true)
local changeMvnCommand="ln -sfn ~/.m2/settings_company.xml ~/.m2/settings.xml" hs.execute(shell_command)
hs.notify.new({title="HS Robot", informativeText="Connect to Company"}):send() end end):start()