Skip to content

Commit

Permalink
add app to opener shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
brettinternet committed Mar 19, 2024
1 parent a6a1b00 commit 6a92e14
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions mac/.hammerspoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ prefix:bind('', 'S', prefixFn(function() launchFocusOrSwitchBack("com.spotify.cl
prefix:bind('', 'F', prefixFn(function() launchFocusOrSwitchBack("com.apple.finder") end))
prefix:bind('', 'C', prefixFn(function() launchFocusOrSwitchBack("com.microsoft.VSCode") end))
prefix:bind('', 'X', prefixFn(function() launchFocusOrSwitchBack("com.googlecode.iterm2") end))
prefix:bind('', 'D', prefixFn(function() launchFocusOrSwitchBack("com.tinyspeck.slackmacgap") end))
prefix:bind('', 'A', prefixFn(function() launchFocusOrSwitchBack("com.tinyspeck.slackmacgap") end))
prefix:bind('', 'D', prefixFn(function() launchFocusOrSwitchBack("com.hnc.Discord") end))

-- System
prefix:bind('cmd', 'L', prefixFn(function() hs.caffeinate.lockScreen() end))
Expand All @@ -69,14 +70,14 @@ prefix:bind('cmd', 'C', prefixFn(function()
end))

-- Info helpers
prefix:bind('cmd', 'B', function()
prefix:bind('cmd', 'B', prefixFn(function()
hs.pasteboard.setContents(hs.application.frontmostApplication():bundleID())
hs.alert.show("BundleID Copied") prefix:exit()
end)
prefix:bind('cmd', 'D', function()
hs.alert.show("BundleID Copied")
end))
prefix:bind('cmd', 'D', prefixFn(function()
hs.pasteboard.setContents(hs.application.frontmostApplication():title())
hs.alert.show("Title Copied") prefix:exit()
end)
hs.alert.show("Title Copied")
end))


-- Get around paste blockers with cmd+alt+v
Expand Down

0 comments on commit 6a92e14

Please sign in to comment.