Bash: Add radj.
This commit is contained in:
parent
a4f8e4433a
commit
3be97ae33f
15
home/program/bash/module/Radj.nix
Normal file
15
home/program/bash/module/Radj.nix
Normal 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
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue