]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - README.md
Run scripts from $XDG_CONFIG_DIRS as well (See pull request #43)
[deb_pkgs/autorandr.git] / README.md
index fdfb54712d3c77d4515aadd5e809dc6e5b41f5e3..1e45b22f5e51a9fe44d066077c57c45ed5b12fcd 100644 (file)
--- a/README.md
+++ b/README.md
@@ -87,4 +87,10 @@ Another script called `postswitch` can be placed in the directory
 after a mode switch has taken place and can notify window managers or other
 applications about it.
 
+All scripts can also be placed in any of the `$XDG_CONFIG_DIRS`. In addition to
+the script names themselves, any executables in subdirectories named
+`script_name.d` (e.g. `postswitch.d`) are executed as well. In scripts, some of
+autorandr's state is exposed as environment variables prefixed with `AUTORANDR_`.
+The most useful one is `$AUTORANDR_CURRENT_PROFILE`.
+
 To install autorandr call `make install`.