This commit is contained in:
2025-08-03 13:16:51 +02:00
parent 2670f63d20
commit 28441df095
9 changed files with 116 additions and 9 deletions

View File

@ -0,0 +1,25 @@
from argparse import ArgumentParser
from json import dumps
from subprocess import run
COFFEE_ICON = "\ue751"
if __name__ == "__main__":
result = run(["pidof", "hypridle"], capture_output=True, text=True)
if result.returncode == 0:
# Hypridle is running
print(dumps({
"text": COFFEE_ICON,
"tooltip": "Hypridle is running",
"class": "inactive"
}))
else:
# Hypridle is not running
print(dumps({
"text": COFFEE_ICON,
"tooltip": "Hypridle is not running",
"class": "active"
}))