Bash: Add radj.

This commit is contained in:
Dmitry Voronin 2024-12-11 13:20:16 +03:00
parent a4f8e4433a
commit 3be97ae33f
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -0,0 +1,15 @@
{ ... }: {
text = ''
# Adjust ryzen temp limit.
# Usage: radj [TEMP]
function radj() {
local limit="''${1}"
if [[ "''${limit}" = "" ]]; then
systemctl start radj.service
else
systemctl stop radj.service
ryzenadj --tctl-temp=''${limit}
fi
}
'';
}