.hammerspoon/init.lua

changeset 500
efce0f59ef14
parent 495
31fc84fa156c
child 520
a6a39c406585
equal deleted inserted replaced
499:47fcadea275e 500:efce0f59ef14
37 cmdCtrl('left', function () focusedWindow():moveOneScreenWest() end) 37 cmdCtrl('left', function () focusedWindow():moveOneScreenWest() end)
38 cmdCtrl('right', function () focusedWindow():moveOneScreenEast() end) 38 cmdCtrl('right', function () focusedWindow():moveOneScreenEast() end)
39 39
40 cmd('return', function () 40 cmd('return', function ()
41 hs.applescript.applescript([[ 41 hs.applescript.applescript([[
42 tell application "iTerm2" 42 tell application "iTerm"
43 create window with default profile 43 create window with default profile
44 activate
44 end tell 45 end tell
45 ]]) 46 ]])
46 end) 47 end)
47 48
49 -- cache window frames before moving?
50 -- save cache?
51 -- focus by direction is a little strict
52

mercurial