From a2f43302e1524cc8fe38791e0fdc00a3695fb76b Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 17 May 2024 10:05:29 +0200 Subject: updates --- .hammerspoon/init.lua | 48 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 8 deletions(-) (limited to '.hammerspoon/init.lua') diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua index f4ee5d1..234f316 100644 --- a/.hammerspoon/init.lua +++ b/.hammerspoon/init.lua @@ -1,10 +1,42 @@ local hyper = require("hyper") +hyper.install("F18") -hyper.bindApp({}, "a", "Arc") -hyper.bindApp({}, "w", "Warp") -hyper.bindApp({}, "s", "Slack") -hyper.bindApp({}, "1", "1Password") -hyper.bindApp({}, "r", "Rize") -hyper.bindApp({}, "d", "Obsidian") -hyper.bindApp({}, "c", "Google Chrome") -hyper.bindApp({}, "t", "Notification Center") +hyper.bindKey("a", function() + hs.application.launchOrFocus("Arc") +end) + +hyper.bindKey("w", function() + hs.application.launchOrFocus("Warp") +end) + +hyper.bindKey("e", function() + hs.application.launchOrFocus("iTerm") +end) + +hyper.bindKey("s", function() + hs.application.launchOrFocus("Slack") +end) + +hyper.bindKey("1", function() + hs.application.launchOrFocus("1Password") +end) + +hyper.bindKey("r", function() + hs.application.launchOrFocus("Rize") +end) + +hyper.bindKey("d", function() + hs.application.launchOrFocus("Obsidian") +end) + +hyper.bindKey("c", function() + hs.application.launchOrFocus("Google Chrome") +end) + +hyper.bindKey("t", function() + hs.application.launchOrFocus("Notification Center") +end) + +hyper.bindKey("m", function() + hs.application.launchOrFocus("Messages") +end) -- cgit v1.2.3