From d9f15faaf6a61380a51c99349932718a181513f4 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Sat, 3 May 2014 19:36:39 +0200 Subject: rename examples folder to the modules and prepare for installation --- modules/i3bar_click_events.py | 127 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 modules/i3bar_click_events.py (limited to 'modules/i3bar_click_events.py') diff --git a/modules/i3bar_click_events.py b/modules/i3bar_click_events.py new file mode 100644 index 0000000..792965c --- /dev/null +++ b/modules/i3bar_click_events.py @@ -0,0 +1,127 @@ +from subprocess import Popen +from time import time + + +class Py3status: + """ + This module allows you to take actions based on click events made on + the i3status modules. For example, thanks to this module you could + launch the wicd GUI when clicking on the ethernet or wireless module + of your i3status output ! + + IMPORTANT: + This module file name is reserved and should NOT be changed if you + want py3status to handle your i3status modules click events ! + + The behavior described above will only work if this file is named + 'i3bar_click_events.py' ! + """ + def __init__(self): + """ + This is where you setup your actions based on your i3status config. + + Configuration: + -------------- + self.actions = { + "": { +