Skip to content

Commit

Permalink
Add shortcut to forge-gui
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Apr 7, 2024
1 parent bf0eb1d commit 68a9663
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions home/dot_hammerspoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ function launchOrFocus(app)
end
end

function runCommand(command)
return function()
hs.task.new(command, nil):start()
end
end

function moveFocusedWindowToScreen()
local window = hs.window.focusedWindow()
local screen = window:screen()
Expand Down Expand Up @@ -145,6 +151,7 @@ local bindings = {
f = launchOrFocus('Finder'),
i = launchOrFocus('Visual Studio Code'),
l = launchOrFocus('Telegram'),
j = runCommand("/Users/twp/bin/forge-gui"),
s = launchOrFocus('Slack'),
t = launchOrFocus('iTerm'),
w = launchOrFocus('WhatsApp'),
Expand Down

0 comments on commit 68a9663

Please sign in to comment.