|
|
Only button 3 can be used as a popup menu trigger. If defined, the menu trigger must display a pop-up menu.
For example, this menu script pops up the menu PopupClockMenu (which is used to start xclock with different startup options):
1 rule='
2 menu: PopupClockMenu
3 {
4 menu_item
5 {
6 title='digital'
7 action
8 {
9 begin
10 xclock -digital
11 finish
12 }
13 }
14 menu_item
15 {
16 title='analog'
17 action
18 {
19 begin
20 xclock
21 finish
22 }
23 }
24 dividing_line;
25 menu_item
26 {
27 title='help'
28 action
29 {
30 help 'static_arg'
31 }
32 }
33 remove_dynamic_rule PopupClockMenu
34 dynamic_rule PopupClockMenu $rule
35 popup PopupClockMenu $static_arg