aboutsummaryrefslogtreecommitdiffstats
path: root/hammerspoon/.hammerspoon
diff options
context:
space:
mode:
Diffstat (limited to 'hammerspoon/.hammerspoon')
-rw-r--r--hammerspoon/.hammerspoon/init.fnl9
1 files changed, 9 insertions, 0 deletions
diff --git a/hammerspoon/.hammerspoon/init.fnl b/hammerspoon/.hammerspoon/init.fnl
index 05422a6..3aa6b4f 100644
--- a/hammerspoon/.hammerspoon/init.fnl
+++ b/hammerspoon/.hammerspoon/init.fnl
@@ -8,6 +8,15 @@
(hs.hotkey.bind ["cmd" "alt" "ctrl"] "e" show-window-information)
(hs.hotkey.bind ["cmd" "shift"] "r" hs.reload)
+(fn make-config-path-watcher []
+ (hs.pathwatcher.new
+ (.. (os.getenv "HOME")
+ "/code/personal/dotfiles/hammerspoon/.hammerspoon")
+ (fn [] (print "Reload!") (hs.reload))))
+
+(let [watcher (make-config-path-watcher)]
+ (watcher:start))
+
;;; Layout -- Automatically put windows in their place.
(fn apply-layout []