aboutsummaryrefslogtreecommitdiffstats
path: root/doc/info
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-19 22:26:32 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-19 22:26:32 +0200
commit0bf092e26fbd5497aca1f07666866fd66df3dff0 (patch)
tree37005846363b7addfa69486c8e124fdd53bd7fb2 /doc/info
parentuse XDG_VTNR (diff)
downloadmds-0bf092e26fbd5497aca1f07666866fd66df3dff0.tar.gz
mds-0bf092e26fbd5497aca1f07666866fd66df3dff0.tar.bz2
mds-0bf092e26fbd5497aca1f07666866fd66df3dff0.tar.xz
document XDG_VTNR
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'doc/info')
-rw-r--r--doc/info/mds.texinfo17
1 files changed, 17 insertions, 0 deletions
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