XRDB(1) AIX XRDB(1) NAME xrdb - X server resource database utility SYNOPSIS xxxxrrrrddddbbbb [-option ...] [_f_i_l_e_n_a_m_e] DESCRIPTION _X_r_d_b is used to get or set the contents of the RESOURCE_MANAGER property on the root window of screen 0, or the SCREEN_RESOURCES property on the root window of any or all screens, or everything combined. You would normally run this program from your X startup file. Most X clients use the RESOURCE_MANAGER and SCREEN_RESOURCES properties to get user preferences about color, fonts, and so on for applications. Having this information in the server (where it is available to all clients) instead of on disk, solves the problem in previous versions of X that required you to maintain _d_e_f_a_u_l_t_s files on every machine that you might use. It also allows for dynamic changing of defaults without editing files. The RESOURCE_MANAGER property is used for resources that apply to all screens of the display. The SCREEN_RESOURCES property on each screen specifies additional (or overriding) resources to be used for that screen. (When there is only one screen, SCREEN_RESOURCES is normally not used, all resources are just placed in the RESOURCE_MANAGER property.) The file specified by _f_i_l_e_n_a_m_e (or the contents from stan- dard input if - or no filename is given) is optionally passed through the C preprocessor with the following symbols defined, based on the capabilities of the server being used: BBBBIIIITTTTSSSS____PPPPEEEERRRR____RRRRGGGGBBBB====nnnnuuuummmm the number of significant bits in an RGB color specification. This is the log base 2 of the number of distinct shades of each primary that the hardware can generate. Note that it usually is not related to PLANES. CCCCLLLLAAAASSSSSSSS====vvvviiiissssuuuuaaaallllccccllllaaaassssssss one of StaticGray, GrayScale, StaticColor, Pseu- doColor, TrueColor, DirectColor. This is the visual class of the root window of the default screen. CCCCOOOOLLLLOOOORRRR defined only if CLASS is one of StaticColor, Pseu- doColor, TrueColor, or DirectColor. HHHHEEEEIIIIGGGGHHHHTTTT====nnnnuuuummmm the height of the default screen in pixels. SSSSEEEERRRRVVVVEEEERRRRHHHHOOOOSSSSTTTT====hhhhoooossssttttnnnnaaaammmmeeee Rev. Release 5 Page 1 XRDB(1) AIX XRDB(1) the hostname portion of the display to which you are connected. HHHHOOOOSSSSTTTT====hhhhoooossssttttnnnnaaaammmmeeee the same as SSSSEEEERRRRVVVVEEEERRRRHHHHOOOOSSSSTTTT. CCCCLLLLIIIIEEEENNNNTTTTHHHHOOOOSSSSTTTT====hhhhoooossssttttnnnnaaaammmmeeee the name of the host on which _x_r_d_b is running. PPPPLLLLAAAANNNNEEEESSSS====nnnnuuuummmm the number of bit planes (the depth) of the root window of the default screen. RRRREEEELLLLEEEEAAAASSSSEEEE====nnnnuuuummmm the vendor release number for the server. The interpretation of this number will vary depending on VENDOR. RRRREEEEVVVVIIIISSSSIIIIOOOONNNN====nnnnuuuummmm the X protocol minor version supported by this server (currently 0). VVVVEEEERRRRSSSSIIIIOOOONNNN====nnnnuuuummmm the X protocol major version supported by this server (should always be 11). VVVVEEEENNNNDDDDOOOORRRR====vvvveeeennnnddddoooorrrr a string specifying the vendor of the server. WWWWIIIIDDDDTTTTHHHH====nnnnuuuummmm the width of the default screen in pixels. XXXX____RRRREEEESSSSOOOOLLLLUUUUTTTTIIIIOOOONNNN====nnnnuuuummmm the x resolution of the default screen in pixels per meter. YYYY____RRRREEEESSSSOOOOLLLLUUUUTTTTIIIIOOOONNNN====nnnnuuuummmm the y resolution of the default screen in pixels per meter. Lines that begin with an exclamation mark (!) are ignored and may be used as comments. Note that since _x_r_d_b can read from standard input, it can be used to the change the contents of properties directly from a terminal or from a shell script. OPTIONS _x_r_d_b program accepts the following options: ----hhhheeeellllpppp This option (or any unsupported option) will cause a brief description of the allowable options and parameters to be printed. Rev. Release 5 Page 2 XRDB(1) AIX XRDB(1) ----ddddiiiissssppppllllaaaayyyy _d_i_s_p_l_a_y This option specifies the X server to be used; see _X(_1). It also specifies the screen to use for the -_s_c_r_e_e_n option, and it specifies the screen from which preprocessor symbols are derived for the -_g_l_o_- _b_a_l option. ----aaaallllllll This option indicates that operation should be per- formed on the screen-independent resource property (RESOURCE_MANAGER), as well as the screen-specific property (SCREEN_RESOURCES) on every screen of the display. For example, when used in conjunction with -_q_u_e_r_y, the contents of all properties are output. For -_l_o_a_d and -_m_e_r_g_e, the input file is processed once for each screen. The resources which occur in common in the output for every screen are collected, and these are applied as the screen-independent resources. The remaining resources are applied for each individual per-screen property. This the default mode of operation. ----gggglllloooobbbbaaaallll This option indicates that the operation should only be performed on the screen-independent RESOURCE_MANAGER property. ----ssssccccrrrreeeeeeeennnn This option indicates that the operation should only be performed on the SCREEN_RESOURCES property of the default screen of the display. ----ssssccccrrrreeeeeeeennnnssss This option indicates that the operation should be performed on the SCREEN_RESOURCES property of each screen of the display. For -_l_o_a_d and -_m_e_r_g_e, the input file is processed for each screen. ----nnnn This option indicates that changes to the specified properties (when used with -_l_o_a_d or -_m_e_r_g_e) or to the resource file (when used with -_e_d_i_t) should be shown on the standard output, but should not be per- formed. ----qqqquuuuiiiieeeetttt This option indicates that warning about duplicate entries should not be displayed. ----ccccpppppppp _f_i_l_e_n_a_m_e This option specifies the pathname of the C prepro- cessor program to be used. Although _x_r_d_b was designed to use CPP, any program that acts as a filter and accepts the -D, -I, and -U options may be used. ----nnnnooooccccpppppppp This option indicates that _x_r_d_b should not run the input file through a preprocessor before loading it Rev. Release 5 Page 3 XRDB(1) AIX XRDB(1) into properties. ----ssssyyyymmmmbbbboooollllssss This option indicates that the symbols that are defined for the preprocessor should be printed onto the standard output. ----qqqquuuueeeerrrryyyy This option indicates that the current contents of the specified properties should be printed onto the standard output. Note that since preprocessor com- mands in the input resource file are part of the input file, not part of the property, they won't appear in the output from this option. The ----eeeeddddiiiitttt option can be used to merge the contents of proper- ties back into the input resource file without damaging preprocessor commands. ----llllooooaaaadddd This option indicates that the input should be loaded as the new value of the specified properties, replacing whatever was there (i.e. the old contents are removed). This is the default action. ----mmmmeeeerrrrggggeeee This option indicates that the input should be merged with, instead of replacing, the current con- tents of the specified properties. Note that this option does a lexicographic sorted merge of the two inputs, which is almost certainly not what you want, but remains for backward compatibility. ----rrrreeeemmmmoooovvvveeee This option indicates that the specified properties should be removed from the server. ----rrrreeeettttaaaaiiiinnnn This option indicates that the server should be instructed not to reset if _x_r_d_b is the first client. This never be necessary under normal conditions, since _x_d_m and _x_i_n_i_t always act as the first client. ----eeeeddddiiiitttt _f_i_l_e_n_a_m_e This option indicates that the contents of the specified properties should be edited into the given file, replacing any values already listed there. This allows you to put changes that you have made to your defaults back into your resource file, preserv- ing any comments or preprocessor lines. ----bbbbaaaacccckkkkuuuupppp _s_t_r_i_n_g This option specifies a suffix to be appended to the filename used with ----eeeeddddiiiitttt to generate a backup file. ----DDDD_n_a_m_e[=_v_a_l_u_e] This option is passed through to the preprocessor and is used to define symbols for use with condi- tionals such as #_i_f_d_e_f. Rev. Release 5 Page 4 XRDB(1) AIX XRDB(1) ----UUUU_n_a_m_e This option is passed through to the preprocessor and is used to remove any definitions of this sym- bol. ----IIII_d_i_r_e_c_t_o_r_y This option is passed through to the preprocessor and is used to specify a directory to search for files that are referenced with #_i_n_c_l_u_d_e. FILES Generalizes ~/._X_d_e_f_a_u_l_t_s files. SEE ALSO X(1), Xlib Resource Manager documentation, Xt resource docu- mentation ENVIRONMENT DDDDIIIISSSSPPPPLLLLAAAAYYYY to figure out which display to use. BUGS The default for no arguments should be to query, not to overwrite, so that it is consistent with other programs. COPYRIGHT Copyright 1991, Digital Equipment Corporation and MIT. AUTHORS Bob Scheifler, Phil Karlton, rewritten from the original by Jim Gettys Rev. Release 5 Page 5