Skip to content

Instantly share code, notes, and snippets.

View aravezskinteeth's full-sized avatar

Liv aravezskinteeth

View GitHub Profile
@aravezskinteeth
aravezskinteeth / istats.py
Created October 18, 2022 22:58 — forked from M4cs/istats.py
Getting iStats Widget
import os
import time
import subprocess
while True:
output = subprocess.check_output(['istats', 'cpu'])
output1 = subprocess.check_output(['istats', 'fan'])
output2 = subprocess.check_output(['istats', 'battery'])
new_output = '\n\n\n' + str(output.decode('utf-8')) + '\n' + str(output1.decode('utf-8')) + '\n' + str(output2.decode('utf-8'))
print(new_output.replace('For more stats run `istats extra` and follow the instructions.', ''))