d_sample_display.rc
author claus
Tue, 09 Aug 1994 00:35:25 +0200
changeset 5 420e4af41733
parent 0 0cb137a77319
child 7 57c09d1b7f69
permissions -rw-r--r--
*** empty log message ***

"*
 * $Header$
 * display related configuration - generic
 *
 * this is a dummy script -
 * use this file as a guide for display-specific configurations
 * (see how display.rc figures out on what type of display we run)
 *
 * i.e. copy this file to d_<your_display_type>.rc and edit as needed
 * see d_sun.rc, d_iris.rc etc. as examples
 *"

"*
 * view style - uncomment the one you like most (I prefer #iris :-)
 *"
"View defaultStyle:#next"
"View defaultStyle:#iris"
"View defaultStyle:#openwin"
"View defaultStyle:#motif"
"View defaultStyle:#view3D"
"View defaultStyle:#normal"
"View defaultStyle:#mswindows"
"View defaultStyle:#st80"

"*
 * define keys/keyboard abbreviations etc. which are not handled by xmodmap
 *"
|map|

map := Display keyboardMap.

"
map bindValue:#Again to:#F1.   
map bindValue:#Copy  to:#F2.   
map bindValue:#Cut   to:#F3.   
"

"
 * on some german keyboards, we get already translated characters
 * (plus the ALT-key)
 *"
"
map bindValue:$[ to:#'Alt['.
map bindValue:$] to:#'Alt]'.
map bindValue:${ to:#'Alt{'.
map bindValue:$} to:#'Alt}'.
map bindValue:$\ to:#'Alt\'.
map bindValue:$| to:#'Alt|'.
map bindValue:$@ to:#'Alt@'.
"

"
 * on others, they come untranslated
 * (plus the ALT-key)
 *"
"
map bindValue:$[ to:#'Alt8'.
map bindValue:$] to:#'Alt9'.
map bindValue:${ to:#'Alt7'.
map bindValue:$} to:#'Alt0'.
map bindValue:$\ to:#'Alt?'.
map bindValue:$| to:#'Alt<'.
map bindValue:$@ to:#'Altq'.
"
!

"*
 * define the size of the screen
 * most X-Servers do not (cannot) tell the truth ...
 * (how should it know what size of monitor you have ?)
 * if yours does, make the next one a comment
 *
 * (check out by measuring your display, and compare
 *  the values returned by 'Display widthInMillimeter'
 *  and 'Display heightInMillimeter')
 *
 * do not trust the numbers I have written below - size given
 * should be the visible picture size, which depends on display
 * adjusts (many monitors have hSize & vSize adjusts)
 *"

"*
 * this is for a 14' monitor ...
 *"
"
Display heightInMillimeter:175.
Display widthInMillimeter:235
"

"*
 * this is for a 16' monitor (measured on a jvc quadsync)
 *"
"
Display heightInMillimeter:208.
Display widthInMillimeter:275
"

"*
 * this is for a 20' (megascan) ...
 *"
"
Display heightInMillimeter:279.
Display widthInMillimeter:346
"

"*
 * this is for a 21' (eizo flexscan) ...
 *"
"
Display heightInMillimeter:275.
Display widthInMillimeter:370
"
!

"*
 * uncomment if you have a b&w monitor connected to a
 * color server (which the server wouldn't know)
 * try 'Display visualType' to see what X thinks.
 *"
"Display hasColors:false"
!