spaf@cs.purdue.EDU (Gene Spafford) (03/07/88)
Now maybe it's just me, but I'm having a difficult time figuring out how the .Xdefaults file is used with the new format. Nowhere in the documentation that I've looked at so far does it give any useful examples, and in fact, I've found contradictory information that makes me wonder whether * or . is the separator in the defaults. Limited experimentation has failed to illustrate how it works, and I'm not about to 1) look through source code; 2) troff and print the n-hundred pages of the Xlib documentation just to answer these simple questions. So, let me outline three examples, and then maybe someone who actually knows how these things are structured would be willing to post the correct format? Ex. 1: I want all my xterm windows to use the 8x13 font for BodyFont. Ex. 2: I want "xshell" (in the contributed software) to run xperfmon when I type the R1 key inside the shell icon. Ex. 3: I want my xclock to have an update period of 5. Question 1: What do the .Xdefaults lines look like to accomplish those three things? Question 2: Is the file actually named ".Xdefaults"? There is a suggestion in the man page for Xserver that the file should be named ".Xdefaults-host". If that is the case, and since my machine is named uther.cs.purdue.edu (that is what "gethostname" returns), would my file need to be named ".Xdefaults-uther.cs.purdue.edu" or could I get away with just ".Xdefaults-uther" since my /etc/hosts file has both as entries? Moral: It really, really helps to have examples of use in places where people can find the easily.... -- Gene Spafford Dept. of Computer Sciences, Purdue University, W. Lafayette IN 47907-2004 Internet: spaf@cs.purdue.edu uucp: ...!{decwrl,gatech,ucbvax}!purdue!spaf