def on_click(self, event):
if event['<STR_LIT>'] == <NUM_LIT:1> and '<STR_LIT>' in self.options:<EOL><INDENT>subprocess.call(self.options['<STR_LIT>'].split())<EOL><DEDENT>elif event['<STR_LIT>'] == <NUM_LIT:2> and '<STR_LIT>' in self.options:<EOL><INDENT>subprocess.call(self.options['<STR_LIT>'].split())<EOL><DEDENT>elif event['<STR_LIT>'] == <NUM_LIT:3> and '<STR_LIT>' in self.options:<EOL><INDENT>subprocess.call(self.options['<STR_LIT>'].split())<EOL><DEDENT>
A function that should be overwritten by a plugin that wishes to react
to events, if it wants to perform any action other than running the
supplied command related to a button.

event: A dictionary passed from i3bar (after being decoded from JSON)
that has the folowing format:

event = {'name': 'my_plugin', 'x': 231, 'y': 423}
Note: It is also possible to have an instance key, but i3situation
doesn't set it.