]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Add `hammerspoon` (#219)
authorScott Thomas <swt30@users.noreply.github.com>
Wed, 15 Feb 2023 07:57:33 +0000 (07:57 +0000)
committerGitHub <noreply@github.com>
Wed, 15 Feb 2023 07:57:33 +0000 (08:57 +0100)
Hammerspoon is a program for scripting MacOS; it puts config
in `~/.hammerspoon` by default. The location can be changed with the
MacOS `defaults` command.

See https://github.com/Hammerspoon/hammerspoon/issues/2175

programs/hammerspoon.json [new file with mode: 0644]

diff --git a/programs/hammerspoon.json b/programs/hammerspoon.json
new file mode 100644 (file)
index 0000000..85c06e2
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "files": [
+        {
+            "help": "Add the following command to your .profile, .bashrc, .zshrc or wherever you export other environment variables:\n\n```\ndefaults write org.hammerspoon.Hammerspoon MJConfigFile \"$XDG_CONFIG_HOME\"/hammerspoon/init.lua\n```\n\n_Note: you may also just run the command once, but you will have to re-run it if you change $XDG_CONFIG_HOME. The command is idempotent, so it is safe to include in a .profile or similar._\n",
+            "movable": true,
+            "path": "$HOME/.hammerspoon"
+        }
+    ],
+    "name": "hammerspoon"
+}