Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua
http://www.hammerspoon.org
MIT License
12.12k stars 582 forks source link

Feature Request: Portable option to use XDG #3496

Open heygarrett opened 1 year ago

heygarrett commented 1 year ago

I've seen a number of issues requesting XDG support, and I appreciate that there is a workaround:

defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua"

But after a fair bit of searching, there doesn't seem to be an easy way to set and forget it in my dotfiles; I sync ~/.config across multiple Macs, and it would be great if there was something like an environment variable that I could set just once.

andrewcrook commented 1 year ago

defaults write org.hammerspoon.Hammerspoon MJConfigFile "~/.config/hammerspoon/init.lua”

Oh by the way, that’s a great find! I am using it just added to my setup scripts

andrewcrook commented 1 year ago

But after a fair bit of searching, there doesn't seem to be an easy way to set and forget it in my dotfiles;

Put into a setup script which does the sync / install