x.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:36:16 +0200
changeset 2229 1a0b6597e594
parent 2228 837f1337c59b
child 2559 42551ca22ca3
permissions -rw-r--r--
Mark block quot in HTMLe.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1330
diff changeset
     1
.. -*- coding: utf-8; -*-
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
====
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
 X.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
====
1032
4decc3e00bb6 Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1002
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1706
diff changeset
     7
   :local:
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
Standard.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
=========
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    12
* http://www.tronche.com/gui/x/icccm/
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    14
Widget toolkit.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    15
===============
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    16
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    17
http://en.wikipedia.org/wiki/Widget_toolkit
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    18
  Widget toolkit
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    19
http://en.wikipedia.org/wiki/List_of_widget_toolkits
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    20
  List of widget toolkits
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    21
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    22
GTK+.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    23
-----
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    24
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    25
http://en.wikipedia.org/wiki/GTK%2B
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    26
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    27
QT.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    28
---
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    29
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    30
http://en.wikipedia.org/wiki/Qt_%28toolkit%29
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    31
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    32
WxWidgets.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    33
----------
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    34
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    35
http://en.wikipedia.org/wiki/WxWidgets
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    36
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    37
Tk.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    38
---
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    39
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    40
http://en.wikipedia.org/wiki/Tk_%28computing%29
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    41
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    42
FLTK.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    43
-----
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    44
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    45
http://en.wikipedia.org/wiki/FLTK
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    46
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    47
Xaw.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    48
----
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    49
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    50
http://en.wikipedia.org/wiki/Xaw
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    51
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    52
GNUstep.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    53
--------
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    54
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    55
http://en.wikipedia.org/wiki/GNUstep
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    56
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    57
XView.
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    58
------
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    59
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    60
http://en.wikipedia.org/wiki/XView
1141
7c5ca700ff02 Widget toolkit.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1052
diff changeset
    61
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
Getting info about X window and X-related applications data.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
============================================================
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    65
Look for system registered resources::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    66
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    67
  $ listres
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    68
  $ listres -all
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    69
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    70
  $ appres XTerm
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    71
  $ appres -name htop   # for xterm with running bash inside
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
Look for X resources of running applications::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
  $ xprop -root
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
  $ xprop -name bash    # for xterm with running bash inside
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
1256
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
    78
Keyboard's keys under X window.
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
    79
===============================
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
    80
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    81
``scancodes``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    82
  hardware-dependent codes generated by keystrokes and received by
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    83
  the X server.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    84
``keycodes``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    85
  Codes sent by the X server to the client indicating which key
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    86
  was pressed. Keycodes by themselves do not indicate what the
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    87
  keystroke means; the client must request that information from
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    88
  the X server.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    89
``modifiers``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    90
  Flags, such as ``shift`` and ``control``, that the server sends
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    91
  with each keycode to the client. The client's interpretation of
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    92
  the keycode may depend on the state of the modifiers. For
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    93
  example, the state of the shift modifier determines whether an
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    94
  alphabetic character should be lowercase or uppercase. Because
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    95
  the X server encodes the states of the eight modifiers (shift,
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    96
  lock, control, mod1, mod2, mod3, mod4, and mod5) in a single
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    97
  byte of data, modifiers are often referred to as ``modifier
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    98
  bits``.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
    99
``keysyms``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   100
  codes that specify the glyphs appearing on the keys. The X
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   101
  server also maintains a list of strings that describe the
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   102
  keysyms, such as ``a``, ``B``, and ``Control``.
1256
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   103
1255
7cad4e6d59cd Find the keycode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1141
diff changeset
   104
Find the keycode.
7cad4e6d59cd Find the keycode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1141
diff changeset
   105
=================
1256
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   106
1255
7cad4e6d59cd Find the keycode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1141
diff changeset
   107
::
7cad4e6d59cd Find the keycode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1141
diff changeset
   108
7cad4e6d59cd Find the keycode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1141
diff changeset
   109
  $ xev
2064
7ffef142163e Small improvement.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1996
diff changeset
   110
  $ xev | grep keysym --color
1255
7cad4e6d59cd Find the keycode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1141
diff changeset
   111
  $ cat /usr/include/X11/keysymdef.h
7cad4e6d59cd Find the keycode.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1141
diff changeset
   112
1256
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   113
Don't run under X::
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   114
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   115
  $ showkey
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   116
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   117
To do same under X::
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   118
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   119
  $ xev | sed -n 's=.*keycode \([0-9]*\).*=\1=p'
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   120
2064
7ffef142163e Small improvement.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1996
diff changeset
   121
List key modifier (like ``shift``/``control``/``meta``/``mod2``)::
1256
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   122
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   123
  $ xmodmap -pm
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   124
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   125
Add keycode to modifier::
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   126
1258
5e458103accb Fix mistyping.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1257
diff changeset
   127
  $ xmodmap -e "add shift = Shift_R"
1256
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   128
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   129
Remove keycode from modifier::
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   130
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   131
  $ xmodmap -e "remove shift = Shift_L"
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   132
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   133
Examining the current keymap table::
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   134
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   135
  $ xmodmap -pk
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   136
1257
a0939a5f4042 Changing the keymap table.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1256
diff changeset
   137
Changing the keymap table::
a0939a5f4042 Changing the keymap table.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1256
diff changeset
   138
a0939a5f4042 Changing the keymap table.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1256
diff changeset
   139
  $ xmodmap -e "keycode 34 = bracketleft braceleft"
a0939a5f4042 Changing the keymap table.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1256
diff changeset
   140
  $ xmodmap -e "keysym CapsLock = Control_L"
a0939a5f4042 Changing the keymap table.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1256
diff changeset
   141
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   142
https://wiki.ubuntu.com/LaptopTesting/Keycodes
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   143
  Ubuntu Keycodes howto.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   144
http://en.gentoo-wiki.com/wiki/Multimedia_Keys
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   145
  Gentoo Multimedia Keys howto.
1256
7ce42ae5477d Keyboard's keys under X window.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1255
diff changeset
   146
1267
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   147
List input devices.
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   148
===================
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   149
::
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   150
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   151
  $ xinput -list
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   152
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   153
You can use obtained ID in such command::
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   154
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   155
  $ setxkbmap -device $ID -layout dvorak
d2a8da11f9d7 List input devices.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1258
diff changeset
   156
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   157
Making screenshort.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   158
===================
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   159
::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   160
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   161
  $ sudo apt-get install scrot
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   162
  $ scrot -d <sec> <file>
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   163
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   164
or::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   165
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   166
  $ sudo apt-get install imagemagic
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   167
  $ import -quality 100 -pause <sec> -silent <file>
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   168
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   169
Input method.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   170
=============
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   171
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   172
Input method by setxkbmap.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   173
--------------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   174
::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   175
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   176
  $ setxkbmap ru
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   177
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   178
  $ setxkbmap -rules xorg -model pc104 -layout "us,ru" -option "grp:rwin_toggle,grp_led:scroll" -variant ",winkeys"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   179
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   180
Input method from xorg.conf.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   181
----------------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   182
::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   183
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   184
  Section "InputDevice"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   185
      Identifier     "Keyboard0"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   186
      Driver         "kbd"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   187
      Option         "XkbModel" "pc105"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   188
      Option         "XkbLayout" "us,ru"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   189
      Option         "XkbVariant" ",winkeys"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   190
      Option         "XkbOptions" "grp:rwin_switch,grp_led:scroll"
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   191
  EndSection
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   192
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   193
.Xdefaults
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   194
==========
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   195
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   196
The syntax of an Xdefaults file is as follows::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   197
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   198
  [client. | *][{restriction.} | *]resource: value
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   199
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   200
where:
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   201
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   202
``client``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   203
  The name of the application, some program allow change it by
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   204
  '-name' option. This element is optional (can be substituated
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   205
  with wildcard).
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   206
``restriction``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   207
  Class names or name of specific class instance. The classes
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   208
  names conventionally start with an upper-case letter.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   209
``resource``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   210
  The name of the resource whose value is to be changed.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   211
  Resources are typically lowercase with uppercase
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   212
  concatenation.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   213
``value``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   214
  The actual value of the resource.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   215
