From 3be97ae33ff6ff0e261a48a918c7b9c7e7bd0a04 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 11 Dec 2024 13:20:16 +0300 Subject: [PATCH] Bash: Add radj. --- home/program/bash/module/Radj.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 home/program/bash/module/Radj.nix 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 + } + ''; +}