Skip to content

Commit

Permalink
ver 0.0.3
Browse files Browse the repository at this point in the history
gorouflex authored Jan 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5ab3524 commit a2dbf9d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions RielUXTU/RielUXTU.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import subprocess
import sys
import time
import os

PRESETS = {
"Eco": (
@@ -61,14 +62,16 @@
)
}

def clear():
_ = os.system('cls') if os.name == 'nt' else os.system('clear')

def run_command(args):
command = ["sudo", "./ryzenadj"] + args.split()
while True:
result = subprocess.run(command, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
if result.returncode != 1 and result.returncode != 255:
print("Applied preset failed!")
print(result.returncode)
subprocess.run(command)
time.sleep(3)
print("Script will reapplied every 3 seconds since RyzenAdj can easily reset just like UXTU")
clear()


if len(sys.argv) > 1:

0 comments on commit a2dbf9d

Please sign in to comment.