``delimiters``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   216
  A period (.) is used to signify each step down into the
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   217
  hierarchy. A colon (:) is used to separate the resource
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   218
  declaration from the actual value.
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   219
1052
fbbc2fb0a2ac Fix: (WARNING/2) Inline emphasis start-string without end-string.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   220
Comment start with '!' char and goes up to end of line or C-like ``/* */``.
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   221
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   222
Use xprop utility to find classes and resources used by application.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   223
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   224
To reread your .Xresources file, and throw away your old resources::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   225
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   226
  $ xrdb ~/.Xdefaults
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   227
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   228
To reread your .Xresources file, and keep your old resources::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   229
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   230
 $ xrdb -merge ~/.Xdefaults
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   231
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   232
Example::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   233
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   234
  *foreground: yellow
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   235
  XClock*foreground: pink
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   236
  Xman*topBox*foreground: blue
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   237
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   238
String value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   239
------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   240
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   241
This can be path specification like '/usr/bin/firefox'.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   242
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   243
Colors value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   244
------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   245
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   246
For color names see '/usr/lib/X11/rgb.txt'. Also you can use hex
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   247
representation #ffffff.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   248
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   249
Font value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   250
----------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   251
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   252
You can use either a full name, a wildcarded specification, or a font alias::
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   253
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   254
  XTerm*Font: -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   255
  XTerm*Font: *courier-bold-r*140*
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   256
  XTerm*Font: 7x14
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   257
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   258
Geometry value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   259
--------------------
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   260
::
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   261
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   262
  XCalc*geometry: 120x120-0-0
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   263
  XClock*geometry: -50+100
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   264
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   265
Cursor names value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   266
------------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   267
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   268
Cursor resources require the name of the file in /usr/include/X11/bitmaps that
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   269
contains the cursor you want to use::
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   270
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   271
  ScoTerm*pointerShape: gumby
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   272
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   273
Pixmaps value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   274
-------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   275
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   276
Pixmaps are patterns, like bitmaps, that are used to texture or color an area
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   277
on your display. Pixmap resources are specified like cursors or bitmaps.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   278
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   279
Numebers value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   280
--------------------
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   281
::
978
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   282
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   283
  XLogo*borderWidth: 10
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   284
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   285
Boolean value type.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   286
-------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   287
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   288
Some resources require a boolean value, such as 'true' or 'false', 'yes' or
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   289
'no', or 'on' or 'off'.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   290
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   291
Wildcard matching.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   292
------------------
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   293
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   294
The asterisk can be used as a wildcard, making it easy to write a single rule
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   295
that can be applied to many different applications or elements.
76aa572406cd Getting info about X window and X-related applications data.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   296
1324
05861a2b18d8 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1295
diff changeset
   297
X utilities.
05861a2b18d8 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1295
diff changeset
   298
============
05861a2b18d8 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1295
diff changeset
   299
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   300
``appres``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   301
  List "application resources".
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   302
``listres``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   303
  List resources in widgets.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   304
``bitmap, atobm, bmtoa``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   305
  Bitmap editor and converter utilities.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   306
``editres``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   307
  Dynamic resource editor for X Toolkit applications.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   308
``iceauth``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   309
  ICE authority file utility.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   310
``xauth``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   311
  X authority file utility.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   312
``ico``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   313
  Animate an icosahedron or other polyhedron.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   314
``luit``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   315
  Locale and ISO 2022 support for Unicode terminals.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   316
``setxkbmap``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   317
  Set the keyboard using the X Keyboard Extension.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   318
``x11perf``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   319
  X11 server performance test program.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   320
``x11perfcomp``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   321
  X11 server performance comparison program.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   322
``xcalc``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   323
  scientific calculator desktop accessory that can emulate a TI-30
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   324
  or an HP-10C.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   325
``xclock``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   326
  Displays the time in analog or digital form.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   327
``xconsole``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   328
  Monitor system console messages with X.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   329
``xdpyinfo``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   330
  displaying information about an X server.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   331
``xev``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   332
  "Event Tester" window.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   333
``xeyes``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   334
  Showing two googly eyes which follow the cursor movements on the
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   335
  screen as if they were watching it.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   336
``xfontsel``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   337
  Point and click selection of X11 font names.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   338
``xgamma``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   339
  Alter a monitor's gamma correction through the X server.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   340
``xhost``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   341
  Server access control program for X.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   342
``xinit``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   343
  X Window System initializer.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   344
``startx``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   345
  Initialize an X session.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   346
``xkill``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   347
  Kill a client by its X resource.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   348
``xload``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   349
  System load average display for X.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   350
``xlogo``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   351
  X Window System logo.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   352
``xlsclients``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   353
  listing information about the client applications running on a display.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   354
``xmag``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   355
  Magnify parts of the screen.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   356
``xman``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   357
  Manual page display program for the X Window System.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   358
``xmessage``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   359
  Display a message or query in a window.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   360
``xmodmap``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   361
  Utility for modifying keymaps and pointer button mappings in X.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   362
``xmore``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   363
  Plain text display program for the X Window System.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   364
``xprop``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   365
  Property displayer for X.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   366
``xrandr``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   367
  Primitive command line interface to RandR extension.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   368
``xrdb``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   369
  X server resource database utility.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   370
