# HG changeset patch # User Meredith Howard # Date 1487659951 18000 # Node ID a6a39c40658555f91fc3caee1e93ab9f68e31ba6 # Parent 42e8433b8a51c960986fb6848b4fc2c465d1ac6b Get new window focused diff --git a/.hammerspoon/init.lua b/.hammerspoon/init.lua --- a/.hammerspoon/init.lua +++ b/.hammerspoon/init.lua @@ -40,8 +40,8 @@ cmdCtrl('right', function () focusedWind cmd('return', function () hs.applescript.applescript([[ tell application "iTerm" - create window with default profile - activate + set newterm to (create window with default profile) + tell newterm to activate end tell ]]) end)