nix/home/program/bash/module/Radj.sh

12 lines
222 B
Bash
Raw Normal View History

2024-12-18 10:54:24 +03:00
# 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
}