From 530c110db764391f008355ccf49df87e2a76afe5 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 6 Feb 2024 21:10:47 -0800 Subject: [PATCH] =?UTF-8?q?remove=20=E2=87=A7=E2=8C=98C=20copy=20url=20key?= =?UTF-8?q?binding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hammerspoon/init.fnl | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.hammerspoon/init.fnl b/.hammerspoon/init.fnl index 7b7b95e..496c183 100644 --- a/.hammerspoon/init.fnl +++ b/.hammerspoon/init.fnl @@ -54,20 +54,20 @@ (with-selection #(.. "[" $1 "]" "(" $2 ")")))]]) ;; cmd-shift-c: copy current url -(let [{: activated : deactivated} application.watcher - firefox (hotkey.new [:cmd :shift] :c #(eventtap.keyStrokes :yy)) - safari-applescript "tell application \"Safari\" to get URL of front document" - safari (hotkey.new [:cmd :shift] :c - #(let [(_ obj _) (osascript.applescript safari-applescript)] - (pasteboard.setContents obj))) - per-app {"Firefox Developer Edition" firefox :Safari safari} - update-app (fn [name event _app] - (match [(. per-app name) event] - [app-config activated] (app-config:enable) - [app-config deactivated] (app-config:disable))) - watcher (application.watcher.new update-app)] - ;; hold onto watcher as a global so it doesn't get GC'ed - (set _G.per-app-watcher (watcher:start))) +; (let [{: activated : deactivated} application.watcher +; firefox (hotkey.new [:cmd :shift] :c #(eventtap.keyStrokes :yy)) +; safari-applescript "tell application \"Safari\" to get URL of front document" +; safari (hotkey.new [:cmd :shift] :c +; #(let [(_ obj _) (osascript.applescript safari-applescript)] +; (pasteboard.setContents obj))) +; per-app {"Firefox Developer Edition" firefox :Safari safari} +; update-app (fn [name event _app] +; (match [(. per-app name) event] +; [app-config activated] (app-config:enable) +; [app-config deactivated] (app-config:disable))) +; watcher (application.watcher.new update-app)] +; ;; hold onto watcher as a global so it doesn't get GC'ed +; (set _G.per-app-watcher (watcher:start))) ;;; Elgato Key Light Air