1 # XWin Server Resource File - EXAMPLE
2 # Earle F. Philhower, III
4 # Place in ~/.XWinrc or in /etc/X11/system.XWinrc
6 # Keywords are case insensitive, comments legal pretty much anywhere
7 # you can have an end-of-line
9 # Comments begin with "#" or "//" and go to the end-of-line
11 # Paths to commands are **cygwin** based (i.e. /usr/local/bin/xcalc)
13 # Paths to icons are **WINDOWS** based (i.e. c:\windows\icons)
15 # Menus are defined as...
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
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
34 # Set the taskmar menu with
35 # ROOTMENU <name-of-some-prior-defined-menu>
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>
40 # To choose a specific menu for a specific WM_CLASS or WM_NAME use ...
42 # <class-or-name-of-window> <name-of-prior-defined-menu> <atstart|atend>
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)
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
62 # To change the taskbar icon use...
63 # TRAYICON <name-of-windows-ico-file-in-icondirectory>
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>
68 # To define substitute icons on a per-window basis use...
70 # <class-or-name-of-window> <icon-file-name.ico>
73 # In the case where multiple matches occur, the first listed in the ICONS
74 # section will be chosen.
76 # To disable exit confirmation dialog add the line containing SilentExit
78 # DEBUG <string> prints out the string to the XWin.log file
80 // Below are just some silly menus to demonstrate writing your
81 // own configuration file.
88 xload exec "xload -display %display%" # Comment
92 // Comments fit here, too...
93 "Reload .XWinrc" RELOAD
94 "Applications" menu apps
100 "Always on Top" alwaysontop
105 "Always on Top" alwaysontop
111 DefaultSysMenu aot atend
114 "xterm" xtermspecial atstart
117 # IconDirectory "c:\winnt\"
119 # DefaultIcon "reinstall.ico"
122 # "xterm" "uninstall.ico"
127 DEBUG "Done parsing the configuration file..."