def __init__(self, **args): self._device = "hwmon0" self._sensor_type = HwMon.TEMP self._sensor_id = 1 self._format = '%.1f' Monitor.__init__(self, **args)
def __init__(self, **args): self._control = "PCM" self._mute_output = "Mute" self._amixer_command = 'amixer' self._format = '%3d' self._show_units = True Monitor.__init__(self, **args)
def __init__(self, **args): self._file_name = None self._lines = FileWatch.ALL_LINES self._line_separator = '\n' Monitor.__init__(self, **args) self.state = ''
def __init__(self, **args): self._host = None self._port = None self._timeout = 0.25 self._output_success = 'online' self._output_failure = 'offline' Monitor.__init__(self, **args)
def __init__(self, **args): self._mount_point = '/' self._layout = "%(Avail)s/%(Size)s" self._format = '%.2f' self._show_units = True self._short_units = True Monitor.__init__(self, **args)
def __init__(self, **args): self.i3 = i3ipc.Connection() self.__current_window = None Monitor.__init__(self, **args) self.i3.on('window', self.on_window_focus) self.i3.on('workspace', self.on_workspace_focus) Thread(target=self.i3.main, name='i3 helper').start()
def __init__(self, **args): self._battery = "BAT0" self._format_all = None self._format_discharging = "{charge_percent:.1f}% {time_remaining}" self._format_charging = "{charge_percent:.1f}% {time_remaining}" self._format_charged = "{charge_percent:.1f}%" self._time_format = "%H:%M" Monitor.__init__(self, **args)
def __init__(self, **args): self._cpu_number = None self._format = '%3.0f' self._show_units = True Monitor.__init__(self, **args) #self.previous_times = self.get_time_list() self.previous_times = None
def __init__(self, **args): self._interface = 'eth0' self._layout_up_addr = 'up, %(addr)s' self._layout_up_link = 'up, link detected' self._layout_up = 'up' self._layout_down = 'down' self._ifconfig = '/bin/ifconfig' Monitor.__init__(self, **args) self.logger = logging.getLogger("PySysMon.Monitor.Network.IfUp")
def __init__(self, **args): self._interface = 'wlan0' self._layout_connected_address = '%(essid)s %(quality_pct).0f %(address)s' self._layout_connected = '%(essid)s %(quality_pct).0f%%' self._layout_disconnected = 'down' self._iwconfig = '/sbin/iwconfig' self._ifconfig = '/bin/ifconfig' Monitor.__init__(self, **args) self.logger = logging.getLogger("PySysMon.Monitor.Network.Wifi")
def __init__(self, **args): self._interface = Network.IFACE_ALL self._format = '%6.1f' self._layout = '%(DownloadRate)s/%(UploadRate)s' self._show_units = True self._short_units = True Monitor.__init__(self, **args) self.previous_data = time.time(), self.get_transferred_data( self.get_interface_list())
def __init__(self, **args): self._battery = "BAT0" self._format_all = None self._format_discharging = "%(remaining_percent)s%% %(discharging_time_remaining)s" self._format_charging = "%(remaining_percent)s%% %(charging_time_remaining)s" self._format_idle = "%(remaining_percent)s" self._format_installed = None self._format_uninstalled = "No battery" self._time_format = "%H:%M" Monitor.__init__(self, **args) self.batdir = "/sys/devices/platform/smapi/" + self._battery + "/" self.logger = logging.getLogger("PySysMon.Monitor.Battery.SMAPI")
def __init__(self, **args): self.logger = logging.getLogger("PySysMon.Monitor.MpdClient") try: from mpd import MPDClient, ConnectionError except: self.logger.error("Couldn't find module python-mpd") raise ImportError("You need python-mpd for the MpdClient module.") self._host = 'localhost' self._port = 6600 self._layout = "%(artist)s - %(title)s" self._layout_filenameonly = "%(file)s" self._layout_playing = None self._layout_paused = None self._layout_stopped = None self._time_format = "%M:%S" Monitor.__init__(self, **args)
def __init__(self, **args): Monitor.__init__(self, **args) self.state = None
def __init__(self, **args): self._split_char = '/' self._path = '' self._num_dirs = 1 Monitor.__init__(self, **args)
def __init__(self, **args): self._format = '%4d' Monitor.__init__(self, **args)
def __init__(self, **args): self._base_dir = os.path.expanduser("Mail") self._mailboxes = ["INBOX"] self._new_mail_wrap = [] Monitor.__init__(self, **args)
def __init__(self, **args): self._command = None self._args = [] Monitor.__init__(self, **args)
def __init__(self, **args): Monitor.__init__(self, **args)