``xrefresh``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   371
  Refresh all or part of an X screen.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   372
``xset``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   373
  User preference utility for X.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   374
``xsetmode``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   375
  Set the mode for an X Input device.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   376
``xsetpointer``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   377
  Set an X Input device as the main pointer.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   378
``xsetroot``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   379
  Root window parameter setting utility for X.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   380
``xsm``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   381
  X Session Manager
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   382
``resize``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   383
  Set environment and terminal settings to current xterm window size.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   384
``xterm``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   385
  Standard terminal emulator for the X Window System.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   386
``xvinfo``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   387
  Print out X-Video extension adaptor information.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   388
``xwd, xwud``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   389
  Useful and easy way to take screenshots. Saves in the XWD X
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   390
  Window Dump image data format.
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   391
``xwininfo``
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   392
  Window information utility for X.
1324
05861a2b18d8 Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1295
diff changeset
   393
1353
fb34c67646c0 XText extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   394
XText extension.
fb34c67646c0 XText extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   395
================
fb34c67646c0 XText extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   396
fb34c67646c0 XText extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   397
``xdotool`` and ``xautomation`` utilities use ``XText`` for emulating user
fb34c67646c0 XText extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   398
actions.
1542
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   399
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   400
GLX info.
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   401
=========
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   402
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   403
To determine whether 3D acceleration is working::
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   404
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   405
  $ apt-get install mesa-utils
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   406
  $ glxinfo | grep render
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   407
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   408
To see how many frames per second your video card is putting out::
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   409
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   410
  $ glxgears -info
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   411
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   412
See:
2d119c9c2692 GLX info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1353
diff changeset
   413
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   414
https://wiki.debian.org/Mesa
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   415
  Mesa is an open source 3D computer graphics library that
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   416
  provides a generic OpenGL implementation for rendering
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2064
diff changeset
   417
  three-dimensional graphics on multiple platforms.
1637
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   418
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   419
Running a secondary X server.
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   420
=============================
1638
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   421
1637
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   422
::
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   423
1638
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   424
  $ startx xterm -- :$N -depth 16
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   425
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   426
New server will be accessible at ``Alt+Ctrl+F$((N+6))``::
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   427
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   428
  :0  Alt+Ctrl+F7
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   429
  :1  Alt+Ctrl+F8
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   430
  ...
93bdc6f8177e New server will be accessible t...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1637
diff changeset
   431
  :5  Alt+Ctrl+F12
1637
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   432
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   433
In order to fix::
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   434
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   435
  X: user not authorized to run the X server
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   436
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   437
run::
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   438
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   439
  $ sudo dpkg-reconfigure x11-common
b3452a2960b1 Running a secondary X server.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1542
diff changeset
   440
1706
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   441
Running X server without display.
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   442
=================================
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   443
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   444
Run ``Xvfb`` and make screenshort of desktop::
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   445
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   446
  $ apt-get install xvfb
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   447
  $ Xvfb :1 -screen 0 1280x1024x24 &
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   448
  $ xclock -display :1 &
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   449
  $ import -display :1 -window root image.png
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   450
  $ kill %1 %2
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   451
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   452
In order to run ``Xvfb`` permanently add entry to ``/etc/inittab``::
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   453
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   454
  xvfb:2:respawn:/usr/bin/Xvfb :1 -ac -screen 0 1280x1024x24
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   455
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   456
Running X server in nested windows.
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   457
===================================
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   458
::
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   459
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   460
  $ sudo apt-get install xnest
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   461
  $ startx xterm -- `command -v Xnest` :1 -geometry 800x600
387028a4bc33 Running X server without display. Running X server in nested windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1638
diff changeset
   462
1996
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   463
Running X server under Windows
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   464
==============================
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   465
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   466
https://sourceforge.net/projects/vcxsrv/
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   467
  VcXsrv Windows X Server, the xorg git sources compiled with Visual C++ 2012
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   468
  Express Edition.
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   469
http://x.cygwin.com/
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   470
  Cygwin's xwin. Cygwin/X is a port of the X Window System to the Cygwin API
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   471
  layer for the Microsoft Windows family of operating systems.
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   472
https://sourceforge.net/projects/xming/
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   473
  Xming is the leading X Window System Server for Microsoft Windows 8/7/Vista/XP
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   474
  (+ server 2012/2008/2003). It is fully featured, small and fast, simple to
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   475
  install and because it is standalone native Microsoft Windows, easily made
769233fb9bc8 Running X server under Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   476
  portable (not needing a machine-specific installation).