aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2021-02-04 10:45:14 -0600
committerMatt Singleton <matt@xcolour.net>2021-02-04 10:45:14 -0600
commit9ec86efc56ecdbcaf6ee0626f928c16c266cda2c (patch)
treed71a000bd12059c4b47f5157bd4b8a5797275f1c
parentbfb0dd39dbf5c9b281abb7fce8b4f60bca0e7708 (diff)
remove hammerspoon config
-rwxr-xr-xdeploy.sh2
-rw-r--r--hammerspoon/init.lua44
2 files changed, 1 insertions, 45 deletions
diff --git a/deploy.sh b/deploy.sh
index ae88db5..b76e531 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -23,7 +23,7 @@ do
done
cd ..
-for f in vimrc gvimrc gitconfig gitignore zshrc zsh dircolors.conf hammerspoon
+for f in vimrc gvimrc gitconfig gitignore zshrc zsh dircolors.conf
do
if [ -e ~/.${f} ]; then
mv ~/.${f} dotfiles-backup/${f}
diff --git a/hammerspoon/init.lua b/hammerspoon/init.lua
deleted file mode 100644
index 9460093..0000000
--- a/hammerspoon/init.lua
+++ /dev/null
@@ -1,44 +0,0 @@
-local window = require "hs.window"
-local hotkey = require "hs.hotkey"
-local geom = require "hs.geometry"
-
-window.animationDuration = 0
-
-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
- local screen_frame = win:screen():frame()
- local new_geom = geom.copy(win:frame())
- new_geom.w = 1280
- new_geom.h = screen_frame.h
- new_geom.center = screen_frame.center
- win:setFrame(new_geom)
- end
-end)
-
-hotkey.bind({"alt"}, "r", function()
- hs.reload()
-end)
-
-hotkey.bind({"alt"}, "c", function()
- hs.openConsole()
-end)