From 5a4888ea78c5c1d4c5519b5cd1b9850fe20e11b8 Mon Sep 17 00:00:00 2001 From: Kevin Lyda Date: Sun, 11 Jul 2021 14:48:05 +0100 Subject: [PATCH] Explain where files are saved For people who manage their home directories with things like vcsh or other versioning system, it's good to know where configuration files live. This CL adds a FILES section to the man page. --- .gitignore | 1 + autorandr.1 | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a01ee28 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.*.swp diff --git a/autorandr.1 b/autorandr.1 index d268822..9bc7a78 100644 --- a/autorandr.1 +++ b/autorandr.1 @@ -58,6 +58,17 @@ Force loading or reloading of a profile .TP .BR \-\-version Show version information and exit +.SH FILES +Configuration files are searched for in the \fIautorandr +\fRdirectory in the colon separated list of paths in \fI$XDG_CONFIG_DIRS +\fR- or in \fI/etc/xdg +\fRif that var is not set. They are then looked for in \fI~/.autorandr +\fRand if that doesn't exist, in \fI$XDG_CONFIG_HOME/autorandr +\fRor in \fI~/.config/autorandr\fR if that var is unset. + +In each of those directories it looks for directories with \fIconfig\fR and +\fIsetup\fR in them. It is best to manage these files with the +\fBautorandr\fR utility. .SH AUTHOR \fRPhillip Berndt .br -- 2.39.2