archey4/archey/entries/processes.py
Tobilike 121b1cc796
[CORE] Adds (Nerd Fonts) icons for entries (#144)
Co-authored-by: Michael Bromilow <12384431+ingrinder@users.noreply.github.com>
Co-authored-by: Samuel FORESTIER <samuel+dev@forestier.app>
2024-01-14 17:54:08 +00:00

18 lines
428 B
Python

"""Processes entry class"""
from archey.entry import Entry
from archey.processes import Processes as ProcessesUtil
class Processes(Entry):
"""
Simple wrapper to `archey.processes` to provide the number of running processes as an entry.
"""
_ICON = "\ueba2" # cod_server_process
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.value = ProcessesUtil().number