Skip to content

Instantly share code, notes, and snippets.

@technovangelist
Created March 18, 2019 11:00
Show Gist options
  • Save technovangelist/515e2f381cc69edc671fdbb45d987932 to your computer and use it in GitHub Desktop.
Save technovangelist/515e2f381cc69edc671fdbb45d987932 to your computer and use it in GitHub Desktop.
Spotlight Remote Loader
local slmb = hs.menubar.new()
slmb:setIcon("spotlightremoteicon.png")
function cyclespotlight()
local spotlightapp = hs.application.get("LogiPresentation")
if spotlightapp == nil or spotlightapp == '' then
hs.alert.show('Launching Spotlight Remote')
hs.application.open('/Library/Application Support/Logitech.localized/Logitech Presentation.localized/Logitech Presentation.app/Contents/MacOS/Logitech Presentation')
else
hs.alert.show('Killing Spotlight Remote')
spotlightapp:kill()
end
end
slmb:setClickCallback(cyclespotlight)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment