Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xwin / system.XWinrc
1 # XWin Server Resource File - EXAMPLE
2 # Earle F. Philhower, III
3
4 # Place in ~/.XWinrc or in /etc/X11/system.XWinrc
5
6 # Keywords are case insensitive, comments legal pretty much anywhere
7 # you can have an end-of-line
8
9 # Comments begin with "#" or "//" and go to the end-of-line
10
11 # Paths to commands are **cygwin** based (i.e. /usr/local/bin/xcalc)
12
13 # Paths to icons are **WINDOWS** based (i.e. c:\windows\icons)
14
15 # Menus are defined as...
16 # MENU <name> {
17 # <Menu Text> EXEC <command>
18 # ^^ This command will have any "%display%"
19 # string replaced with the proper display
20 # variable (i.e. 127.0.0.1:<display>.0)
21 # (This should only rarely be needed as
22 # the DISPLAY environment variable is also
23 # set correctly)
24 # or <Menu Text> MENU <name-of-some-prior-defined-menu>
25 # or <Menu Text> ALWAYSONTOP
26 # ^^ Sets the window to display above all others
27 # or <Menu Text> RELOAD
28 # ^^ Causes ~/.XWinrc or the system.XWinrc file
29 # to be reloaded and icons and menus regenerated
30 # or SEPARATOR
31 # ...
32 # }
33
34 # Set the taskmar menu with
35 # ROOTMENU <name-of-some-prior-defined-menu>
36
37 # If you want a menu to be applied to all popup window's system menu
38 # DEFAULTSYSMENU <name-of-some-prior-defined-menu> <atstart|atend>
39
40 # To choose a specific menu for a specific WM_CLASS or WM_NAME use ...
41 # SYSMENU {
42 # <class-or-name-of-window> <name-of-prior-defined-menu> <atstart|atend>
43 # ...
44 # }
45
46 # When specifying an ICONFILE in the following commands several different
47 # formats are allowed:
48 # 1. Name of a regular Windows .ico format file
49 # (ex: "cygwin.ico", "apple.ico")
50 # 2. Name and index into a Windows .DLL
51 # (ex: "c:\windows\system32\shell32.dll,4" gives the default folder icon
52 # "c:\windows\system32\shell32.dll,5" gives the floppy drive icon)
53 # 3. Index into XWin.EXE internal ICON resource
54 # (ex: ",101" is the 1st icon inside XWin.exe)
55
56 # To define where ICO files live (** Windows path**)
57 # ICONDIRECTORY <windows-path i.e. c:\cygwin\usr\icons>
58 # NOTE: If you specify a fully qualified path to an ICON below
59 # (i.e. "c:\xxx" or "d:\xxxx")
60 # this ICONDIRECTORY will not be prepended
61
62 # To change the taskbar icon use...
63 # TRAYICON <name-of-windows-ico-file-in-icondirectory>
64
65 # To define a replacement for the standard X icon for apps w/o specified icons
66 # DEFAULTICON <name-of-windows-ico-file-in-icondirectory>
67
68 # To define substitute icons on a per-window basis use...
69 # ICONS {
70 # <class-or-name-of-window> <icon-file-name.ico>
71 # ...
72 # }
73 # In the case where multiple matches occur, the first listed in the ICONS
74 # section will be chosen.
75
76 # To disable exit confirmation dialog add the line containing SilentExit
77
78 # DEBUG <string> prints out the string to the XWin.log file
79
80 // Below are just some silly menus to demonstrate writing your
81 // own configuration file.
82
83 // Make some menus...
84 menu apps {
85 xterm exec "xterm"
86 "Emacs" exec "emacs"
87 notepad exec notepad
88 xload exec "xload -display %display%" # Comment
89 }
90
91 menu root {
92 // Comments fit here, too...
93 "Reload .XWinrc" RELOAD
94 "Applications" menu apps
95 SEParATOR
96 }
97
98 menu aot {
99 Separator
100 "Always on Top" alwaysontop
101 }
102
103 menu xtermspecial {
104 "Emacs" exec "emacs"
105 "Always on Top" alwaysontop
106 SepArAtor
107 }
108
109 RootMenu root
110
111 DefaultSysMenu aot atend
112
113 SysMenu {
114 "xterm" xtermspecial atstart
115 }
116
117 # IconDirectory "c:\winnt\"
118
119 # DefaultIcon "reinstall.ico"
120
121 # Icons {
122 # "xterm" "uninstall.ico"
123 # }
124
125 SilentExit
126
127 DEBUG "Done parsing the configuration file..."
128