fnas
This commit is contained in:
parent
afd8a16692
commit
6b9540a59a
3 changed files with 26 additions and 5 deletions
|
|
@ -31,3 +31,28 @@ def "snapper clear" [] {
|
|||
|
||||
snapper delete $"($first.number)-($last.number)"
|
||||
}
|
||||
|
||||
const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon9/pwm2_enable"
|
||||
|
||||
def quiet [] {
|
||||
match (hostname) {
|
||||
"NOcomputer" => {sudo -- nu -c $"5 o> ($mode_path)"}
|
||||
"NOlaptop" => {
|
||||
sudo ectool fanduty 42
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def loud [] {
|
||||
match (hostname) {
|
||||
"NOcomputer" => {sudo -- nu -c $"5 o> ($mode_path)"}
|
||||
"NOlaptop" => {sudo ectool autofanctrl}
|
||||
}
|
||||
}
|
||||
|
||||
def louder [] {
|
||||
match (hostname) {
|
||||
"NOcomputer" => {sudo -- nu -c $"0 o> ($mode_path)"}
|
||||
"NOlaptop" => {sudo ectool fanduty 100}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue