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