I think it's the best of these type of projects, and would love to see more people using it / developing and sharing scripts.
I think it's the best of these type of projects, and would love to see more people using it / developing and sharing scripts.
One thing i couldn't replicate yet in hammerspoon (among other things) is clicking: https://wiki.keyboardmaestro.com/action/Find_Image_on_Screen incredibly useful
- switch recipients in Franz.app
- click on menubar items
- import current page into devonthink (requires a click on a toolbar item to start the automation)
- toggle flux (click on menubar item and go down etc)
- adding tags in delibar (click on the Nth suggested tag)
- click on toolbar items in all possible apps when there is no keyboard shortcut/menu item availableiTerm2's hotkey is pretty terrible in my opinion. I've bound this function to make it work for me:
function iTermHotkeyHandler()
local iterm = hs.application.get('iTerm2')
if (iterm) then
local window = iterm:mainWindow()
if not window then
if iterm:selectMenuItem('New Window') then
window = iterm:mainWindow()
end
return
end
if iterm:isFrontmost() then
iterm:hide()
else
window:focus()
end
end
end
hs.hotkey.bind('cmd', 'space', iTermHotkeyHandler)
*me: I really should put these in some gist somewhere. function muteSpotifyOnAd()
if (hs.spotify.isRunning()) then
if (hs.spotify.getCurrentTrack():lower() == 'spotify') then
hs.spotify.setVolume(0)
else
hs.spotify.setVolume(100)
end
end
end
hs.timer.doEvery(10, muteSpotifyOnAd)It’s like switching TV channels when the ad plays.
In analog media, close to no one ever listened to / watched ads, due to exactly that – many VHS recorders would even automatically skip them.
I can still sing jingles I learned from watching TV ads in the 70s.
- Hyper-1 through 5 to defer tasks in OmniFocus (calls out to an external script).
- Hyper-W to lock my screen.
- Hyper-M to mute skype microphone.
- Hyper-[C,T,X,F] to focus Chrome, TaskPaper, nvAlt and iTerm.
Did you forget to include some extra constraint? As written, it looks like the answer to your question is "Yes, Hammerspoon."