Skip to content

Commit

Permalink
feat(hammerspoon): update keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
aai-oli committed Dec 4, 2024
1 parent 4eaa375 commit a987ef8
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .config/hammerspoon/keymaps.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
local hyper = Hyper
local host = require("hs.host")
local on_personal = host.names()[1] == "Oli"

------------------------------- APP LAUNCH/TOGGLE ------------------------------
--[[
Expand All @@ -7,20 +9,28 @@ local hyper = Hyper
this, a table can be passed which contains the app name followed by the filename
]]
local apps = {
b = "Safari", -- Browser
c = "Code", -- VS Code
e = "Microsoft Excel",
f = "Finder",
g = "Google Chrome",
n = "Bear", -- Notes
o = "Notion", -- Life OS
p = "1Password",
r = "Reminders",
t = "WezTerm", -- Terminal
w = "Microsoft Word",
-- z = RESERVED
}

if on_personal then
apps.b = "Safari" -- Browser
apps.p = "1Password"
apps.w = "Microsoft Word"
else
apps.b = "Google Chrome" -- Browser
apps.m = "Microsoft Outlook" -- Mail
apps.p = "Microsoft PowerPoint"
apps.w = "Windows App"
apps.z = "Zoom"
end

local LaunchOrToggle = function(key, app_name, app_filename)
hs.hotkey.bind(hyper, key, function()
local app = hs.application.find(app_name)
Expand Down

0 comments on commit a987ef8

Please sign in to comment.