Skip to content

Commit

Permalink
feat(darwin): use hammerspoon instead of keyboard maestro
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 1, 2023
1 parent 7794ca1 commit ee01165
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/darwin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"iina"
"imageoptim"
"keybase"
"keyboard-maestro"
"ledger-live"
"monodraw"
"notion"
Expand Down
20 changes: 20 additions & 0 deletions modules/hammerspoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,23 @@ hotkey.bind(hyper, "K", function()

win:setFrame(f)
end)

hotkey.bind(hyper, "Y", function()
hs.application.launchOrFocus("Music")
end)

hotkey.bind(hyper, "U", function()
hs.application.launchOrFocus("WezTerm")
end)

hotkey.bind(hyper, "I", function()
hs.application.launchOrFocus("Safari")
end)

hotkey.bind(hyper, "O", function()
hs.application.launchOrFocus("Notes")
end)

hotkey.bind(hyper, "P", function()
hs.application.launchOrFocus("Discord")
end)

0 comments on commit ee01165

Please sign in to comment.