[hammerspoon] handle Zoom URLs

Also update Ansible so Fennel works
pull/30/head
Alpha Chen 4 years ago
parent 7bafb373d6
commit 1a28f75039

@ -13,5 +13,11 @@
(hs.hotkey.bind mash "h" (fn [] (move :left))) (hs.hotkey.bind mash "h" (fn [] (move :left)))
(hs.hotkey.bind mash "l" (fn [] (move :right))) (hs.hotkey.bind mash "l" (fn [] (move :right)))
(hs.hotkey.bind mash "m" (fn [] (move :max))) (hs.hotkey.bind mash "m" (fn [] (move :max)))
;; defeat paste blocking
(hs.hotkey.bind [:cmd :alt] "v" (fn [] (hs.eventtap.keyStrokes (hs.pasteboard.getContents))))) (hs.hotkey.bind [:cmd :alt] "v" (fn [] (hs.eventtap.keyStrokes (hs.pasteboard.getContents)))))
(set hs.urlevent.httpCallback (fn [scheme host params fullURL]
(if (string.find fullURL "^https?://.*[.]zoom.us/j/%d+")
(hs.urlevent.openURLWithBundle fullURL "us.zoom.xos")
(hs.urlevent.openURLWithBundle fullURL "org.mozilla.firefoxdeveloperedition"))))

@ -16,6 +16,9 @@
- hosts: os_MacOSX - hosts: os_MacOSX
roles: roles:
- role: osx - role: osx
tasks:
- name: install fennel
command: luarocks install fennel
- hosts: all - hosts: all
roles: roles:

@ -30,6 +30,7 @@
- git-lfs - git-lfs
- hledger - hledger
- jq - jq
- luarocks
- macvim - macvim
- mas - mas
- mosh - mosh

Loading…
Cancel
Save