def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Screensaver"),
         description=_("The Screensaver Starts"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='panorama',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_SESSION_SCREENSAVER
     self.summary_description = _("When the screensaver starts")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Session End"),
         description=_("End of the User Session"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='no_idea',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_APPLET_SHUTDOWN
     self.summary_description = _("When the session is ending")
示例#3
0
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Exit Screensaver"),
         description=_("The Screensaver Ends"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='light_at_the_end_of_tunnel',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_SESSION_SCREENSAVER_EXIT
     self.summary_description = _("When the screensaver stops")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Screensaver"),
         description=_("The Screensaver Starts"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='panorama',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_SESSION_SCREENSAVER
     self.summary_description = _("When the screensaver starts")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Session Start"),
         description=_("Beginning of the User Session"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='sports_mode',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_APPLET_STARTUP
     self.summary_description = _("When the session is beginning")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Session Lock"),
         description=_("Lock the User Session"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='lock',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_SESSION_LOCK
     self.summary_description = _("When the session is being locked")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Exit Screensaver"),
         description=_("The Screensaver Ends"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='light_at_the_end_of_tunnel',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_SESSION_SCREENSAVER_EXIT
     self.summary_description = _("When the screensaver stops")
示例#8
0
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Session Unlock"),
         description=_("Unlock the User Session"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='unlock',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_SESSION_UNLOCK
     self.summary_description = _("When the session is unlocked")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Session Start"),
         description=_("Beginning of the User Session"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='sports_mode',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.event = EVENT_APPLET_STARTUP
     self.summary_description = _("When the session is beginning")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Suspend"),
         description=_("Enter a Low Consumption Mode"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='night_landscape',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_POWER
     self.stock = True
     self.event = EVENT_SYSTEM_SUSPEND
     self.summary_description = _("When the session is suspended")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Low Battery"),
         description=_("The Battery is Critically Low"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon="low_battery",
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_POWER
     self.stock = True
     self.event = EVENT_SYSTEM_BATTERY_LOW
     self.summary_description = _("When the battery is critically low")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Resume"),
         description=_("Exit the Low Consumption Mode"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='mms',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_POWER
     self.stock = True
     self.event = EVENT_SYSTEM_RESUME
     self.summary_description = _("When the session is resumed")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Leave Network"),
         description=_("A Network Connection is no more Available"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='flash_off',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_NETWORK
     self.stock = True
     self.event = EVENT_SYSTEM_NETWORK_LEAVE
     self.summary_description = _("When a network connection has been left")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Charging"),
         description=_("The Battery is Charging"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='charge_battery',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_POWER
     self.stock = True
     self.event = EVENT_SYSTEM_BATTERY_CHARGE
     self.summary_description = _("When the battery is charging")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Join Network"),
         description=_("A New Network Connection is Available"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='flash_on',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_NETWORK
     self.stock = True
     self.event = EVENT_SYSTEM_NETWORK_JOIN
     self.summary_description = _("When a new network connection is joined")
示例#16
0
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Disconnect Storage"),
         description=_("An External Storage Device is Disconnected"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='delete_database',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_FILESYSTEM
     self.stock = True
     self.event = EVENT_SYSTEM_DEVICE_DETACH
     self.summary_description = _("When a storage device is detached from the computer")
示例#17
0
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Suspend"),
         description=_("Enter a Low Consumption Mode"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='night_landscape',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_POWER
     self.stock = True
     self.event = EVENT_SYSTEM_SUSPEND
     self.summary_description = _("When the session is suspended")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Disconnect Storage"),
         description=_("An External Storage Device is Disconnected"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='delete_database',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_FILESYSTEM
     self.stock = True
     self.event = EVENT_SYSTEM_DEVICE_DETACH
     self.summary_description = _("When a storage device is detached from the computer")
 def __init__(self):
     EventConditionPlugin.__init__(
         self,
         basename=plugin_name(__file__),
         name=_("Discharging"),
         description=_("The Battery is Discharging"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='high_battery',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.category = PLUGIN_CONST.CATEGORY_COND_POWER
     self.stock = True
     self.event = EVENT_SYSTEM_BATTERY_DISCHARGING
     self.summary_description = _("When the battery is discharging")
示例#20
0
    def __init__(self):
        EventConditionPlugin.__init__(
            self,
            basename=plugin_name(__file__),
            name=_("Template"),
            description=_("Explain here what it does"),
            author="John Smith",
            copyright="Copyright (c) 2016",
            icon='puzzle',
            help_string=HELP,
            version="0.1.0",
        )
        # the icon resource is only needed if the plugin uses a custom icon
        # self.graphics.append('plugin_icon.png')

        # define this only if the plugin provides one or more scripts
        # self.scripts.append('needed_script.sh')

        # mandatory or anyway structural variables and object values follow:
        self.event = EVENT_CONSTANT  # this has to be changed
        self.summary_description = None  # has to be set to a fixed string
    def __init__(self):
        EventConditionPlugin.__init__(
            self,
            basename=plugin_name(__file__),
            name=_("Template"),
            description=_("Explain here what it does"),
            author="John Smith",
            copyright="Copyright (c) 2016",
            icon='puzzle',
            help_string=HELP,
            version="0.1.0",
        )
        # the icon resource is only needed if the plugin uses a custom icon
        # self.graphics.append('plugin_icon.png')

        # define this only if the plugin provides one or more scripts
        # self.scripts.append('needed_script.sh')

        # mandatory or anyway structural variables and object values follow:
        self.event = EVENT_CONSTANT         # this has to be changed
        self.summary_description = None     # has to be set to a fixed string