Hammerspoon!

This commit is contained in:
Anthony Cicchetti 2020-05-13 20:57:11 -04:00
parent a2b00dee59
commit 48a96d3f58
3 changed files with 39 additions and 1 deletions

View file

@ -2,7 +2,7 @@
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
;; (package-refresh-contents)
(package-refresh-contents)
(custom-set-variables
;; custom-set-variables was added by Custom.

13
hammerspoon/init.lua Normal file
View file

@ -0,0 +1,13 @@
hs.loadSpoon("SpoonInstall")
spoon.SpoonInstall.use_syncinstall = true
spoon.SpoonInstall:andUse("WindowScreenLeftAndRight")
spoon.SpoonInstall:andUse("WindowHalfsAndThirds")
spoon.SpoonInstall:andUse("Commander")
spoon.WindowScreenLeftAndRight:bindHotkeys(spoon.WindowScreenLeftAndRight.defaultHotkeys)
spoon.WindowHalfsAndThirds:bindHotkeys(spoon.WindowHalfsAndThirds.defaultHotkeys)
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "SPACE", function ()
spoon.Commander.show()
end)

View file

@ -15,3 +15,28 @@
name: zsh
install_options: with-gdbm with-pcre with-unicode9
- name: Homebrew - Install Hammerspoon
homebrew_cask:
name: Hammerspoon
- name: Hammerspoon - Create Directory
file:
path: ~/.hammerspoon/Spoons
state: directory
- name: Hammerspoon - Symlink init.lua
file:
src: ~/.dotfiles/hammerspoon/init.lua
dest: ~/.hammerspoon/init.lua
state: link
- name: Hammerspoon - Get SpoonInstall
get_url:
url: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/SpoonInstall.spoon.zip
dest: /tmp/SpoonInstall.spoon.zip
- name: Hammerspoon - Unzip SpoonInstall
unarchive:
src: /tmp/SpoonInstall.spoon.zip
dest: ~/.hammerspoon/Spoons/
creates: ~/.hammerspoon/Spoons/SpoonInstall.spoon