Created
March 18, 2019 11:00
-
-
Save technovangelist/515e2f381cc69edc671fdbb45d987932 to your computer and use it in GitHub Desktop.
Spotlight Remote Loader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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