Skip to content

Commit

Permalink
Update hammerspoon
Browse files Browse the repository at this point in the history
  • Loading branch information
bravmi committed Dec 17, 2024
1 parent d65fa91 commit 04ee109
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hammerspoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ end

hs.audiodevice.watcher.setCallback(AudioDeviceWatcherCallback)
hs.audiodevice.watcher:start()

---

local slackAppName = "Slack"

hs.hotkey.bind({ "cmd" }, "K", function()
local focusedApp = hs.application.frontmostApplication()
if focusedApp:name() == slackAppName then
hs.eventtap.keyStroke({ "cmd", "shift" }, "U")
end
end)

0 comments on commit 04ee109

Please sign in to comment.