From f97262188b674b170309a330adae6f5211373920 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 16 Apr 2016 12:06:16 -0400 Subject: switch from mjolnir to hammerspoon for mac window management --- mjolnir/init.lua | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 mjolnir/init.lua (limited to 'mjolnir') diff --git a/mjolnir/init.lua b/mjolnir/init.lua deleted file mode 100644 index 5b9bad4..0000000 --- a/mjolnir/init.lua +++ /dev/null @@ -1,38 +0,0 @@ -local application = require "mjolnir.application" -local window = require "mjolnir.window" -local hotkey = require "mjolnir.hotkey" -local fnutils = require "mjolnir.fnutils" - -hotkey.bind({"alt"}, "0", function() - local win = window.focusedwindow() - win:maximize() -end) - -hotkey.bind({"alt"}, "left", function() - local win = window.focusedwindow() - if win ~= nil then - win:movetounit({x=0, y=0, w=0.5, h=1}) - end -end) - -hotkey.bind({"alt"}, "right", function() - local win = window.focusedwindow() - if win ~= nil then - win:movetounit({x=0.5, y=0, w=0.5, h=1}) - end -end) - -hotkey.bind({"alt"}, "down", function() - local win = window.focusedwindow() - if win ~= nil then - win:movetounit({x=0.167, y=0, w=0.666, h=1}) - end -end) - -hotkey.bind({"alt"}, "r", function() - mjolnir:reload() -end) - -hotkey.bind({"alt"}, "c", function() - mjolnir.openconsole() -end) -- cgit v1.2.3