Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtwm / examples / box.rc
1 #################################################################
2 #
3 #    File:              box.rc
4 #
5 #    Directory:         /usr/lib/X11/dt/examples/Dtwm
6 #
7 #    Description:       Sample configuration file (RC file) for the
8 #                       HP DT Window Manager 
9 #
10 #    Hewlett-Packard Visual User Environment, Version 2.1
11 #
12 #    Copyright (c) 1990 Hewlett-Packard Company
13 #
14 #    $XConsortium: box.rc /main/2 1996/07/18 15:27:59 drk $
15 #
16 ######################################################################
17
18 #####
19 #                                  
20 #  Front Panel Specification
21 #                                  
22 ####
23 FrontPanel BoxedFrontPanel    # Tuned for displays of 1280 pixels by
24                                  # 1024 pixels.
25 {
26 Row Top
27   {
28     Logo        [P C Q] @logo.l.bm 120x28 f.next_workspace
29     Help        [P] @help.l.bm 96 f.action BROWSE_HELP
30     dtstyle     [T] @style.l.bm 96 f.action STYLE
31     Lock        [T] @lock.l.bm 96 f.action LOCK_DISPLAY
32     dtwmbusy    [P C] @exit.l.bm @exit02.l.bm =97 =12x8+42+10 f.action EXIT_SESSION
33     }
34
35 ##########
36 #
37 # This row of toggle buttons create logins to remote hosts.  If a window with
38 # the same name already exists, it is brought into the current workspace
39 # and raised to the top of the window stack.  (Copy the file
40 # /usr/lib/X11/bitmaps/Dtwm/term.l.bm and create a bitmap file for each
41 # machine.  We simply put the first letter of the machine name in the
42 # terminal screen portion of the image.)  Replace these machine names with
43 # the actual names of computers that you use regularly.
44 #
45 #  Note that the "f.exec" dtwm function will NOT cause the busy
46 #  light to blink; only the "f.action" dtwm function causes the
47 #  blinking.
48 #
49 ##########
50
51 Row Terminals
52 {
53     Host1       [T] @term.l.bm  65x28 f.exec "hpterm  -name Host1  -e rlogin hostname1"
54     Host2       [T] @term.l.bm   65   f.exec "hpterm  -name Host2  -e rlogin hostname2"
55     Host3       [T] @term.l.bm   65   f.exec "hpterm  -name Host3 -e rlogin hostname3"
56     Host4       [T] @term.l.bm   65   f.exec "hpterm  -name Host4 -e rlogin hostname4"
57     Host5       [T] @term.l.bm   65   f.exec "hpterm  -name Host5 -e rlogin hostname5"
58     Host6       [T] @term.l.bm   65   f.exec "hpterm  -name Host6   -e rlogin hostname6"
59     Console    [T] @term.l.bm   107   f.exec "hpterm  -name Console -C"
60 }
61
62 Row Middle
63   {
64     dtwmswtch   364x65
65     dtwmclock   67x65+4+4
66     dtwmdate    82x65+5+5
67   }
68
69 Row Bottom
70   {
71     Home        [P C] @home.m.bm =72x65+0+5 f.action BROWSE_HOME
72     Applications [P C] @tools.m.bm =72 f.action BROWSE_TOOLS 
73     Mail        [T C I Z] @mail.m.bm @mail02.m.bm 64 f.exec "hpterm -name Mail -e elm" f.action MAIL_A_FILE
74     Print       [P C Z] @print.m.bm 70 f.action PRINTER_INFO f.action PRINT
75     Trash       [P C Z] @trash.l.bm 70 f.action SHOW_TRASH f.action THROW_AWAY
76     dtload      [T C] 153+5+5 
77   }
78
79 }
80
81
82 ##############################
83 #  Drop Effects (Animation)  #
84 ##############################
85
86 DropEffects Mail
87 {
88         mail.m.bm      80
89         mail02.m.bm    80
90         mail.m.bm      80
91         mail02.m.bm    80
92 }
93
94 DropEffects Print
95 {
96         print02.m.bm     30
97         print03.m.bm
98         print04.m.bm
99         print05.m.bm
100         print06.m.bm
101         print07.m.bm
102         print08.m.bm
103         print09.m.bm
104         print10.m.bm
105         print11.m.bm
106         print12.m.bm
107         print13.m.bm
108         print14.m.bm
109         print.m.bm      
110         print02.m.bm     30
111         print03.m.bm
112         print04.m.bm
113         print05.m.bm
114         print06.m.bm
115         print07.m.bm
116         print08.m.bm
117         print09.m.bm
118         print10.m.bm
119         print11.m.bm
120         print12.m.bm
121         print13.m.bm
122         print14.m.bm
123         print.m.bm      
124 }
125
126 DropEffects Trash
127 {
128         trash11.l.bm  10
129         trash10.l.bm
130         trash09.l.bm
131         trash08.l.bm
132         trash07.l.bm
133         trash06.l.bm
134         trash05.l.bm
135         trash04.l.bm
136         trash03.l.bm
137         trash02.l.bm   
138         trash03.l.bm   
139         trash04.l.bm
140         trash05.l.bm  
141         trash06.l.bm 
142         trash07.l.bm
143         trash08.l.bm  
144         trash09.l.bm 
145         trash10.l.bm
146         trash11.l.bm
147         trash.l.bm 
148 }
149
150
151 #############################
152 #  Root Menu Specification  #
153 #############################
154
155 Menu DtRootMenu
156 {
157     "Workspace Menu"            f.title
158     "Shuffle Up"                f.circle_up
159     "Shuffle Down"              f.circle_down
160     "Refresh Screen"            f.refresh
161      no-label                   f.separator
162     "Toggle Front Panel"        f.toggle_frontpanel
163     "Rename Workspace"          f.workspace_rename
164     "Pack Icons"                f.pack_icons
165     "Restart Dtwm ..."          f.restart
166      no-label                   f.separator
167     "Log out..."                f.action EXIT_SESSION
168 }
169
170 ###############################
171 #  Window Menu Specification  #
172 ###############################
173 Menu DtWindowMenu
174 {
175     "Restore"          _R        Alt<Key>F5         f.normalize
176     "Move"             _M        Alt<Key>F7         f.move
177     "Size"             _S        Alt<Key>F8         f.resize
178     "Minimize"         _n        Alt<Key>F9         f.minimize
179     "Maximize"         _x        Alt<Key>F10        f.maximize
180     "Lower"            _L        Alt<Key>F3         f.lower
181      no-label                                       f.separator
182     "Occupy..."        _O        Alt<Key>O          f.workspace_presence
183     "Occupy all"       _a        Alt Shift<Key>O    f.occupy_all
184      no-label                                       f.separator
185     "Remove from WS"   _e        Alt Shift <Key>F4  f.remove
186     "Close"            _C        Alt<Key>F4         f.kill
187 }
188
189 ##############################
190 #  Key Binding Descriptions  #
191 ##############################
192
193 Keys DtKeyBindings
194 {
195     <Key>Menu                   root                    f.toggle_frontpanel
196     Meta<Key>Menu               root|icon|window        f.toggle_frontpanel
197     Shift<Key>Escape            icon|window             f.post_wmenu
198     Meta<Key>space              icon|window             f.post_wmenu
199     Meta<Key>Tab                root|icon|window        f.next_key
200     Meta Shift<Key>Tab          root|icon|window        f.prev_key
201     Meta<Key>Escape             root|icon|window        f.next_key
202     Meta Shift<Key>Escape       root|icon|window        f.prev_key
203     Meta Ctrl Shift<Key>exclam  root|icon|window        f.set_behavior
204 }
205
206 #################################
207 #  Button Binding Descriptions  #
208 #################################
209
210 Buttons DtButtonBindings
211 {
212     ### Button 1 ###
213     <Btn1Click>         root            f.circle_up
214     <Btn1Click>         frame|icon      f.raise_lower
215     <Btn1Click2>        title           f.maximize
216 #    Meta<Btn1Down>     icon|window     f.move
217
218     ### Button 2 ###
219     <Btn2Down>          frame|icon      f.move
220     <Btn2Click>         root            f.next_workspace
221     Shift<Btn2Click>    root            f.prev_workspace
222     Meta<Btn2Down>      root            f.toggle_frontpanel
223     Meta<Btn2Down>      icon|window     f.move
224
225     ### Button 3 ###
226     <Btn3Down>          root            f.menu  DtRootMenu
227     <Btn3Down>          frame|icon      f.post_wmenu
228     Meta<Btn3Down>      frame|window    f.minimize
229 }
230
231
232 #
233 #  End of dtwm Resource Description File
234 #
235 #####################      eof       #########################
236