From 0bf092e26fbd5497aca1f07666866fd66df3dff0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 19 Sep 2014 22:26:32 +0200 Subject: document XDG_VTNR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/mds.texinfo | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc/info') diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo index d3277bc..c601e1e 100644 --- a/doc/info/mds.texinfo +++ b/doc/info/mds.texinfo @@ -1243,6 +1243,23 @@ virtual terminal the display is located on. It also enables other servers to switch the virtual terminals mode to graphical mode or text mode. +By default @command{mds-vt} will select the next +available virtual terminal for the display server. +You can override this behaviour by exporting a value +to the environment variable @env{XDG_VTNR}. The value +must be a decimal integer of a valid virtual terminal +index@footnote{Which is the same thing as a valid TTY +index.}. To select the virtual terminal the display +was started from you can use the following code in +your @file{~/.mdsinitrc}: + +@example +export XDG_VTNR="$(fgconsole)" +@end example + +@command{fgconsole} is a part of the @command{kbd} +package. + @node mds-clipboard -- cgit v1.2.3-70-g09d2