Fix loading spoons
This commit is contained in:
parent
9a4c10442a
commit
1a92408077
@ -1,15 +1,15 @@
|
||||
(function()
|
||||
local hyper = { "ctrl", "alt", "cmd" }
|
||||
|
||||
windowMove = function()
|
||||
-- move window to next screen
|
||||
hs.hotkey.bind(hyper, "N", function()
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd" }, "N", function()
|
||||
local win = hs.window.focusedWindow()
|
||||
win:moveToScreen(win:screen():next())
|
||||
end)
|
||||
|
||||
for i = 1, 3 do
|
||||
hs.hotkey.bind(hyper, "pad" .. i, function()
|
||||
hs.window.focusedWindow():moveToScreen(i)
|
||||
hs.hotkey.bind({ "ctrl", "alt", "cmd" }, "pad" .. i, function()
|
||||
hs.window.focusedWindow():moveToScreen(hs.screen:allScreens()[i])
|
||||
end)
|
||||
end
|
||||
end)()
|
||||
end
|
||||
|
||||
windowMove()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
(function()
|
||||
windowTiling =function()
|
||||
hs.window.animationDuration = 0
|
||||
hs.window.setShadows(false)
|
||||
local hyper = { "ctrl", "alt", "cmd" }
|
||||
@ -150,4 +150,6 @@
|
||||
|
||||
hs.notify.show("Welcome to Hammerspoon", "Have fun!", "")
|
||||
|
||||
end)()
|
||||
end
|
||||
|
||||
windowTiling()
|
||||
|
||||
@ -43,6 +43,7 @@ in
|
||||
"${homedir}/.hammerspoon/init.lua" = {
|
||||
text = ''
|
||||
${builtins.readFile ./hammerspoon/window-tiling.lua}
|
||||
|
||||
${builtins.readFile ./hammerspoon/window-move.lua}
|
||||
'';
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user