[hammerspoon] handle Zoom URLs
Also update Ansible so Fennel works
change
commit 1a28f750394fe16ed75b971c2e88a974ad438617
author Alpha Chen <alpha@kejadlen.dev>
date
parent 7bafb373
diff --git a/.hammerspoon/init.fnl b/.hammerspoon/init.fnl
index fbc7da89..8a4ba3e6 100644
--- a/.hammerspoon/init.fnl
+++ b/.hammerspoon/init.fnl
@@ -13,5 +13,11 @@
   (hs.hotkey.bind mash "h" (fn [] (move :left)))
   (hs.hotkey.bind mash "l" (fn [] (move :right)))
   (hs.hotkey.bind mash "m" (fn [] (move :max)))
+
+  ;; defeat paste blocking
   (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"))))
diff --git a/ansible/main.yml b/ansible/main.yml
index 9eb07dbd..d40eb4fd 100644
--- a/ansible/main.yml
+++ b/ansible/main.yml
@@ -16,6 +16,9 @@
 - hosts: os_MacOSX
   roles:
     - role: osx
+  tasks:
+    - name: install fennel
+      command: luarocks install fennel
 
 - hosts: all
   roles:
diff --git a/ansible/playbooks/homebrew.yml b/ansible/playbooks/homebrew.yml
index 9c9086bb..acce42c2 100644
--- a/ansible/playbooks/homebrew.yml
+++ b/ansible/playbooks/homebrew.yml
@@ -30,6 +30,7 @@
         - git-lfs
         - hledger
         - jq
+        - luarocks
         - macvim
         - mas
         - mosh