7 |
PLUGIN_MENUITEM_WORKDIR="" |
PLUGIN_MENUITEM_WORKDIR="" |
8 |
PLUGIN_MENUITEM_ICON="" |
PLUGIN_MENUITEM_ICON="" |
9 |
|
|
10 |
|
PLUGIN_AUTOSTART=0 |
11 |
|
|
12 |
install_plugin() |
install_plugin() |
13 |
{ |
{ |
14 |
if [[ -z $(magequery -n rxvt) ]] |
if [[ -z $(magequery -n rxvt) ]] |
34 |
echo "PLUGIN_MENUITEM_ICON=\"${PLUGIN_MENUITEM_ICON}\"" |
echo "PLUGIN_MENUITEM_ICON=\"${PLUGIN_MENUITEM_ICON}\"" |
35 |
} |
} |
36 |
|
|
37 |
|
autostart_plugin() |
38 |
|
{ |
39 |
|
echo "PLUGIN_AUTOSTART=\"${PLUGIN_AUTOSTART}\"" |
40 |
|
} |
41 |
|
|
42 |
uninstall_plugin() |
uninstall_plugin() |
43 |
{ |
{ |
44 |
# keep rxvt |
# keep rxvt |
50 |
setup) setup_plugin ;; |
setup) setup_plugin ;; |
51 |
menuitem) create_menuitem ;; |
menuitem) create_menuitem ;; |
52 |
uninstall) uninstall_plugin ;; |
uninstall) uninstall_plugin ;; |
53 |
|
autostart) autostart_plugin ;; |
54 |
*) echo "PLUGIN '${PLUGIN_NAME}': unkown operation '$1'" ;; |
*) echo "PLUGIN '${PLUGIN_NAME}': unkown operation '$1'" ;; |
55 |
esac |
esac |