diff --git a/home/program/bash/module/Radj.nix b/home/program/bash/module/Radj.nix new file mode 100644 index 00000000..8e8dc752 --- /dev/null +++ b/home/program/bash/module/Radj.nix @@ -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 + } + ''; +}