[meta] Add Hammerspoon config, move linked .gitignore

pull/28/head
Alpha Chen 10 years ago
parent 43d31490f3
commit a5bcfbbcfa

@ -0,0 +1,18 @@
hs.hotkey.bind({"cmd", "shift"}, "{", function()
current_app():selectMenuItem({"Window", "Select Previous Tab"})
end)
hs.hotkey.bind({"cmd", "shift"}, "}", function()
current_app():selectMenuItem({"Window", "Select Previous Tab"})
end)
function current_app()
return hs.window.application()
end
function reload_config(files)
hs.reload()
end
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", reload_config):start()
hs.alert.show("Config loaded")

@ -19,7 +19,7 @@
with_items: stow with_items: stow
tags: stow tags: stow
- file: - file:
src: "{{ ansible_env.HOME }}/.dotfiles/{{ item.key }}" src: ~/.dotfiles/{{ item.key }}
dest: "{{ ansible_env.HOME}}/{{ item.value }}" dest: "{{ item.value }}"
state: link state: link
with_dict: ln with_dict: ln

@ -6,4 +6,5 @@ stow:
- tmux - tmux
- vim - vim
ln: ln:
git/.gitignore: .gitignore gitignore: ~/.gitignore
.hammerspoon: ~/.hammerspoon

Loading…
Cancel
Save