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 = { "": {