|
||||||||||||||||||||||||
|
Most of the following customizations work by editing the file
~/.Xdefaults, which is read when starting up X.
After making changes to it, you'll need to invoke
xrdb -merge ~/.Xdefaultsto activate the changes. Applications get the defaults at startup, so you'll also need to restart Xdvi after making such a change. General tipsAn X application already offer a lot of customizability out-of-the box; to see what's available, you can use the program `editres'. A typical session looks like this:
Key and mouse bindingsTo change a key or mouse binding, use the resource mainTranslations. As an example, let's assume you want the d behave the same way the space bar currently does, namly either scroll down 1/3 of a window if it is not yet at the bottom of the page, or skip to the following page otherwise. First you need to find out how the action routine invoked by the space bar is actually called. Open the xdvi man page and look for the heading KEYSTROKES, where you will find:
The name in square brackets down-or-next() is the action name we're looking for. To bind it to the d key, put the following into your ~/.Xdefaults file: xdvi.mainTranslations: #override\ <Key>d:down-or-next()\n Mouse bindings can be changed in a similar way; e.g. to additionally bind the action source-what-special() (which displays information about the source special next to the cursor position) to the the third mouse button: xdvi.mainTranslations: #override\ <Key>d:down-or-next()\n\ Ctrl<Btn3Down>:source-what-special()\n Or, to make Shift + mouse wheel move a page forward/backward in the document (currently only works with the Xaw toolkit!): xdvi.mainTranslations: #override\ Shift<Btn5Down>: forward-page(1)\n\ Shift<Btn4Down>: back-page(1) The man page for xdvi contains more detailed informations on the actions available, and some more customization examples. FontsTo use a different font for the menu buttons, popup windows etc., change the default `font' resource; e.g. for using Helvetica:xdvi*font: -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*The font for the statusline can also be changed independently from the menu font: xdvi*statusline*font: -*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-* Toolbar (Motif only)You can add/remove buttons to the toolbar via the X resource toolbarTranslations; see the man page for an example. The appearance of the toolbar buttons can be customized as follows:
|
Last updated on Sun, 10 May 2009 22:14:06 +0200 by Stefan Ulrich |