Hammerspoon: Hammerspoon places config file directory in user home, contributing to dot file/folder clutter in home directory

Created on 9 Apr 2018  路  2Comments  路  Source: Hammerspoon/hammerspoon

Hammerspoon places it's config files in ~/.hammerspoon. This contributes to dot file/folder clutter in my home folder.

I think it would be great if Hammerspoon put files like this in the XDG Base Directory Specification directories. In this particular case that would likely mean ~/.config/hammerspoon.

I'm not familiar with the codebase, but I'd assume it should be pretty easy to first check if ~/.hammerspoon exists, then use that folder to preserve backward compatibility, otherwise use ~/.config/hammerspoon.

Most helpful comment

I'm not sure if we'll ever get around to moving it properly, but you can override the default yourself with:

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

All 2 comments

I'm not sure if we'll ever get around to moving it properly, but you can override the default yourself with:

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

Thanks for the tip!

Would you accept a pull request that addressed this? If so, are there any files relevant to this besides variables.m?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

latenitefilms picture latenitefilms  路  3Comments

Pancia picture Pancia  路  4Comments

lazandrei19 picture lazandrei19  路  4Comments

agzam picture agzam  路  3Comments

piskov picture piskov  路  4Comments