19 lines
545 B
Bash
19 lines
545 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "Configuring Hammerspoon to use ~/.config/hammerspoon..."
|
|
|
|
if ! command -v hammerspoon &> /dev/null; then
|
|
echo "Warning: Hammerspoon not found. Setting preference anyway for when it's installed."
|
|
fi
|
|
|
|
defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"
|
|
|
|
if defaults read org.hammerspoon.Hammerspoon MJConfigFile &> /dev/null; then
|
|
echo "✅ Hammerspoon configured to use ~/.config/hammerspoon/init.lua"
|
|
else
|
|
echo "❌ Failed to set Hammerspoon config path"
|
|
exit 1
|
|
fi
|